cookstyle 7.25.9 → 7.25.10

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: 9eb0efc1571e7c41eb101724d88451edf016e1a7e19ed90a20d72879ee5b08ff
4
- data.tar.gz: 02ccfda204d3fa46056c093d1258fa361d730f2da893e39aa4f227ae9105191f
3
+ metadata.gz: 8e30d9d9b8eccc5de1ad1388d9c1a559c2413230a00163d0026ba388700838b4
4
+ data.tar.gz: 73771bda8cc6688d7fd67a66e22b8123bd276caccff733e30cff50629cfc4e9b
5
5
  SHA512:
6
- metadata.gz: b7531239e1f04dcdee653d5c41c36c1a63b546e5a468ca5688eacda2b126aec1780f97cb49615bbcc5833c4cbbc8aff98833297884ad7d30c02a4ea959b9c291
7
- data.tar.gz: cc5742cd59d0c1b416727d7e66eff1c735d485a2261c1dab54d12a8aa716cb1ebd8af1d36a745c45cb08aef876a56efed28c844edd04dd331f5a293694854c05
6
+ metadata.gz: 5c7b27f9a3c82fa49af42bbbce0af3313c39c2908c2a2d4e880a1f7af375a08cdba58f5413e41a5e4147c72ee5b4e5eb4d329d559ff68c6f995b1db804495b36
7
+ data.tar.gz: 6de5a48637e077f9ba4c2570fa6c6e6034c44501bbd4a8d8be75a26d5e174f720d65e2bb4d6dc00326248daa1b9d21b14ac76183ae9bfdc6108b2c010c732f61
@@ -19,6 +19,8 @@ Gemspec/DuplicatedAssignment:
19
19
  Enabled: false
20
20
  Gemspec/OrderedDependencies:
21
21
  Enabled: false
22
+ Gemspec/RequireMFA:
23
+ Enabled: false
22
24
  Gemspec/RequiredRubyVersion:
23
25
  Enabled: false
24
26
  Gemspec/RubyVersionGlobalsUsage:
@@ -459,6 +461,8 @@ Lint/UselessElseWithoutRescue:
459
461
  Enabled: false
460
462
  Lint/UselessMethodDefinition:
461
463
  Enabled: false
464
+ Lint/UselessRuby2Keywords:
465
+ Enabled: false
462
466
  Lint/UselessSetterCall:
463
467
  Enabled: false
464
468
  Lint/UselessTimes:
@@ -709,6 +713,8 @@ Style/MultilineInPatternThen:
709
713
  Enabled: false
710
714
  Style/NumberedParameters:
711
715
  Enabled: false
716
+ Style/OpenStructUse:
717
+ Enabled: false
712
718
  Style/RedundantAssignment:
713
719
  Enabled: false
714
720
  Style/RedundantFetchBlock:
data/config/upstream.yml CHANGED
@@ -150,6 +150,7 @@ AllCops:
150
150
  rubocop-minitest: [minitest]
151
151
  rubocop-sequel: [sequel]
152
152
  rubocop-rake: [rake]
153
+ rubocop-graphql: [graphql]
153
154
 
154
155
  #################### Bundler ###############################
155
156
 
@@ -258,6 +259,15 @@ Gemspec/OrderedDependencies:
258
259
  Include:
259
260
  - '**/*.gemspec'
260
261
 
262
+ Gemspec/RequireMFA:
263
+ Description: 'Checks that the gemspec has metadata to require MFA from RubyGems.'
264
+ Enabled: pending
265
+ VersionAdded: '1.23'
266
+ Reference:
267
+ - https://guides.rubygems.org/mfa-requirement-opt-in/
268
+ Include:
269
+ - '**/*.gemspec'
270
+
261
271
  Gemspec/RequiredRubyVersion:
262
272
  Description: 'Checks that `required_ruby_version` of gemspec is specified and equal to `TargetRubyVersion` of .rubocop.yml.'
263
273
  Enabled: true
@@ -511,13 +521,13 @@ Layout/EmptyLineBetweenDefs:
511
521
  StyleGuide: '#empty-lines-between-methods'
512
522
  Enabled: true
513
523
  VersionAdded: '0.49'
514
- VersionChanged: '1.7'
524
+ VersionChanged: '1.23'
515
525
  EmptyLineBetweenMethodDefs: true
516
526
  EmptyLineBetweenClassDefs: true
517
527
  EmptyLineBetweenModuleDefs: true
518
- # If `true`, this parameter means that single line method definitions don't
519
- # need an empty line between them.
520
- AllowAdjacentOneLineDefs: false
528
+ # `AllowAdjacentOneLineDefs` means that single line method definitions don't
529
+ # need an empty line between them. `true` by default.
530
+ AllowAdjacentOneLineDefs: true
521
531
  # Can be array to specify minimum and maximum number of empty lines, e.g. [1, 2]
522
532
  NumberOfEmptyLines: 1
523
533
 
@@ -2308,6 +2318,11 @@ Lint/UselessMethodDefinition:
2308
2318
  Safe: false
2309
2319
  AllowComments: true
2310
2320
 
2321
+ Lint/UselessRuby2Keywords:
2322
+ Description: 'Finds unnecessary uses of `ruby2_keywords`.'
2323
+ Enabled: pending
2324
+ VersionAdded: '1.23'
2325
+
2311
2326
  Lint/UselessSetterCall:
2312
2327
  Description: 'Checks for useless setter call to a local variable.'
2313
2328
  Enabled: true
@@ -2501,6 +2516,7 @@ Naming/FileName:
2501
2516
  StyleGuide: '#snake-case-files'
2502
2517
  Enabled: true
2503
2518
  VersionAdded: '0.50'
2519
+ VersionChanged: '1.23'
2504
2520
  # Camel case file names listed in `AllCops:Include` and all file names listed
2505
2521
  # in `AllCops:Exclude` are excluded by default. Add extra excludes here.
2506
2522
  Exclude: []
@@ -2513,6 +2529,13 @@ Naming/FileName:
2513
2529
  # whether each source file's class or module name matches the file name --
2514
2530
  # not whether the nested module hierarchy matches the subdirectory path.
2515
2531
  CheckDefinitionPathHierarchy: true
2532
+ # paths that are considered root directories, for example "lib" in most ruby projects
2533
+ # or "app/models" in rails projects
2534
+ CheckDefinitionPathHierarchyRoots:
2535
+ - lib
2536
+ - spec
2537
+ - test
2538
+ - src
2516
2539
  # If non-`nil`, expect all source file names to match the following regex.
2517
2540
  # Only the file name itself is matched, not the entire file path.
2518
2541
  # Use anchors as necessary if you want to match the entire name rather than
@@ -4216,6 +4239,16 @@ Style/OneLineConditional:
4216
4239
  VersionAdded: '0.9'
4217
4240
  VersionChanged: '0.90'
4218
4241
 
4242
+ Style/OpenStructUse:
4243
+ Description: >-
4244
+ Avoid using OpenStruct. As of Ruby 3.0, use is officially discouraged due to performance,
4245
+ version compatibility, and potential security issues.
4246
+ Reference:
4247
+ - https://docs.ruby-lang.org/en/3.0.0/OpenStruct.html#class-OpenStruct-label-Caveats
4248
+
4249
+ Enabled: pending
4250
+ VersionAdded: '1.23'
4251
+
4219
4252
  Style/OptionHash:
4220
4253
  Description: "Don't use option hashes when you can use keyword arguments."
4221
4254
  Enabled: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Cookstyle
3
- VERSION = "7.25.9" # rubocop: disable Style/StringLiterals
4
- RUBOCOP_VERSION = '1.22.3'
3
+ VERSION = "7.25.10" # rubocop: disable Style/StringLiterals
4
+ RUBOCOP_VERSION = '1.23.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.25.9
4
+ version: 7.25.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-10-27 00:00:00.000000000 Z
12
+ date: 2021-11-15 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: 1.22.3
20
+ version: 1.23.0
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: 1.22.3
27
+ version: 1.23.0
28
28
  description:
29
29
  email:
30
30
  - thom@chef.io