Skip to content

Commit

Permalink
Merge pull request #125 from alphagov/disable-problem-rules
Browse files Browse the repository at this point in the history
Disable recently problematic rules
  • Loading branch information
kevindew committed Feb 16, 2021
2 parents ff18f90 + 7437126 commit 5a9eace
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Downgrade local Ruby version to `2.6.6` to capture lowest supported
Ruby version
- Fix namespace change of `Capybara/FeatureMethods`
- Disable `Naming/VariableNumbers`

# 3.17.2

Expand Down
7 changes: 7 additions & 0 deletions config/naming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ Naming/AccessorMethodName:
# repos, which would require manual intervention.
Naming/PredicateName:
Enabled: false

# This rule can cause readability issues when applied (for example
# `born_on_or_before_6_april_1935` becomes `born_on_or_before_6april1935`)
# and would require lots of amends to apply either `normalcase`
# or `snake_case` to projects. It is not auto-correctable.
Naming/VariableNumber:
Enabled: false
5 changes: 5 additions & 0 deletions config/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ inherit_from:
RSpec/ExampleLength:
Enabled: false

# We should avoid cops that are based on heuristics, since
# it's not clear what action to take to fix an issue.
RSpec/MultipleMemoizedHelpers:
Enabled: false

# We have common cases, such as rake tasks, where we do not
# use a class to the describe the test.
RSpec/DescribeClass:
Expand Down

0 comments on commit 5a9eace

Please sign in to comment.