rubocop_fonsan_style 0.1.2 → 0.1.3

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: 666ab91b675c8422e9382aca418fbfba299ff44425fdfaee0be4033bb4b09453
4
- data.tar.gz: dbe71d83232197ca741f9d566770bb0407c9ed8cdf343f6818ac5309340cc008
3
+ metadata.gz: 47dbf92c0e8ffed09ec69f6b1a7f147e11edd7862c2dad314f921630e915f0ab
4
+ data.tar.gz: 055f9153bc50615d0b893c65d5e491e8bce65a37197367dd02c9bc008713492b
5
5
  SHA512:
6
- metadata.gz: c3698a9a18c0f9cb9e84283c956166c876060c695c7e8aa8359606695d068e0159ccc3e1aa95e908a138b2a6a3d607f6ad39ca8da3aa60a28cd43029f14f1899
7
- data.tar.gz: 23634c1c457742b96534c16b58884f318eb5c76d785fe1dd05032631990530976a6ed6a076c6d968a933d79e04cb7f0f37414fba140058c007a9a14e753488e2
6
+ metadata.gz: f3a2d48b03e53108d9f4f4845b8f9ed06a107abeb818b9ed895af8d0a7f60c0d2efb2b995f5904d817fe54b47ddc509634600423a122d9e1cffd12ccc60d1900
7
+ data.tar.gz: 78ee29492d88a9f1c54676926568ca6d14b06e657dc8c5c942f502a1c4d4b462ad98d326252aaa4d0320111ab6b1daa1b7fa9b188e4f299be54936b51e956089
data/.rubocop.default.yml CHANGED
@@ -72,6 +72,13 @@ Layout/SpaceInsideBlockBraces:
72
72
  SpaceBeforeBlockParameters: false
73
73
  Layout/SpaceInsideHashLiteralBraces:
74
74
  EnforcedStyle: no_space
75
+
76
+ Lint/MixedCaseRange: # new in 1.53
77
+ Enabled: true
78
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
79
+ Enabled: true
80
+ Lint/DuplicateMatchPattern: # new in 1.50
81
+ Enabled: true
75
82
  Lint/UselessRescue:
76
83
  Enabled: true
77
84
  Lint/AmbiguousAssignment:
@@ -184,6 +191,8 @@ Lint/UselessTimes:
184
191
  Enabled: true
185
192
  Metrics/AbcSize:
186
193
  Enabled: false
194
+ Metrics/CollectionLiteralLength: # new in 1.47
195
+ Enabled: true
187
196
  Metrics/BlockLength:
188
197
  Exclude:
189
198
  - "**/*.gemspec"
@@ -216,6 +225,8 @@ Naming/VariableNumber:
216
225
  EnforcedStyle: snake_case
217
226
  Performance/AncestorsInclude:
218
227
  Enabled: true
228
+ Performance/MapMethodChain: # new in 1.19
229
+ Enabled: true
219
230
  Performance/BigDecimalWithNumericArgument:
220
231
  Enabled: true
221
232
  Performance/BlockGivenWithExplicitBlock:
@@ -256,6 +267,34 @@ Security/CompoundHash:
256
267
  Enabled: true
257
268
  Security/IoMethods:
258
269
  Enabled: true
270
+ Style/DataInheritance: # new in 1.49
271
+ Enabled: true
272
+ Style/DirEmpty: # new in 1.48
273
+ Enabled: true
274
+ Style/ExactRegexpMatch: # new in 1.51
275
+ Enabled: true
276
+ Style/FileEmpty: # new in 1.48
277
+ Enabled: true
278
+ Style/RedundantArrayConstructor: # new in 1.52
279
+ Enabled: true
280
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
281
+ Enabled: true
282
+ Style/RedundantFilterChain: # new in 1.52
283
+ Enabled: true
284
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
285
+ Enabled: true
286
+ Style/RedundantLineContinuation: # new in 1.49
287
+ Enabled: true
288
+ Style/RedundantRegexpArgument: # new in 1.53
289
+ Enabled: true
290
+ Style/RedundantRegexpConstructor: # new in 1.52
291
+ Enabled: true
292
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
293
+ Enabled: false
294
+ Style/SingleLineDoEndBlock: # new in 1.57
295
+ Enabled: true
296
+ Style/YAMLFileRead: # new in 1.53
297
+ Enabled: true
259
298
  Style/RedundantDoubleSplatHashBraces:
260
299
  Enabled: true
261
300
  Style/RedundantConstantBase:
data/.rubocop.rails.yml CHANGED
@@ -1,6 +1,17 @@
1
1
  require:
2
2
  - rubocop-rails
3
3
 
4
+
5
+ Rails/UnusedRenderContent: # new in 2.21
6
+ Enabled: true
7
+ Rails/ThreeStateBooleanColumn: # new in 2.19
8
+ Enabled: true
9
+ Rails/ResponseParsedBody: # new in 2.18
10
+ Enabled: true
11
+ Rails/RedundantActiveRecordAllMethod: # new in 2.21
12
+ Enabled: true
13
+ Rails/DangerousColumnNames: # new in 2.21
14
+ Enabled: true
4
15
  Rails/AddColumnIndex: # new in 2.11
5
16
  Enabled: true
6
17
  Rails/AttributeDefaultBlockValue: # new in 2.9
data/.rubocop.rspec.yml CHANGED
@@ -11,8 +11,6 @@ RSpec/IdenticalEqualityAssertion: # new in 2.4
11
11
  Enabled: true
12
12
  RSpec/SubjectDeclaration: # new in 2.5
13
13
  Enabled: true
14
- RSpec/FactoryBot/SyntaxMethods: # new in 2.7
15
- Enabled: true
16
14
  RSpec/Rails/AvoidSetupHook: # new in 2.4
17
15
  Enabled: true
18
16
  RSpec/StubbedMock: # (new in 1.44)
@@ -41,7 +39,11 @@ Capybara/MatchStyle: # new in <<next>>
41
39
  Enabled: true
42
40
  Capybara/SpecificMatcher: # new in 2.12
43
41
  Enabled: true
44
- RSpec/FactoryBot/ConsistentParenthesesStyle: # new in 2.14
42
+ Capybara/ClickLinkOrButtonStyle: # new in 2.19
43
+ Enabled: true
44
+ Capybara/RSpec/HaveSelector: # new in 2.19
45
+ Enabled: true
46
+ Capybara/RSpec/PredicateMatcher: # new in 2.19
45
47
  Enabled: true
46
48
  RSpec/Rails/HaveHttpStatus: # new in 2.12
47
49
  Enabled: true
@@ -59,7 +61,48 @@ RSpec/DuplicatedMetadata: # new in 2.16
59
61
  Enabled: true
60
62
  RSpec/PendingWithoutReason: # new in 2.16
61
63
  Enabled: false
62
- RSpec/FactoryBot/FactoryNameStyle: # new in 2.16
64
+ RSpec/BeEmpty: # new in 2.20
65
+ Enabled: true
66
+ RSpec/ContainExactly: # new in 2.19
67
+ Enabled: true
68
+ RSpec/EmptyMetadata: # new in 2.24
69
+ Enabled: true
70
+ RSpec/Eq: # new in 2.24
71
+ Enabled: true
72
+ RSpec/IndexedLet: # new in 2.20
73
+ Enabled: true
74
+ RSpec/MatchArray: # new in 2.19
75
+ Enabled: true
76
+ RSpec/MetadataStyle: # new in 2.24
77
+ Enabled: true
78
+ RSpec/ReceiveMessages: # new in 2.23
79
+ Enabled: true
80
+ RSpec/RedundantAround: # new in 2.19
81
+ Enabled: true
82
+ RSpec/SkipBlockInsideExample: # new in 2.19
83
+ Enabled: true
84
+ RSpec/SpecFilePathFormat: # new in 2.24
85
+ Enabled: true
86
+ RSpec/SpecFilePathSuffix: # new in 2.24
87
+ Enabled: true
88
+ RSpec/Rails/NegationBeValid: # new in 2.23
89
+ Enabled: true
90
+ RSpec/Rails/TravelAround: # new in 2.19
63
91
  Enabled: true
64
92
  RSpec/Rails/MinitestAssertions: # new in 2.17
65
93
  Enabled: true
94
+
95
+ FactoryBot/SyntaxMethods: # new in 2.7
96
+ Enabled: true
97
+ FactoryBot/ConsistentParenthesesStyle: # new in 2.14
98
+ Enabled: true
99
+ FactoryBot/FactoryNameStyle: # new in 2.16
100
+ Enabled: true
101
+ FactoryBot/AssociationStyle: # new in 2.23
102
+ Enabled: true
103
+ FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
104
+ Enabled: true
105
+ FactoryBot/IdSequence: # new in <<next>>
106
+ Enabled: true
107
+ FactoryBot/RedundantFactoryOption: # new in 2.23
108
+ Enabled: true
data/Gemfile.lock CHANGED
@@ -1,99 +1,120 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop_fonsan_style (0.1.2)
5
- haml_lint (~> 0.45)
6
- rubocop (~> 1.44)
7
- rubocop-performance (~> 1.15)
8
- rubocop-rails (~> 2.17)
4
+ rubocop_fonsan_style (0.1.3)
5
+ haml_lint (~> 0.51)
6
+ rubocop (~> 1.57)
7
+ rubocop-performance (~> 1.19)
8
+ rubocop-rails (~> 2.21)
9
9
  rubocop-rake (~> 0.6.0)
10
- rubocop-rspec (~> 2.18)
10
+ rubocop-rspec (~> 2.24)
11
11
  rubocop-rubycw (~> 0.1)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (7.0.4.2)
16
+ activesupport (7.1.1)
17
+ base64
18
+ bigdecimal
17
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
+ connection_pool (>= 2.2.5)
21
+ drb
18
22
  i18n (>= 1.6, < 2)
19
23
  minitest (>= 5.1)
24
+ mutex_m
20
25
  tzinfo (~> 2.0)
21
26
  ast (2.4.2)
22
- concurrent-ruby (1.2.0)
27
+ base64 (0.1.1)
28
+ bigdecimal (3.1.4)
29
+ concurrent-ruby (1.2.2)
30
+ connection_pool (2.4.1)
23
31
  diff-lcs (1.5.0)
24
- haml (6.1.1)
32
+ drb (2.1.1)
33
+ ruby2_keywords
34
+ haml (6.2.3)
25
35
  temple (>= 0.8.2)
26
36
  thor
27
37
  tilt
28
- haml_lint (0.45.0)
29
- haml (>= 4.0, < 6.2)
38
+ haml_lint (0.51.0)
39
+ haml (>= 4.0)
30
40
  parallel (~> 1.10)
31
41
  rainbow
32
- rubocop (>= 0.50.0)
42
+ rubocop (>= 1.0)
33
43
  sysexits (~> 1.1)
34
- i18n (1.12.0)
44
+ i18n (1.14.1)
35
45
  concurrent-ruby (~> 1.0)
36
46
  json (2.6.3)
37
- minitest (5.17.0)
38
- parallel (1.22.1)
39
- parser (3.2.0.0)
47
+ language_server-protocol (3.17.0.3)
48
+ minitest (5.20.0)
49
+ mutex_m (0.1.2)
50
+ parallel (1.23.0)
51
+ parser (3.2.2.4)
40
52
  ast (~> 2.4.1)
41
- rack (3.0.4.1)
53
+ racc
54
+ racc (1.7.1)
55
+ rack (3.0.8)
42
56
  rainbow (3.1.1)
43
57
  rake (13.0.6)
44
- regexp_parser (2.6.2)
45
- rexml (3.2.5)
58
+ regexp_parser (2.8.2)
59
+ rexml (3.2.6)
46
60
  rspec (3.12.0)
47
61
  rspec-core (~> 3.12.0)
48
62
  rspec-expectations (~> 3.12.0)
49
63
  rspec-mocks (~> 3.12.0)
50
- rspec-core (3.12.1)
64
+ rspec-core (3.12.2)
51
65
  rspec-support (~> 3.12.0)
52
- rspec-expectations (3.12.2)
66
+ rspec-expectations (3.12.3)
53
67
  diff-lcs (>= 1.2.0, < 2.0)
54
68
  rspec-support (~> 3.12.0)
55
- rspec-mocks (3.12.3)
69
+ rspec-mocks (3.12.6)
56
70
  diff-lcs (>= 1.2.0, < 2.0)
57
71
  rspec-support (~> 3.12.0)
58
- rspec-support (3.12.0)
59
- rubocop (1.44.1)
72
+ rspec-support (3.12.1)
73
+ rubocop (1.57.1)
74
+ base64 (~> 0.1.1)
60
75
  json (~> 2.3)
76
+ language_server-protocol (>= 3.17.0)
61
77
  parallel (~> 1.10)
62
- parser (>= 3.2.0.0)
78
+ parser (>= 3.2.2.4)
63
79
  rainbow (>= 2.2.2, < 4.0)
64
80
  regexp_parser (>= 1.8, < 3.0)
65
81
  rexml (>= 3.2.5, < 4.0)
66
- rubocop-ast (>= 1.24.1, < 2.0)
82
+ rubocop-ast (>= 1.28.1, < 2.0)
67
83
  ruby-progressbar (~> 1.7)
68
84
  unicode-display_width (>= 2.4.0, < 3.0)
69
- rubocop-ast (1.24.1)
70
- parser (>= 3.1.1.0)
71
- rubocop-capybara (2.17.0)
85
+ rubocop-ast (1.29.0)
86
+ parser (>= 3.2.1.0)
87
+ rubocop-capybara (2.19.0)
72
88
  rubocop (~> 1.41)
73
- rubocop-performance (1.15.2)
89
+ rubocop-factory_bot (2.24.0)
90
+ rubocop (~> 1.33)
91
+ rubocop-performance (1.19.1)
74
92
  rubocop (>= 1.7.0, < 2.0)
75
93
  rubocop-ast (>= 0.4.0)
76
- rubocop-rails (2.17.4)
94
+ rubocop-rails (2.21.2)
77
95
  activesupport (>= 4.2.0)
78
96
  rack (>= 1.1)
79
97
  rubocop (>= 1.33.0, < 2.0)
80
98
  rubocop-rake (0.6.0)
81
99
  rubocop (~> 1.0)
82
- rubocop-rspec (2.18.1)
100
+ rubocop-rspec (2.24.1)
83
101
  rubocop (~> 1.33)
84
102
  rubocop-capybara (~> 2.17)
103
+ rubocop-factory_bot (~> 2.22)
85
104
  rubocop-rubycw (0.1.6)
86
105
  rubocop (~> 1.0)
87
- ruby-progressbar (1.11.0)
106
+ ruby-progressbar (1.13.0)
107
+ ruby2_keywords (0.0.5)
88
108
  sysexits (1.2.0)
89
- temple (0.10.0)
90
- thor (1.2.1)
91
- tilt (2.0.11)
109
+ temple (0.10.3)
110
+ thor (1.3.0)
111
+ tilt (2.3.0)
92
112
  tzinfo (2.0.6)
93
113
  concurrent-ruby (~> 1.0)
94
- unicode-display_width (2.4.2)
114
+ unicode-display_width (2.5.0)
95
115
 
96
116
  PLATFORMS
117
+ arm64-darwin-22
97
118
  x86_64-darwin-20
98
119
  x86_64-darwin-22
99
120
  x86_64-linux
@@ -111,4 +132,4 @@ DEPENDENCIES
111
132
  rubocop_fonsan_style!
112
133
 
113
134
  BUNDLED WITH
114
- 2.4.6
135
+ 2.4.15
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopFonsanStyle
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = 'An opionated rubocop style'
13
13
  spec.homepage = 'https://github.com/Fonsan/rubocop_fonsan_style'
14
14
  spec.license = 'MIT'
15
- spec.required_ruby_version = '>= 2.6.0'
15
+ spec.required_ruby_version = '>= 2.7.0'
16
16
 
17
17
  spec.metadata['homepage_uri'] = spec.homepage
18
18
  spec.metadata['source_code_uri'] = spec.homepage
@@ -30,12 +30,12 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ['lib']
31
31
 
32
32
  # Uncomment to register a new dependency of your gem
33
- spec.add_dependency 'haml_lint', '~> 0.45'
34
- spec.add_dependency 'rubocop', '~> 1.44'
35
- spec.add_dependency 'rubocop-performance', '~> 1.15'
36
- spec.add_dependency 'rubocop-rails', '~> 2.17'
33
+ spec.add_dependency 'haml_lint', '~> 0.51'
34
+ spec.add_dependency 'rubocop', '~> 1.57'
35
+ spec.add_dependency 'rubocop-performance', '~> 1.19'
36
+ spec.add_dependency 'rubocop-rails', '~> 2.21'
37
37
  spec.add_dependency 'rubocop-rake', '~> 0.6.0'
38
- spec.add_dependency 'rubocop-rspec', '~> 2.18'
38
+ spec.add_dependency 'rubocop-rspec', '~> 2.24'
39
39
  spec.add_dependency 'rubocop-rubycw', '~> 0.1'
40
40
 
41
41
  # For more information and examples about making a new gem, check out our
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_fonsan_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fonsan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-05 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml_lint
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.45'
19
+ version: '0.51'
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: '0.45'
26
+ version: '0.51'
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: '1.44'
33
+ version: '1.57'
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: '1.44'
40
+ version: '1.57'
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.15'
47
+ version: '1.19'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.15'
54
+ version: '1.19'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.17'
61
+ version: '2.21'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.17'
68
+ version: '2.21'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.18'
89
+ version: '2.24'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '2.18'
96
+ version: '2.24'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop-rubycw
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -146,14 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: 2.6.0
149
+ version: 2.7.0
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 3.4.1
156
+ rubygems_version: 3.4.10
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Fonsan rubocop