diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0efdb51a..eace3900 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/.rubocop.yml b/.rubocop.yml index 22a03b3e..25c5f39e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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` diff --git a/ssf/defaults.yaml b/ssf/defaults.yaml index f7c13c3e..d7cca483 100644 --- a/ssf/defaults.yaml +++ b/ssf/defaults.yaml @@ -203,7 +203,7 @@ ssf_node_anchors: Default: *line_length_default Max: *line_length_bugbear Metrics/BlockLength: - ExcludedMethods: + IgnoredMethods: - control - describe Default: 25 diff --git a/ssf/files/default/.pre-commit-config.yaml b/ssf/files/default/.pre-commit-config.yaml index 8cc48759..e9442aed 100644 --- a/ssf/files/default/.pre-commit-config.yaml +++ b/ssf/files/default/.pre-commit-config.yaml @@ -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 diff --git a/ssf/files/default/.rubocop.yml b/ssf/files/default/.rubocop.yml index f63468a4..3d0b1f1b 100644 --- a/ssf/files/default/.rubocop.yml +++ b/ssf/files/default/.rubocop.yml @@ -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 }}`