rubocop-govuk 3.3.1 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86994e90da9017502338fcb8274d44d4fd5843c9e346d4e2b0555c559cd52eaf
4
- data.tar.gz: 32a0cd421dace4d0c1fd0ff577d3a21f5e5b8a5b395f283af0941d68bb8c5c7c
3
+ metadata.gz: 9460cb1bd124d0db3bad61e69a4fca8fea76d1b58197766820aca957f4241854
4
+ data.tar.gz: 13319b8ceece3b49c2c4363f23c418cebd5f87db081fe1eecb63afb777c88194
5
5
  SHA512:
6
- metadata.gz: 2f1e4b9c0ddd63aa97de8097d3e5f7549d2b311a18573a3d9b27414e6a3df6b25c60c1e2cd103d92c352f5f6c52671dc08bdc7b226971f0675700f1847a0aaed
7
- data.tar.gz: 460004238e8fe1a6c499675b9f909b31d646d0672506651d6eb8bfb9c5c53e6def71aabc1e94ada7f8fc764603477440ac3bcb89a918e0792e0b597d02b08ab9
6
+ metadata.gz: 981c47d318c535003c5e3b5206ca85ead3fda8895c770d4957cc4ee19f698d4bd04ad3483c17d064b079b87e9276c188ce06f478413dc2ed11ee8b2ec2b61c7c
7
+ data.tar.gz: 127e187db28bad0c6803c1fb8e8208277d55617698aef72befcddb4285449a62a65ee91836808b252f2a75c78fb40699d7b66ab0d4804cb523306d281866838a
@@ -1,3 +1,25 @@
1
+ # 3.7.0
2
+
3
+ * Turn a load of Cops back on (#52)
4
+
5
+ # 3.6.0
6
+
7
+ * Remove config that matches RuboCop defaults (#47)
8
+ * Reorganise all the Cops (#44)
9
+
10
+ # 3.5.0
11
+
12
+ * Disable pending cops by default (#37)
13
+
14
+ # 3.4.0
15
+
16
+ * Add rubocop-rake cops (#32)
17
+ * Revert #27 (hash transform cops) (#31)
18
+
19
+ # 3.3.2
20
+
21
+ * Exclude /tmp directory (#29)
22
+
1
23
  # 3.3.1
2
24
 
3
25
  * Exclude two unsafe style cops (#27)
data/README.md CHANGED
@@ -16,7 +16,7 @@ Inherit rules from the gem by adding the following to your project's RuboCop con
16
16
  ```yaml
17
17
  # .rubocop.yml
18
18
  inherit_gem:
19
- rubocop-govuk:
19
+ rubocop-govuk:
20
20
  - config/default.yml
21
21
  ```
22
22
 
@@ -25,14 +25,18 @@ or if you also need Rails specific rules:
25
25
  ```yaml
26
26
  # .rubocop.yml
27
27
  inherit_gem:
28
- rubocop-govuk:
28
+ rubocop-govuk:
29
29
  - config/default.yml
30
30
  - config/rails.yml
31
+
32
+ inherit_mode:
33
+ merge:
34
+ - Exclude
31
35
  ```
32
36
 
33
37
  ## Usage
34
38
 
35
- Run RuboCop:
39
+ Run RuboCop:
36
40
 
37
41
  ```sh
38
42
  bundle exec rubocop
@@ -0,0 +1,12 @@
1
+ # Introduced in: 278fc6e903834acfb37565795a196b85282560b0
2
+ # "A common pattern in our Gemfiles is to declare a gem
3
+ # differently if we're in a dev mode or not. For example
4
+ #
5
+ # if ENV['API_DEV']
6
+ # gem 'gds-api-adapters', path: '../gds-api-adapters'
7
+ # else
8
+ # gem 'gds-api-adapters', "~> 50.8.0"
9
+ # end"
10
+ # TODO: see if we can remove this (no longer valid??)
11
+ Bundler/DuplicatedGem:
12
+ Enabled: false
@@ -1,8 +1,11 @@
1
1
  AllCops:
2
+ NewCops: disable
2
3
  Exclude:
3
4
  - 'bin/**'
4
5
  - 'config.ru'
5
- - 'tmp/**'
6
+ - 'tmp/**/*'
7
+ - 'db/schema.rb'
8
+ - 'db/migrate/201*'
6
9
 
7
10
  DisplayCopNames:
8
11
  Description: 'Display cop names in offense messages'
@@ -17,8 +20,10 @@ AllCops:
17
20
  Enabled: true
18
21
 
19
22
  inherit_from:
20
- - gds-ruby-styleguide.yml
21
- - other-lint.yml
22
- - other-style.yml
23
- - other-metrics.yml
24
- - other-excludes.yml
23
+ - bundler.yml
24
+ - layout.yml
25
+ - lint.yml
26
+ - metrics.yml
27
+ - naming.yml
28
+ - style.yml
29
+ - rake.yml
@@ -0,0 +1,51 @@
1
+ # Part of the orignal GDS styleguide
2
+ # "Use empty lines between defs and to break up a method into logical paragraphs."
3
+ # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#general
4
+ Layout/EmptyLineBetweenDefs:
5
+ Description: Use empty lines between defs.
6
+ Enabled: true
7
+ AllowAdjacentOneLineDefs: false
8
+
9
+ # https://github.com/alphagov/govuk-lint/pull/7
10
+ # "There are occasions where following this rule forces you to make the
11
+ # code less readable. This is particularly the case for tests where method
12
+ # names form the test descriptions. Keeping test descriptions under a
13
+ # certain length can force them to become cryptic."
14
+ Layout/LineLength:
15
+ Description: Limit lines to 80 characters.
16
+ Enabled: false
17
+
18
+ # TODO: unclear why this is here!
19
+ # https://github.com/alphagov/govuk-lint/commit/5e42ec5690e3d4cc8fff44d0b0268c8e581c423a
20
+ Layout/MultilineMethodCallIndentation:
21
+ Enabled: false
22
+
23
+ # Part of the orignal GDS styleguide
24
+ # "Outdent private etc"
25
+ # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#classes
26
+ Layout/AccessModifierIndentation:
27
+ Description: Check indentation of private/protected visibility modifiers.
28
+ Enabled: true
29
+ EnforcedStyle: outdent
30
+
31
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
32
+ # TODO: unclear why this is here! Suggest enabling this with
33
+ # "EnforcedStyle: consistent".
34
+ Layout/FirstArrayElementIndentation:
35
+ Description: >-
36
+ Checks the indentation of the first element in an array
37
+ literal.
38
+ Enabled: false
39
+
40
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
41
+ # TODO: unclear why this is here! Suggest enabling this with
42
+ # "EnforcedStyle: consistent".
43
+ Layout/FirstHashElementIndentation:
44
+ Description: 'Checks the indentation of the first key in a hash literal.'
45
+ Enabled: false
46
+
47
+ # Introduced in: 9b2a744ab119d7797aaf423abcec914360f4208e
48
+ # "More lenient on multi-line operations"
49
+ # TODO: unclear why this is here!
50
+ Layout/MultilineOperationIndentation:
51
+ EnforcedStyle: indented
@@ -0,0 +1,5 @@
1
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
2
+ # TODO: unclear why this is here!
3
+ Lint/FlipFlop:
4
+ Description: 'Checks for flip flops'
5
+ Enabled: false
@@ -0,0 +1,79 @@
1
+ # Introduced in: 195e1d6934e610efed35151cfe90b01b805d7581
2
+ # Introduced in: b7a98b43a4b0644b8d4ac40aa3ddaf35f06fa58f
3
+ # "Many test frameworks use blocks for the entire test
4
+ # case in a file as well as for individual tests within the file.
5
+ # It's not unusual for a test case to be several lines
6
+ # longer than the upper limit of the BlockLength cop,
7
+ # and there's very little we can do to avoid that so
8
+ # there's no point running this cop on our tests."
9
+ Metrics/BlockLength:
10
+ Enabled: true
11
+ Exclude:
12
+ - test/**/*
13
+ - "**/spec/**/*"
14
+ ExcludedMethods: ["namespace"]
15
+
16
+ # Introduced in: 736b3d295f88b9ba6676fc168b823535582388c2
17
+ # "Disable opinionated cops"
18
+ #
19
+ # We should avoid cops that are based on heuristics, since
20
+ # it's not clear what action to take to fix an issue.
21
+ Metrics/AbcSize:
22
+ Enabled: false
23
+
24
+ # Introduced in: 736b3d295f88b9ba6676fc168b823535582388c2
25
+ # "Disable opinionated cops"
26
+ #
27
+ # We should avoid cops that are based on heuristics, since
28
+ # it's not clear what action to take to fix an issue.
29
+ Metrics/ClassLength:
30
+ Enabled: false
31
+
32
+ # Introduced in: 736b3d295f88b9ba6676fc168b823535582388c2
33
+ # "Disable opinionated cops"
34
+ #
35
+ # We should avoid cops that are based on heuristics, since
36
+ # it's not clear what action to take to fix an issue.
37
+ Metrics/ModuleLength:
38
+ Enabled: false
39
+
40
+ # Introduced in: 736b3d295f88b9ba6676fc168b823535582388c2
41
+ # "Disable opinionated cops"
42
+ #
43
+ # We should avoid cops that are based on heuristics, since
44
+ # it's not clear what action to take to fix an issue.
45
+ Metrics/PerceivedComplexity:
46
+ Enabled: false
47
+
48
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
49
+ # TODO: unclear why this is here!
50
+ Metrics/BlockNesting:
51
+ Description: 'Avoid excessive block nesting'
52
+ Enabled: false
53
+
54
+ # Analog of: 736b3d295f88b9ba6676fc168b823535582388c2
55
+ # "Disable opinionated cops"
56
+ #
57
+ # We should avoid cops that are based on heuristics, since
58
+ # it's not clear what action to take to fix an issue.
59
+ Metrics/CyclomaticComplexity:
60
+ Description: 'Avoid complex methods.'
61
+ Enabled: false
62
+
63
+ # Analog of: 736b3d295f88b9ba6676fc168b823535582388c2
64
+ # "Disable opinionated cops"
65
+ #
66
+ # We should avoid cops that are based on heuristics, since
67
+ # it's not clear what action to take to fix an issue.
68
+ Metrics/MethodLength:
69
+ Description: 'Avoid methods longer than 10 lines of code.'
70
+ Enabled: false
71
+
72
+ # Analog of: 736b3d295f88b9ba6676fc168b823535582388c2
73
+ # "Disable opinionated cops"
74
+ #
75
+ # We should avoid cops that are based on heuristics, since
76
+ # it's not clear what action to take to fix an issue.
77
+ Metrics/ParameterLists:
78
+ Description: 'Avoid parameter lists longer than three or four parameters.'
79
+ Enabled: false
@@ -0,0 +1,25 @@
1
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
2
+ # TODO: conflicts with the original GDS styleguide
3
+ # "Avoid get/set method names"
4
+ # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#naming
5
+ Naming/AccessorMethodName:
6
+ Description: Check the naming of accessor methods for get_/set_.
7
+ Enabled: false
8
+
9
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
10
+ # TODO: unclear why this is here!
11
+ Naming/AsciiIdentifiers:
12
+ Description: 'Use only ascii symbols in identifiers.'
13
+ Enabled: false
14
+
15
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
16
+ # TODO: unclear why this is here!
17
+ Naming/FileName:
18
+ Description: 'Use snake_case for source file names.'
19
+ Enabled: false
20
+
21
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
22
+ # TODO: unclear why this is here!
23
+ Naming/PredicateName:
24
+ Description: 'Check the names of predicate methods.'
25
+ Enabled: false
@@ -13,34 +13,32 @@ AllCops:
13
13
  Rails:
14
14
  Enabled: true
15
15
 
16
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
17
+ # TODO: unclear why this is here!
16
18
  Rails/ActionFilter:
17
19
  Description: 'Enforces consistent use of action filter methods.'
18
20
  Enabled: false
19
21
 
20
- Rails/Delegate:
21
- Description: 'Prefer delegate method for delegations.'
22
- Enabled: false
23
-
22
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
23
+ # TODO: unclear why this is here!
24
24
  Rails/HasAndBelongsToMany:
25
25
  Description: 'Prefer has_many :through to has_and_belongs_to_many.'
26
26
  Enabled: false
27
27
 
28
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
29
+ # TODO: unclear why this is here!
28
30
  Rails/Output:
29
31
  Description: 'Checks for calls to puts, print, etc.'
30
32
  Enabled: false
31
33
 
32
- Rails/ReadWriteAttribute:
33
- Description: 'Checks for read_attribute(:attr) and write_attribute(:attr, val).'
34
- Enabled: false
35
-
34
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
35
+ # TODO: unclear why this is here!
36
36
  Rails/ScopeArgs:
37
37
  Description: 'Checks the arguments of ActiveRecord scopes.'
38
38
  Enabled: false
39
39
 
40
- Rails/Validation:
41
- Description: 'Use sexy validations.'
42
- Enabled: false
43
-
40
+ # Introduced in: 91d7bf4895db12727582ad7bf47bdcb20ab178f7
41
+ # TODO: unclear (in any real detail) why this is here!
44
42
  Rails/SkipsModelValidations:
45
43
  Description: 'Avoid methods that skip model validations.'
46
44
  Enabled: false
@@ -0,0 +1 @@
1
+ require: rubocop-rake
@@ -0,0 +1,284 @@
1
+ # https://github.com/alphagov/govuk-lint/pull/36
2
+ # "When we have sequence of if/unless statements,
3
+ # some with multiple lines within the if statement
4
+ # block and some with a single line, forcing the single
5
+ # line statements to re-written makes it a harder
6
+ # to follow the branching logic."
7
+ Style/IfUnlessModifier:
8
+ Description: Favor modifier if/unless usage when you have a single-line body.
9
+ Enabled: false
10
+
11
+ # Part of the orignal GDS styleguide
12
+ # "Never chain do...end"
13
+ # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#syntax
14
+ Style/MethodCalledOnDoEndBlock:
15
+ Description: Avoid chaining a method call on a do...end block.
16
+ Enabled: true
17
+
18
+ # Part of the orignal GDS styleguide
19
+ # "Omit the parentheses when the method doesn’t accept any arguments"
20
+ # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#syntax
21
+ Style/MethodCallWithoutArgsParentheses:
22
+ Description: 'Do not use parentheses for method calls with no arguments.'
23
+ Enabled: true
24
+
25
+ # Part of the orignal GDS styleguide
26
+ # "Use Ruby 1.9 syntax for symbolic hash keys.
27
+ # This includes method calls."
28
+ # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#collections
29
+ Style/HashSyntax:
30
+ Exclude:
31
+ - 'db/schema.rb'
32
+
33
+ # Part of the orignal GDS styleguide
34
+ # "Add a trailing comma to multi-line array [...]
35
+ # for clearer diffs with less line noise."
36
+ # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#collections
37
+ Style/TrailingCommaInArrayLiteral:
38
+ EnforcedStyleForMultiline: comma
39
+
40
+ # Part of the orignal GDS styleguide
41
+ # "Add a trailing comma to multi-line hash definitions [...]
42
+ # for clearer diffs with less line noise."
43
+ # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#collections
44
+ Style/TrailingCommaInHashLiteral:
45
+ EnforcedStyleForMultiline: comma
46
+
47
+ # Part of the orignal GDS styleguide
48
+ # "When long lists of method arguments require
49
+ # breaking over multiple lines, break each successive
50
+ # argument on a new line, including the first argument
51
+ # and closing paren. The final argument should include
52
+ # a trailing comma."
53
+ # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#general
54
+ Style/TrailingCommaInArguments:
55
+ EnforcedStyleForMultiline: comma
56
+
57
+ # Part of the orignal GDS styleguide
58
+ # "Prefer %w to the literal array syntax when you need
59
+ # an array of strings."
60
+ # https://github.com/alphagov/styleguides/blob/6395a10d41c3938f4c147cda443fd83f854c3e7a/ruby.md#collections
61
+ Style/WordArray:
62
+ MinSize: 0
63
+
64
+ # "Try not to mix up single-quoted and double-quoted
65
+ # strings within a file: it can make the code harder to read.
66
+ # Definitely don't mix up single-quoted and double-quoted
67
+ # strings within a method. If in doubt, use double-quoted strings,
68
+ # because you’ll probably need to use interpolation somewhere.
69
+ Style/StringLiterals:
70
+ EnforcedStyle: double_quotes
71
+
72
+ # Introduced in: 5ca6b7d20fd62a6ce890868abdeca12837e436d7
73
+ # "The wording of the description is hard to understand - it's not
74
+ # immediately obvious what you have to do, and doesn't really say why
75
+ # this is a good thing.
76
+ #
77
+ # It's not auto-fixable, which means it takes a lot of time to get the
78
+ # syntax right for every occurrence of `%.2f` for example (taken from
79
+ # `smart-answers`) for not very much benefit."
80
+ Style/FormatStringToken:
81
+ Enabled: false
82
+
83
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
84
+ # TODO: unclear why this is here!
85
+ Style/Alias:
86
+ Description: 'Use alias_method instead of alias.'
87
+ Enabled: false
88
+
89
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
90
+ # TODO: unclear why this is here!
91
+ Style/AsciiComments:
92
+ Description: 'Use only ascii symbols in comments.'
93
+ Enabled: false
94
+
95
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
96
+ # TODO: unclear why this is here!
97
+ Style/BeginBlock:
98
+ Description: 'Avoid the use of BEGIN blocks.'
99
+ Enabled: false
100
+
101
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
102
+ # TODO: unclear why this is here!
103
+ Style/BlockDelimiters:
104
+ Description: >-
105
+ Avoid using {...} for multi-line blocks (multiline chaining is
106
+ always ugly).
107
+ Prefer {...} over do...end for single-line blocks.
108
+ Enabled: false
109
+
110
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
111
+ # TODO: unclear why this is here!
112
+ Style/CaseEquality:
113
+ Description: 'Avoid explicit use of the case equality operator(===).'
114
+ Enabled: false
115
+
116
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
117
+ # TODO: unclear why this is here!
118
+ Style/ClassAndModuleChildren:
119
+ Description: 'Checks style of children classes and modules.'
120
+ Enabled: false
121
+
122
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
123
+ # TODO: unclear why this is here!
124
+ Style/PreferredHashMethods:
125
+ Description: 'Checks for use of deprecated Hash methods.'
126
+ Enabled: false
127
+
128
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
129
+ # Documenting every class is a lot of effort and we don't
130
+ # expect to get any value from this. Another risk of adding
131
+ # more documentation is the potential for confusion if that
132
+ # documentation gets out-of-sync with the class/module.
133
+ Style/Documentation:
134
+ Description: 'Document classes and non-namespace modules.'
135
+ Enabled: false
136
+
137
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
138
+ # TODO: unclear why this is here!
139
+ Style/DoubleNegation:
140
+ Description: 'Checks for uses of double negation (!!).'
141
+ Enabled: false
142
+
143
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
144
+ # TODO: unclear why this is here!
145
+ Style/Encoding:
146
+ Description: 'Use UTF-8 as the source file encoding.'
147
+ Enabled: false
148
+
149
+ # TODO: duplicate (other-excludes.yml), remove
150
+ Style/FormatString:
151
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
152
+ Enabled: false
153
+
154
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
155
+ # TODO: unclear why this is here!
156
+ Style/GlobalVars:
157
+ Description: 'Do not introduce global variables.'
158
+ Enabled: false
159
+
160
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
161
+ # This can lead to excessively long lines. Consistent with
162
+ # disabling "Layout/LineLength".
163
+ #
164
+ # "There are occasions where following this rule forces you to make the
165
+ # code less readable."
166
+ Style/GuardClause:
167
+ Description: 'Check for conditionals that can be replaced with guard clauses'
168
+ Enabled: false
169
+
170
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
171
+ # TODO: unclear why this is here!
172
+ Style/IfWithSemicolon:
173
+ Description: 'Never use if x; .... Use the ternary operator instead.'
174
+ Enabled: false
175
+
176
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
177
+ # TODO: unclear why this is here!
178
+ Style/Lambda:
179
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
180
+ Enabled: false
181
+
182
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
183
+ # TODO: unclear why this is here!
184
+ Style/LambdaCall:
185
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
186
+ Enabled: false
187
+
188
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
189
+ # TODO: unclear why this is here!
190
+ Style/MethodDefParentheses:
191
+ Description: >-
192
+ Checks if the method definitions have or don't have
193
+ parentheses.
194
+ Enabled: false
195
+
196
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
197
+ # TODO: unclear why this is here!
198
+ Style/ModuleFunction:
199
+ Description: 'Checks for usage of `extend self` in modules.'
200
+ Enabled: false
201
+
202
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
203
+ # TODO: unclear why this is here!
204
+ Style/NegatedIf:
205
+ Description: >-
206
+ Favor unless over if for negative conditions
207
+ (or control flow or).
208
+ Enabled: false
209
+
210
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
211
+ # TODO: unclear why this is here!
212
+ Style/Next:
213
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
214
+ Enabled: false
215
+
216
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
217
+ # TODO: unclear why this is here!
218
+ Style/NilComparison:
219
+ Description: 'Prefer x.nil? to x == nil.'
220
+ Enabled: false
221
+
222
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
223
+ # TODO: unclear why this is here!
224
+ Style/NumericLiterals:
225
+ Description: >-
226
+ Add underscores to large numeric literals to improve their
227
+ readability.
228
+ Enabled: false
229
+
230
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
231
+ # TODO: unclear why this is here! Suggest enabling with
232
+ # "EnforcedStyle: compact"
233
+ Style/RaiseArgs:
234
+ Description: 'Checks the arguments passed to raise/fail.'
235
+ Enabled: false
236
+
237
+ # Analog of: 736b3d295f88b9ba6676fc168b823535582388c2
238
+ # "Disable opinionated cops"
239
+ #
240
+ # We should avoid cops that are based on heuristics, since
241
+ # it's not clear what action to take to fix an issue.
242
+ Style/RegexpLiteral:
243
+ Description: >-
244
+ Use %r for regular expressions matching more than
245
+ `MaxSlashes` '/' characters.
246
+ Use %r only for regular expressions matching more than
247
+ `MaxSlashes` '/' character.
248
+ Enabled: false
249
+
250
+ # Introduced in: 7aaebf4dbdf2a8d677b4000d3cd3512d4fb91e99
251
+ # "This is a relatively new Ruby feature and is not mentioned in the Style
252
+ # guide, so this commit disables it by default."
253
+ # TODO: unclear why this is here!
254
+ Style/SafeNavigation:
255
+ Description: >-
256
+ This cop transforms usages of a method call safeguarded by a check for the
257
+ existance of the object to safe navigation (`&.`).
258
+ Enabled: false
259
+
260
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
261
+ # TODO: unclear why this is here!
262
+ Style/SignalException:
263
+ Description: 'Checks for proper usage of fail and raise.'
264
+ Enabled: false
265
+
266
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
267
+ # TODO: unclear why this is here! Suggest enabling with
268
+ # "AllowIfMethodIsEmpty: true" to accommodate Rails actions.
269
+ Style/SingleLineMethods:
270
+ Description: 'Avoid single-line methods.'
271
+ Enabled: false
272
+
273
+ # Introduced in: c69a7eb3af955d6c4c0cf0c3cec8e9f330c74429
274
+ # TODO: unclear why this is here!
275
+ Style/CommandLiteral:
276
+ Description: 'Checks for %x when `` would do.'
277
+ Enabled: false
278
+
279
+ # Introduced in: b171d652d3e434b74ddc621df3b5be24c49bc7e8
280
+ # This cop was added in preperation for a Ruby feature
281
+ # that is no longer likely to become part of the language.
282
+ # https://github.com/rubocop-hq/rubocop/issues/7197
283
+ Style/FrozenStringLiteralComment:
284
+ Enabled: false