ramsey_cop 0.16.0 → 0.23.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: 193f1594e3b05238877db83032f003b42e694eb2cd9e9401b1ff6bddf718610e
4
- data.tar.gz: 6d0c1a15fab341ceafc3c90104c41e4fc48a6853d6e559573b4b1c47f49c12c5
3
+ metadata.gz: 33ac4ced5223b1c56b842e6fac9b17035976afe1a2d958fdb0ef66a66c659251
4
+ data.tar.gz: 934780b40f5a6b9c255a42c7304a0a8c346a15d25bee9dbc8a6c1611c5d0326b
5
5
  SHA512:
6
- metadata.gz: 9cb40da78f32b2bc97076af86ac7f748bdb5c08746670ab5f77fd0d699219ae462f24ad5ed7d50e7e82447401ddf702381ef57a69792c665f05198c9d543a3c4
7
- data.tar.gz: 6dd906952df42138da071b66ec419f9f69e5885a4f7bfcf655e3d0ae8a645c9efedb2e83e6d62e50ec302e1a491ab48c272a78e3b3be7dd88618f15c9b289c45
6
+ metadata.gz: 84befa37df96b4089381f0748e533e8f1817a5738b1e29d7e8ad4fc06dddd744009068c1a8aa812bbd027b6d5bace4d7624080f8fb00c9b1a77e8d59cca40517
7
+ data.tar.gz: ad9cf250634e74c1c24bed47fc203b818e2e8865e1801733e90b1058fb1ce831908efb31fb6338fe76824cfc7d665ff3dfe0fd806c94b772d8eacab05779b5ba
@@ -1,3 +1,4 @@
1
1
  # https://help.github.com/articles/about-codeowners/
2
2
 
3
- * @jwsloan @rickpeyton @matthewmcgarvey
3
+ # https://github.com/orgs/RamseyInHouse/teams/ruby
4
+ * @RamseyInHouse/ruby
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ramsey_cop (0.16.0)
5
- rubocop (~> 0.62)
6
- rubocop-performance
4
+ ramsey_cop (0.23.0)
5
+ rubocop (>= 0.82)
6
+ rubocop-performance (>= 1.5.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ast (2.4.0)
12
12
  diff-lcs (1.3)
13
- jaro_winkler (1.5.4)
14
13
  parallel (1.19.1)
15
- parser (2.7.0.1)
14
+ parser (2.7.1.2)
16
15
  ast (~> 2.4.0)
17
16
  rainbow (3.0.0)
18
17
  rake (12.3.3)
18
+ rexml (3.2.4)
19
19
  rspec (3.9.0)
20
20
  rspec-core (~> 3.9.0)
21
21
  rspec-expectations (~> 3.9.0)
@@ -29,17 +29,17 @@ GEM
29
29
  diff-lcs (>= 1.2.0, < 2.0)
30
30
  rspec-support (~> 3.9.0)
31
31
  rspec-support (3.9.2)
32
- rubocop (0.79.0)
33
- jaro_winkler (~> 1.5.1)
32
+ rubocop (0.83.0)
34
33
  parallel (~> 1.10)
35
34
  parser (>= 2.7.0.1)
36
35
  rainbow (>= 2.2.2, < 4.0)
36
+ rexml
37
37
  ruby-progressbar (~> 1.7)
38
- unicode-display_width (>= 1.4.0, < 1.7)
38
+ unicode-display_width (>= 1.4.0, < 2.0)
39
39
  rubocop-performance (1.5.2)
40
40
  rubocop (>= 0.71.0)
41
41
  ruby-progressbar (1.10.1)
42
- unicode-display_width (1.6.0)
42
+ unicode-display_width (1.7.0)
43
43
 
44
44
  PLATFORMS
45
45
  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/**/*
@@ -64,9 +77,21 @@ Style/DateTime:
64
77
  Style/Documentation:
65
78
  Enabled: false
66
79
 
80
+ Style/ExponentialNotation:
81
+ Enabled: true
82
+
67
83
  Style/FrozenStringLiteralComment:
68
84
  Enabled: false
69
85
 
86
+ Style/HashEachMethods:
87
+ Enabled: true
88
+
89
+ Style/HashTransformKeys:
90
+ Enabled: true
91
+
92
+ Style/HashTransformValues:
93
+ Enabled: true
94
+
70
95
  Style/Lambda:
71
96
  Enabled: false
72
97
 
@@ -85,6 +110,9 @@ Style/PercentLiteralDelimiters:
85
110
  '%W': ()
86
111
  '%x': ()
87
112
 
113
+ Style/SlicingWithRange:
114
+ Enabled: true
115
+
88
116
  Style/StringLiterals:
89
117
  EnforcedStyle: double_quotes
90
118
  Enabled: true
@@ -1,3 +1,3 @@
1
1
  module RamseyCop
2
- VERSION = "0.16.0".freeze
2
+ VERSION = "0.23.0".freeze
3
3
  end
@@ -19,8 +19,8 @@ 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.62"
23
- spec.add_dependency "rubocop-performance"
22
+ spec.add_dependency "rubocop", ">= 0.82"
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"
26
26
  spec.add_development_dependency "rspec", "~> 3.0"
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.16.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Peyton
@@ -9,36 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-01-07 00:00:00.000000000 Z
12
+ date: 2020-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '0.62'
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.62'
27
+ version: '0.82'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rubocop-performance
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '0'
34
+ version: 1.5.2
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: 1.5.2
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -90,14 +90,14 @@ extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
92
  - ".github/CODEOWNERS"
93
- - ".github/CODE_OF_CONDUCT.md"
94
- - ".github/CONTRIBUTING.md"
95
93
  - ".github/ISSUE_TEMPLATE.md"
96
94
  - ".github/PULL_REQUEST_TEMPLATE.md"
97
95
  - ".github/workflows/gempush.yml"
98
96
  - ".gitignore"
99
97
  - ".rspec"
100
98
  - ".rubocop.yml"
99
+ - CODE_OF_CONDUCT.md
100
+ - CONTRIBUTING.md
101
101
  - Dockerfile
102
102
  - Gemfile
103
103
  - Gemfile.lock