Commit fddea73 1 parent f58d76f commit fddea73 Copy full SHA for fddea73
File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 18
18
image_precommit : &image_precommit
19
19
name : ' myii/ssf-pre-commit:2.9.2'
20
20
entrypoint : ['/bin/bash', '-c']
21
+ image_rubocop : &image_rubocop 'pipelinecomponents/rubocop:latest'
21
22
image_semantic-release : &image_semanticrelease 'myii/ssf-semantic-release:15.14'
22
23
# `services`
23
24
services_docker_dind : &services_docker_dind
@@ -84,6 +85,19 @@ pre-commit:
84
85
script :
85
86
- ' pre-commit run --all-files --color always --verbose'
86
87
88
+ # Use a separate job for `rubocop` other than the one potentially run by `pre-commit`
89
+ # - The `pre-commit` check will only be available for formulas that pass the default
90
+ # `rubocop` check -- and must continue to do so
91
+ # - This job is allowed to fail, so can be used for all formulas
92
+ # - Furthermore, this job uses all of the latest `rubocop` features & cops,
93
+ # which will help when upgrading the `rubocop` linter used in `pre-commit`
94
+ rubocop :
95
+ allow_failure : true
96
+ stage : *stage_lint
97
+ image : *image_rubocop
98
+ script :
99
+ - ' rubocop -d -P -S --enable-pending-cops'
100
+
87
101
# ##############################################################################
88
102
# Define `test` template
89
103
# ##############################################################################
You can’t perform that action at this time.
0 commit comments