Skip to content

Commit

Permalink
feat(rubocop): update ExcludedMethods => IgnoredMethods
Browse files Browse the repository at this point in the history
```
Warning: obsolete parameter `ExcludedMethods` (for `Metrics/BlockLength`) found in .rubocop.yml
`ExcludedMethods` has been renamed to `IgnoredMethods`.
```
  • Loading branch information
myii committed Dec 19, 2020
1 parent a584cc3 commit 21f48de
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
additional_dependencies: ['@commitlint/config-conventional@8.3.4']
always_run: true
- repo: https://github.com/adithyabsk/mirrors-rubocop
rev: v0.91.0
rev: v1.5.0
hooks:
- id: rubocop
name: Check Ruby files with rubocop
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Layout/LineLength:
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
Max: 88
Metrics/BlockLength:
ExcludedMethods:
IgnoredMethods:
- control
- describe
# Increase from default of `25`
Expand Down
2 changes: 1 addition & 1 deletion ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ ssf_node_anchors:
Default: *line_length_default
Max: *line_length_bugbear
Metrics/BlockLength:
ExcludedMethods:
IgnoredMethods:
- control
- describe
Default: 25
Expand Down
2 changes: 1 addition & 1 deletion ssf/files/default/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
always_run: true
{%- if travis.use_single_job_for_linters %}
- repo: https://github.com/adithyabsk/mirrors-rubocop
rev: v0.91.0
rev: v1.5.0
hooks:
- id: rubocop
name: Check Ruby files with rubocop
Expand Down
4 changes: 2 additions & 2 deletions ssf/files/default/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
{%- set MBL = 'Metrics/BlockLength' %}
{{ MBL }}:
{%- set rbcp_MBL = rubocop.Cops.get(MBL) %}
ExcludedMethods:
{%- for method in rbcp_MBL.ExcludedMethods %}
IgnoredMethods:
{%- for method in rbcp_MBL.IgnoredMethods %}
- {{ method }}
{%- endfor %}
# Increase from default of `{{ rbcp_MBL.Default }}`
Expand Down

0 comments on commit 21f48de

Please sign in to comment.