rubocop-govuk 2.0.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c23b647abb912a4c141e4799fe35a39917d69d1b86d4c2528476ded0985809d
4
- data.tar.gz: 05bce0f54a903602b544a1a41ecb5abce498443996f4b992ddc2c94c111f0086
3
+ metadata.gz: 86994e90da9017502338fcb8274d44d4fd5843c9e346d4e2b0555c559cd52eaf
4
+ data.tar.gz: 32a0cd421dace4d0c1fd0ff577d3a21f5e5b8a5b395f283af0941d68bb8c5c7c
5
5
  SHA512:
6
- metadata.gz: 8a06387e9544b0221f2098dbc4376515cbf9ab965cec5b31215a1cd52968fffc5afeae0c3511b27f2d41218f7b771de48cf2a70e2fec814de22b90ffefb5c4d5
7
- data.tar.gz: a47f1a2d3bf1ac8191117aa5536e360369ad0761abfc5e6b95ba52ed801f89613315babf325c4ea25264fb859053117790daf3cbac18414960dcb7f6e4120c64
6
+ metadata.gz: 2f1e4b9c0ddd63aa97de8097d3e5f7549d2b311a18573a3d9b27414e6a3df6b25c60c1e2cd103d92c352f5f6c52671dc08bdc7b226971f0675700f1847a0aaed
7
+ data.tar.gz: 460004238e8fe1a6c499675b9f909b31d646d0672506651d6eb8bfb9c5c53e6def71aabc1e94ada7f8fc764603477440ac3bcb89a918e0792e0b597d02b08ab9
@@ -1,3 +1,28 @@
1
+ # 3.3.1
2
+
3
+ * Exclude two unsafe style cops (#27)
4
+
5
+ # 3.3.0
6
+
7
+ * Exclude Rails migrations from linting checks (#25)
8
+
9
+ # 3.2.0
10
+
11
+ * Configure new cops about hash styles (#24)
12
+ * Exclude `tmp` directory from linting checks (#22)
13
+
14
+ # 3.1.0
15
+
16
+ * Fix deprecation warning for AllCops/Excludes => AllCops/Exclude (#17)
17
+ * Exclude `config.ru` from linter checks (#18)
18
+
19
+ # 3.0.0
20
+
21
+ * Update Rubocop to 0.80.1
22
+ * This deletes the Style/BracesAroundHashParameters cop for future
23
+ Ruby 3 compatibility.
24
+ * Exclude `bin` directory and `db/schema.rb` from linter checks (#14)
25
+
1
26
  # 2.0.0
2
27
 
3
28
  * Use specific version for RuboCop
@@ -1,4 +1,9 @@
1
1
  AllCops:
2
+ Exclude:
3
+ - 'bin/**'
4
+ - 'config.ru'
5
+ - 'tmp/**'
6
+
2
7
  DisplayCopNames:
3
8
  Description: 'Display cop names in offense messages'
4
9
  Enabled: true
@@ -55,7 +55,7 @@ Layout/IndentationConsistency:
55
55
  Description: Keep indentation straight.
56
56
  Enabled: true
57
57
 
58
- Metrics/LineLength:
58
+ Layout/LineLength:
59
59
  Description: Limit lines to 80 characters.
60
60
  Enabled: false
61
61
  Max: 80
@@ -245,7 +245,7 @@ Style/TrivialAccessors:
245
245
  ExactNameMatch: true
246
246
  AllowPredicates: true
247
247
  AllowDSLWriters: false
248
- AllowedMethod:
248
+ AllowedMethods:
249
249
  - to_ary
250
250
  - to_a
251
251
  - to_c
@@ -14,3 +14,10 @@ Bundler/DuplicatedGem:
14
14
 
15
15
  Style/FormatStringToken:
16
16
  Enabled: false
17
+
18
+ # These can result in false positives
19
+ Style/HashTransformKeys:
20
+ Enabled: false
21
+
22
+ Style/HashTransformValues:
23
+ Enabled: false
@@ -58,10 +58,6 @@ Style/BlockDelimiters:
58
58
  Prefer {...} over do...end for single-line blocks.
59
59
  Enabled: false
60
60
 
61
- Style/BracesAroundHashParameters:
62
- Description: 'Enforce braces style inside hash parameters.'
63
- Enabled: true
64
-
65
61
  Style/CaseEquality:
66
62
  Description: 'Avoid explicit use of the case equality operator(===).'
67
63
  Enabled: false
@@ -384,3 +380,6 @@ Style/WhileUntilModifier:
384
380
 
385
381
  Style/FrozenStringLiteralComment:
386
382
  Enabled: false
383
+
384
+ Style/HashEachMethods:
385
+ Enabled: true
@@ -5,6 +5,11 @@
5
5
 
6
6
  require: rubocop-rails
7
7
 
8
+ AllCops:
9
+ Exclude:
10
+ - 'db/schema.rb'
11
+ - 'db/migrate/201*'
12
+
8
13
  Rails:
9
14
  Enabled: true
10
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-govuk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-28 00:00:00.000000000 Z
11
+ date: 2020-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '12.0'
19
+ version: '13.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '12.0'
26
+ version: '13.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '0.77'
33
+ version: 0.80.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '0.77'
40
+ version: 0.80.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement