pludoni-rubocop 1.48.0 → 1.69.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: 326e651998ed8a9678bb36b5f23af3f6dfa15093dbc664b9368e2d87244567ea
4
- data.tar.gz: 7c888f35e0f28058f40afdddd3e57fb4439f7ef8cf6ff45e4a1ec87e3307e6ae
3
+ metadata.gz: '094725b1e6ee3151899790c9a161753a68967eba096cb2243747ccea37ad0b83'
4
+ data.tar.gz: 92c1182be87597458a9544b9d049dd096e08959884ac09528f341bfa94e5b8bd
5
5
  SHA512:
6
- metadata.gz: f9242936bdfc2b3351b9dd08b6751e755d2c2744356b7cc40a032f3b939f408c207dece6af9a74aeb5e344d0bcf02c897509b5e5874b5ed6557d358afea9e0f3
7
- data.tar.gz: 649e559cc27a72d972e6a76d62eef18356efc4e3df9aae7700fe38cee966ab27e07843c9b72e695561bdcab6d59ba9b8b05284d7423056042a50522605f3e6f9
6
+ metadata.gz: 4e2687b5229b4488493e6c3db06bd15efca53b00b1ac3bc17c5f189da4462861fdb7ec7e69a0420594aabc88a9531fe27802638a14a9057d46f895b6e467c746
7
+ data.tar.gz: 4cfef21d8254e987618c6cb5a7691b6c1ed86458f14bd2e553003dafe02c9167ec1e6d411702eca21ea9f00ae4e83a5fc5c87674eacb7e5a7b1d1a820900cd64
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.3.5
data/Gemfile.lock CHANGED
@@ -1,72 +1,78 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pludoni-rubocop (1.48.0)
5
- betterlint (~> 1.4.0)
6
- rubocop (~> 1.48.0)
7
- rubocop-performance (~> 1.16.0)
8
- rubocop-rails (~> 2.18.0)
4
+ pludoni-rubocop (1.69.0)
5
+ rubocop (~> 1.69.2)
6
+ rubocop-performance
7
+ rubocop-rails (~> 2.28.0)
9
8
 
10
9
  GEM
11
10
  remote: https://rubygems.org/
12
11
  specs:
13
- activesupport (7.0.4.2)
14
- concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ activesupport (8.0.0)
13
+ base64
14
+ benchmark (>= 0.3)
15
+ bigdecimal
16
+ concurrent-ruby (~> 1.0, >= 1.3.1)
17
+ connection_pool (>= 2.2.5)
18
+ drb
15
19
  i18n (>= 1.6, < 2)
20
+ logger (>= 1.4.2)
16
21
  minitest (>= 5.1)
17
- tzinfo (~> 2.0)
22
+ securerandom (>= 0.3)
23
+ tzinfo (~> 2.0, >= 2.0.5)
24
+ uri (>= 0.13.1)
18
25
  ast (2.4.2)
19
- betterlint (1.4.0)
20
- rubocop (> 1.0)
21
- rubocop-performance
22
- rubocop-rails
23
- rubocop-rake
24
- rubocop-rspec
25
- concurrent-ruby (1.2.2)
26
- i18n (1.12.0)
26
+ base64 (0.2.0)
27
+ benchmark (0.4.0)
28
+ bigdecimal (3.1.8)
29
+ concurrent-ruby (1.3.4)
30
+ connection_pool (2.4.1)
31
+ drb (2.2.1)
32
+ i18n (1.14.6)
27
33
  concurrent-ruby (~> 1.0)
28
- json (2.6.3)
29
- minitest (5.18.0)
30
- parallel (1.22.1)
31
- parser (3.2.1.1)
34
+ json (2.8.2)
35
+ language_server-protocol (3.17.0.3)
36
+ logger (1.6.1)
37
+ minitest (5.25.2)
38
+ parallel (1.26.3)
39
+ parser (3.3.6.0)
32
40
  ast (~> 2.4.1)
33
- rack (3.0.4.2)
41
+ racc
42
+ racc (1.8.1)
43
+ rack (3.1.8)
34
44
  rainbow (3.1.1)
35
- rake (13.0.6)
36
- regexp_parser (2.7.0)
37
- rexml (3.2.5)
38
- rubocop (1.48.0)
45
+ rake (13.2.1)
46
+ regexp_parser (2.10.0)
47
+ rubocop (1.69.2)
39
48
  json (~> 2.3)
49
+ language_server-protocol (>= 3.17.0)
40
50
  parallel (~> 1.10)
41
- parser (>= 3.2.0.0)
51
+ parser (>= 3.3.0.2)
42
52
  rainbow (>= 2.2.2, < 4.0)
43
- regexp_parser (>= 1.8, < 3.0)
44
- rexml (>= 3.2.5, < 4.0)
45
- rubocop-ast (>= 1.26.0, < 2.0)
53
+ regexp_parser (>= 2.9.3, < 3.0)
54
+ rubocop-ast (>= 1.36.2, < 2.0)
46
55
  ruby-progressbar (~> 1.7)
47
- unicode-display_width (>= 2.4.0, < 3.0)
48
- rubocop-ast (1.27.0)
49
- parser (>= 3.2.1.0)
50
- rubocop-capybara (2.17.1)
51
- rubocop (~> 1.41)
52
- rubocop-performance (1.16.0)
53
- rubocop (>= 1.7.0, < 2.0)
54
- rubocop-ast (>= 0.4.0)
55
- rubocop-rails (2.18.0)
56
+ unicode-display_width (>= 2.4.0, < 4.0)
57
+ rubocop-ast (1.37.0)
58
+ parser (>= 3.3.1.0)
59
+ rubocop-performance (1.23.0)
60
+ rubocop (>= 1.48.1, < 2.0)
61
+ rubocop-ast (>= 1.31.1, < 2.0)
62
+ rubocop-rails (2.28.0)
56
63
  activesupport (>= 4.2.0)
57
64
  rack (>= 1.1)
58
- rubocop (>= 1.33.0, < 2.0)
59
- rubocop-rake (0.6.0)
60
- rubocop (~> 1.0)
61
- rubocop-rspec (2.19.0)
62
- rubocop (~> 1.33)
63
- rubocop-capybara (~> 2.17)
65
+ rubocop (>= 1.52.0, < 2.0)
66
+ rubocop-ast (>= 1.31.1, < 2.0)
64
67
  ruby-progressbar (1.13.0)
68
+ securerandom (0.3.2)
65
69
  tzinfo (2.0.6)
66
70
  concurrent-ruby (~> 1.0)
67
- unicode-display_width (2.4.2)
71
+ unicode-display_width (2.6.0)
72
+ uri (1.0.2)
68
73
 
69
74
  PLATFORMS
75
+ x86_64-darwin-21
70
76
  x86_64-linux
71
77
 
72
78
  DEPENDENCIES
@@ -74,4 +80,4 @@ DEPENDENCIES
74
80
  rake (~> 13.0)
75
81
 
76
82
  BUNDLED WITH
77
- 2.3.13
83
+ 2.5.23
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Pludoni::Rubocop
1
+ # Pludoni Rubocop
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/pludoni-rubocop.svg)](https://badge.fury.io/rb/pludoni-rubocop)
2
4
 
3
5
  Rubocop shared Gem config for our company projects
4
6
 
@@ -12,7 +14,7 @@ Or add manually to Gemfile:
12
14
 
13
15
  ```ruby
14
16
  group :development, :test do
15
- gem 'pludoni-rubocop', git: 'https://github.com/pludoni/pludoni-rubocop.git', require: false
17
+ gem 'pludoni-rubocop', require: false
16
18
  end
17
19
  ```
18
20
 
@@ -25,6 +27,7 @@ inherit_gem:
25
27
  pludoni-rubocop:
26
28
  - default.yml
27
29
  - rails.yml
30
+ - betterment.yml
28
31
  ```
29
32
 
30
33
  If you have a ``.codeclimate.yml`` change it to match the Rubocop version:
@@ -34,7 +37,7 @@ If you have a ``.codeclimate.yml`` change it to match the Rubocop version:
34
37
  plugins:
35
38
  rubocop:
36
39
  enabled: true
37
- channel: rubocop-1-37
40
+ channel: rubocop-1-48
38
41
  ```
39
42
 
40
43
  ## License
data/default.yml CHANGED
@@ -3,7 +3,7 @@ require:
3
3
  - rubocop-performance
4
4
  AllCops:
5
5
  NewCops: enable
6
- TargetRubyVersion: 3.0
6
+ TargetRubyVersion: 3.3
7
7
  Exclude:
8
8
  - 'bin/*'
9
9
  - 'scripts/**/*'
@@ -33,49 +33,16 @@ Style/Alias:
33
33
  Enabled: false
34
34
  Style/Documentation:
35
35
  Enabled: false
36
- Lint/UnusedMethodArgument:
37
- Enabled: false
38
- Metrics/ModuleLength:
39
- Enabled: false
40
36
  Style/StringLiterals:
41
37
  Enabled: false
42
38
  Style/IfUnlessModifier:
43
39
  Enabled: false
44
- Metrics/MethodLength:
45
- Enabled: false
46
- Layout/LineLength:
47
- Max: 150
48
- Exclude:
49
- - spec/**/*
50
- Metrics/AbcSize:
51
- Enabled: false
52
- Metrics/ClassLength:
53
- Enabled: false
54
- Layout/DotPosition:
55
- Enabled: false
56
40
  Style/BlockDelimiters:
57
41
  Enabled: false
58
- Layout/ParameterAlignment:
59
- EnforcedStyle: with_fixed_indentation
60
- Layout/HashAlignment:
61
- EnforcedHashRocketStyle:
62
- - key
63
- - table
64
- EnforcedColonStyle:
65
- - key
66
- - table
67
-
68
- Layout/MultilineMethodCallIndentation:
69
- EnforcedStyle: indented
70
- # class Admin::PageController
71
42
  Style/ClassAndModuleChildren:
72
43
  Enabled: false
73
-
74
- # asddsa == 0 -> asddsa.zero?
75
44
  Style/NumericPredicate:
76
45
  Enabled: false
77
- Performance/StringReplacement:
78
- Enabled: false
79
46
  # ->() {} -- lambda {|a| }
80
47
  Style/Lambda:
81
48
  EnforcedStyle: 'literal'
@@ -91,19 +58,12 @@ Style/EmptyMethod:
91
58
  # [ "700", "200" ] -> %w[w w]
92
59
  Style/WordArray:
93
60
  Enabled: false
94
- # RSpec nervt
95
- Metrics/BlockLength:
96
- AllowedMethods: ['task', 'namespace', 'get', 'post', 'describe', 'context', 'specify', 'it', 'route_param', 'draw', 'register', 'register_page', 'controller', 'included', 'params', 'resource', 'with_options', 'use_cassette', 'configure', 'transaction']
97
- Bundler/OrderedGems:
98
- Enabled: false
99
- # update_all, update_column
100
- # set_ und get_ verbote
101
- Naming/AccessorMethodName:
102
- Enabled: false
103
61
  Style/TrailingCommaInArrayLiteral:
104
62
  Enabled: false
105
63
  Style/TrailingCommaInHashLiteral:
106
64
  Enabled: false
65
+ Style/TrailingCommaInArguments:
66
+ Enabled: false
107
67
  Style/SymbolArray:
108
68
  Enabled: false
109
69
  Style/AsciiComments:
@@ -112,49 +72,106 @@ Style/FormatString:
112
72
  Enabled: false
113
73
  Style/FormatStringToken:
114
74
  Enabled: false
115
- Metrics/PerceivedComplexity:
75
+ Style/RedundantArgument:
116
76
  Enabled: false
117
- Style/DoubleNegation:
77
+ Style/EndlessMethod:
78
+ EnforcedStyle: allow_always
79
+ Enabled: true
80
+ Style/NegatedIf:
118
81
  Enabled: false
119
- Style/ZeroLengthPredicate:
82
+ Style/QuotedSymbols:
120
83
  Enabled: false
121
- Style/SafeNavigation:
84
+ Style/ClassVars:
122
85
  Enabled: false
123
- Lint/MissingCopEnableDirective:
86
+ Style/AccessorGrouping:
87
+ Enabled: false
88
+ Style/NumericLiterals:
89
+ Enabled: false
90
+ Style/SymbolProc:
124
91
  Enabled: false
125
- Naming/MemoizedInstanceVariableName:
126
- EnforcedStyleForLeadingUnderscores: optional
127
92
  Style/NonNilCheck:
128
93
  Enabled: false
129
94
  Style/RedundantSelf:
130
95
  Enabled: false
96
+ Style/DoubleNegation:
97
+ Enabled: false
98
+ Style/ZeroLengthPredicate:
99
+ Enabled: false
100
+ Style/SafeNavigation:
101
+ Enabled: false
102
+ Style/TrivialAccessors:
103
+ Enabled: false
104
+
105
+ Layout/LineLength:
106
+ Max: 150
107
+ Exclude:
108
+ - spec/**/*
109
+ Layout/DotPosition:
110
+ Enabled: false
111
+ Layout/FirstHashElementIndentation:
112
+ EnforcedStyle: consistent
113
+ Layout/ParameterAlignment:
114
+ EnforcedStyle: with_fixed_indentation
115
+ Layout/HashAlignment:
116
+ EnforcedLastArgumentHashStyle: ignore_implicit
117
+ EnforcedHashRocketStyle:
118
+ - key
119
+ - table
120
+ EnforcedColonStyle:
121
+ - key
122
+ - table
123
+ Layout/MultilineMethodCallIndentation:
124
+ EnforcedStyle: indented
131
125
  Layout/ArgumentAlignment:
132
126
  Enabled: false
133
127
  Layout/MultilineMethodCallBraceLayout:
134
128
  Enabled: false
135
129
  Layout/EmptyLineAfterGuardClause:
136
130
  Enabled: false
137
- Lint/MissingSuper:
131
+ Layout/EmptyLinesAroundAttributeAccessor:
138
132
  Enabled: false
139
- Naming/PredicateName:
133
+
134
+ Metrics/ModuleLength:
140
135
  Enabled: false
141
- Style/ClassVars:
136
+ Metrics/MethodLength:
142
137
  Enabled: false
143
- Style/AccessorGrouping:
138
+ Metrics/AbcSize:
144
139
  Enabled: false
145
- Style/NumericLiterals:
140
+ Metrics/ClassLength:
146
141
  Enabled: false
147
- Style/SymbolProc:
142
+ Metrics/BlockLength:
143
+ AllowedMethods: ['task', 'namespace', 'get', 'post', 'describe', 'context', 'specify', 'it', 'route_param', 'draw', 'register', 'register_page', 'controller', 'included', 'params', 'resource', 'with_options', 'use_cassette', 'configure', 'transaction']
144
+ Metrics/PerceivedComplexity:
148
145
  Enabled: false
149
- Layout/EmptyLinesAroundAttributeAccessor:
146
+ Metrics/ParameterLists:
147
+ CountKeywordArgs: false
148
+ Exclude:
149
+ - "app/graphql/types/**/*.rb"
150
+ Metrics/CyclomaticComplexity:
151
+ Max: 15
152
+
153
+ Performance/StringReplacement:
150
154
  Enabled: false
151
155
  Performance/Casecmp:
152
156
  Enabled: false
153
- Lint/SuppressedException:
157
+ Bundler/OrderedGems:
154
158
  Enabled: false
155
- Style/NegatedIf:
159
+ Naming/AccessorMethodName:
156
160
  Enabled: false
157
- Style/QuotedSymbols:
161
+ Naming/MemoizedInstanceVariableName:
162
+ EnforcedStyleForLeadingUnderscores: optional
163
+ Naming/PredicateName:
164
+ Enabled: false
165
+ Lint/DuplicateBranch:
166
+ IgnoreLiteralBranches: true
167
+ Lint/AmbiguousOperatorPrecedence:
168
+ Enabled: false
169
+ Lint/UnusedMethodArgument:
170
+ Enabled: false
171
+ Lint/MissingCopEnableDirective:
172
+ Enabled: false
173
+ Lint/MissingSuper:
174
+ Exclude:
175
+ - app/views/components/**/*.rb
176
+ Lint/SuppressedException:
158
177
  Enabled: false
159
- Metrics/ParameterLists:
160
- CountKeywordArgs: false
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "pludoni-rubocop"
5
- spec.version = "1.48.0"
5
+ spec.version = "1.69.0"
6
6
  spec.authors = ["Stefan Wienert"]
7
7
  spec.email = ["info@stefanwienert.de"]
8
8
 
@@ -25,8 +25,9 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ["lib"]
27
27
 
28
- spec.add_dependency 'rubocop', '~> 1.48.0'
29
- spec.add_dependency 'rubocop-rails', '~> 2.18.0'
30
- spec.add_dependency 'rubocop-performance', '~> 1.16.0'
31
- spec.add_dependency "betterlint", "~> 1.4.0"
28
+ # betterlint requires 1.62
29
+ # spec.add_dependency "betterlint", "~> 1.13.0"
30
+ spec.add_dependency 'rubocop', '~> 1.69.2'
31
+ spec.add_dependency 'rubocop-rails', '~> 2.28.0'
32
+ spec.add_dependency 'rubocop-performance'
32
33
  end
data/rails.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  require:
2
2
  - rubocop-rails
3
- - rubocop/cop/betterment.rb
4
3
  Rails:
5
4
  Enabled: true
6
5
  Rails/HasAndBelongsToMany:
@@ -14,8 +13,6 @@ Rails/SkipsModelValidations:
14
13
  Enabled: false
15
14
  Rails/ApplicationRecord:
16
15
  Enabled: false
17
- Rails/EnumHash:
18
- Enabled: false
19
16
  Rails/ActionOrder:
20
17
  ExpectedOrder:
21
18
  - index
@@ -31,3 +28,46 @@ Rails/I18nLazyLookup:
31
28
 
32
29
  Rails/HttpStatus:
33
30
  Enabled: false
31
+
32
+ Rails/EnumHash:
33
+ Enabled: true
34
+ Include:
35
+ - app/models/**/*.rb
36
+ - packs/*/app/models/**/*.rb
37
+ Rails/EnumSyntax:
38
+ Enabled: true
39
+ Include:
40
+ - app/models/**/*.rb
41
+ - packs/*/app/models/**/*.rb
42
+ Rails/ActiveRecordOverride:
43
+ Include:
44
+ - app/models/**/*.rb
45
+ - packs/*/app/models/**/*.rb
46
+ Rails/EnumUniqueness:
47
+ Include:
48
+ - app/models/**/*.rb
49
+ - packs/*/app/models/**/*.rb
50
+ Rails/HasManyOrHasOneDependent:
51
+ Include:
52
+ - app/models/**/*.rb
53
+ - packs/*/app/models/**/*.rb
54
+ Rails/InverseOf:
55
+ Include:
56
+ - app/models/**/*.rb
57
+ - packs/*/app/models/**/*.rb
58
+ Rails/ReadWriteAttribute:
59
+ Include:
60
+ - app/models/**/*.rb
61
+ - packs/*/app/models/**/*.rb
62
+ Rails/RedundantAllowNil:
63
+ Include:
64
+ - app/models/**/*.rb
65
+ - packs/*/app/models/**/*.rb
66
+ Rails/ScopeArgs:
67
+ Include:
68
+ - app/models/**/*.rb
69
+ - packs/*/app/models/**/*.rb
70
+ Rails/Validation:
71
+ Include:
72
+ - app/models/**/*.rb
73
+ - packs/*/app/models/**/*.rb
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pludoni-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.48.0
4
+ version: 1.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Wienert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-09 00:00:00.000000000 Z
11
+ date: 2025-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,56 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.48.0
19
+ version: 1.69.2
20
20
  type: :runtime
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: 1.48.0
26
+ version: 1.69.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.18.0
33
+ version: 2.28.0
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: 2.18.0
40
+ version: 2.28.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-performance
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.16.0
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 1.16.0
55
- - !ruby/object:Gem::Dependency
56
- name: betterlint
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 1.4.0
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
52
+ - - ">="
67
53
  - !ruby/object:Gem::Version
68
- version: 1.4.0
54
+ version: '0'
69
55
  description: Shared company Rubocop
70
56
  email:
71
57
  - info@stefanwienert.de
@@ -73,6 +59,7 @@ executables: []
73
59
  extensions: []
74
60
  extra_rdoc_files: []
75
61
  files:
62
+ - ".tool-versions"
76
63
  - Gemfile
77
64
  - Gemfile.lock
78
65
  - LICENSE.txt
@@ -102,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
89
  - !ruby/object:Gem::Version
103
90
  version: '0'
104
91
  requirements: []
105
- rubygems_version: 3.2.33
92
+ rubygems_version: 3.5.16
106
93
  signing_key:
107
94
  specification_version: 4
108
95
  summary: Shared company Rubocop