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 +4 -4
- data/CHANGELOG.md +25 -0
- data/config/default.yml +5 -0
- data/config/gds-ruby-styleguide.yml +2 -2
- data/config/other-excludes.yml +7 -0
- data/config/other-style.yml +3 -4
- data/config/rails.yml +5 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86994e90da9017502338fcb8274d44d4fd5843c9e346d4e2b0555c559cd52eaf
|
4
|
+
data.tar.gz: 32a0cd421dace4d0c1fd0ff577d3a21f5e5b8a5b395f283af0941d68bb8c5c7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f1e4b9c0ddd63aa97de8097d3e5f7549d2b311a18573a3d9b27414e6a3df6b25c60c1e2cd103d92c352f5f6c52671dc08bdc7b226971f0675700f1847a0aaed
|
7
|
+
data.tar.gz: 460004238e8fe1a6c499675b9f909b31d646d0672506651d6eb8bfb9c5c53e6def71aabc1e94ada7f8fc764603477440ac3bcb89a918e0792e0b597d02b08ab9
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/config/default.yml
CHANGED
@@ -55,7 +55,7 @@ Layout/IndentationConsistency:
|
|
55
55
|
Description: Keep indentation straight.
|
56
56
|
Enabled: true
|
57
57
|
|
58
|
-
|
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
|
-
|
248
|
+
AllowedMethods:
|
249
249
|
- to_ary
|
250
250
|
- to_a
|
251
251
|
- to_c
|
data/config/other-excludes.yml
CHANGED
data/config/other-style.yml
CHANGED
@@ -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
|
data/config/rails.yml
CHANGED
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:
|
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:
|
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: '
|
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: '
|
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:
|
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:
|
40
|
+
version: 0.80.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|