File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1818 image_precommit : &image_precommit
1919 name : ' myii/ssf-pre-commit:2.9.2'
2020 entrypoint : ['/bin/bash', '-c']
21+ image_rubocop : &image_rubocop 'pipelinecomponents/rubocop:latest'
2122 image_semantic-release : &image_semanticrelease 'myii/ssf-semantic-release:15.14'
2223 # `services`
2324 services_docker_dind : &services_docker_dind
@@ -84,6 +85,19 @@ pre-commit:
8485 script :
8586 - ' pre-commit run --all-files --color always --verbose'
8687
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+
87101# ##############################################################################
88102# Define `test` template
89103# ##############################################################################
You can’t perform that action at this time.
0 commit comments