ramsey_cop 0.18.0 → 0.24.0

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: fb08a1befdca8734e9f6d7a1f192d622eeed0adda2cb1bc11c513ae20c34e294
4
- data.tar.gz: 0b36990313acac52639a362c81751b854c7b4eb2c4688466c979d5f1b89f57cd
3
+ metadata.gz: 176f70066f22bc4f8ff033835f30e0b28deccd7d98b84d789a7caf1a58856fa5
4
+ data.tar.gz: 132d3b3b3cd5c3a03f4762da852325c45c9c408fe8b473e6905753b820642aa8
5
5
  SHA512:
6
- metadata.gz: 31d20186fd29282d4fb9d399dc077e03d5deedafc5921e5823a21fc7a04e547d4ba9fe8e56cbb214e128f4a5add6a050a3877080cca62700827f6a56aabe8351
7
- data.tar.gz: ec22737421ec642b2e4732d22c19ed466be90c689c81059a18964c0619b5e536cd1fda1b73f5d1a58735714fae924edc78f5e8d87b8d3fc20dc43d8936eedc68
6
+ metadata.gz: 0015d457d6525445f04a2e195426ba426c0f9f5fc533394d6048af032c4d184f4108e61db1fd4e7f9fa00e7db30bf4e2836f2945ffeaac2c60bf57d7aff69dfa
7
+ data.tar.gz: 0a4bfc772f83e9d4c76562d506c14e494d911e38764cb1e6639cfa7eae0e09b2e59b4160614a1579b10a6e7c8faae9d5b37b2ac6d812574142d8a250ef608602
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ramsey_cop (0.18.0)
5
- rubocop (>= 0.80.1)
4
+ ramsey_cop (0.24.0)
5
+ rubocop (>= 0.82)
6
6
  rubocop-performance (>= 1.5.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ast (2.4.0)
11
+ ast (2.4.1)
12
12
  diff-lcs (1.3)
13
- jaro_winkler (1.5.4)
14
- parallel (1.19.1)
15
- parser (2.7.0.4)
16
- ast (~> 2.4.0)
13
+ parallel (1.20.1)
14
+ parser (2.7.2.0)
15
+ ast (~> 2.4.1)
17
16
  rainbow (3.0.0)
18
17
  rake (12.3.3)
18
+ regexp_parser (2.0.0)
19
19
  rexml (3.2.4)
20
20
  rspec (3.9.0)
21
21
  rspec-core (~> 3.9.0)
@@ -30,18 +30,22 @@ GEM
30
30
  diff-lcs (>= 1.2.0, < 2.0)
31
31
  rspec-support (~> 3.9.0)
32
32
  rspec-support (3.9.2)
33
- rubocop (0.80.1)
34
- jaro_winkler (~> 1.5.1)
33
+ rubocop (1.6.1)
35
34
  parallel (~> 1.10)
36
- parser (>= 2.7.0.1)
35
+ parser (>= 2.7.1.5)
37
36
  rainbow (>= 2.2.2, < 4.0)
37
+ regexp_parser (>= 1.8, < 3.0)
38
38
  rexml
39
+ rubocop-ast (>= 1.2.0, < 2.0)
39
40
  ruby-progressbar (~> 1.7)
40
- unicode-display_width (>= 1.4.0, < 1.7)
41
- rubocop-performance (1.5.2)
42
- rubocop (>= 0.71.0)
41
+ unicode-display_width (>= 1.4.0, < 2.0)
42
+ rubocop-ast (1.3.0)
43
+ parser (>= 2.7.1.5)
44
+ rubocop-performance (1.9.1)
45
+ rubocop (>= 0.90.0, < 2.0)
46
+ rubocop-ast (>= 0.4.0)
43
47
  ruby-progressbar (1.10.1)
44
- unicode-display_width (1.6.1)
48
+ unicode-display_width (1.7.0)
45
49
 
46
50
  PLATFORMS
47
51
  ruby
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Inspired by https://blog.percy.io/share-rubocop-rules-across-all-of-your-repos-f3281fbd71f8
7
7
 
8
- Ramsey shared style configs.
8
+ Ramsey shared [RuboCop](https://github.com/rubocop-hq/rubocop) style configs.
9
9
 
10
10
  ## Why
11
11
 
@@ -5,10 +5,14 @@ AllCops:
5
5
  - db/schema.rb
6
6
  - vendor/**/*
7
7
  - node_modules/**/*
8
+ NewCops: disable
8
9
 
9
10
  Layout/AccessModifierIndentation:
10
11
  EnforcedStyle: outdent
11
12
 
13
+ Layout/EmptyLinesAroundAttributeAccessor:
14
+ Enabled: true
15
+
12
16
  Layout/LineLength:
13
17
  Max: 120
14
18
  Exclude:
@@ -16,6 +20,15 @@ Layout/LineLength:
16
20
  - config/routes/*
17
21
  - db/migrate/*
18
22
 
23
+ Lint/RaiseException:
24
+ Enabled: true
25
+
26
+ Layout/SpaceAroundMethodCallOperator:
27
+ Enabled: true
28
+
29
+ Lint/StructNewOverride:
30
+ Enabled: true
31
+
19
32
  Metrics/AbcSize:
20
33
  Exclude:
21
34
  - spec/**/*
@@ -46,6 +59,10 @@ Metrics/MethodLength:
46
59
  - db/migrate/*
47
60
  - spec/**/*
48
61
  - test/**/*
62
+ CountAsOne:
63
+ - hash
64
+ - array
65
+ - heredoc
49
66
 
50
67
  Metrics/ModuleLength:
51
68
  Exclude:
@@ -64,6 +81,9 @@ Style/DateTime:
64
81
  Style/Documentation:
65
82
  Enabled: false
66
83
 
84
+ Style/ExponentialNotation:
85
+ Enabled: true
86
+
67
87
  Style/FrozenStringLiteralComment:
68
88
  Enabled: false
69
89
 
@@ -94,6 +114,9 @@ Style/PercentLiteralDelimiters:
94
114
  '%W': ()
95
115
  '%x': ()
96
116
 
117
+ Style/SlicingWithRange:
118
+ Enabled: true
119
+
97
120
  Style/StringLiterals:
98
121
  EnforcedStyle: double_quotes
99
122
  Enabled: true
@@ -1,3 +1,3 @@
1
1
  module RamseyCop
2
- VERSION = "0.18.0".freeze
2
+ VERSION = "0.24.0".freeze
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "rubocop", ">= 0.80.1"
22
+ spec.add_dependency "rubocop", ">= 0.82"
23
23
  spec.add_dependency "rubocop-performance", ">= 1.5.2"
24
24
  spec.add_development_dependency "bundler", "~> 1.14"
25
25
  spec.add_development_dependency "rake", "~> 12.3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ramsey_cop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Peyton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-03-02 00:00:00.000000000 Z
12
+ date: 2020-12-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 0.80.1
20
+ version: '0.82'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 0.80.1
27
+ version: '0.82'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rubocop-performance
30
30
  requirement: !ruby/object:Gem::Requirement