chefstyle 1.0.2 → 1.0.5

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: 17b8642aa055242c18ed2ba3fd4a33a762d248baf2ae05487fec0810fba102eb
4
- data.tar.gz: f6da9fc7c9882d1cc5346bc35ca4d30387bd086d3f4fc30d8bee38c5c468d654
3
+ metadata.gz: eeae88f92a024d9fcc4807ee65df12a7362fd72c31d058c3ac912f3ddc8002b3
4
+ data.tar.gz: 386d1d16c8dc7ff06fe434fa0199711a1931f06c674361deb73fb0f627070673
5
5
  SHA512:
6
- metadata.gz: fc01ef1125f843898ada9e3a3aef2bf38fb5075c6082525f3bae4f64bfb8b30bf6fd74749e7fddddf576309f91a384b5963bc40fc96520441e5bec175489feee
7
- data.tar.gz: 4f4cfb55b00c294961c0b9285e95884af05ed6f6953e45625888af802cd76125b6db4876489b17636321f51a66b3ed812ab823ce1f3a4074c8faef649a6b35f5
6
+ metadata.gz: 3acfad2f00e590e688415528442b541b9eff3cf1c3da9ee9b4cb0dedc22ef42f687fffcf1093ee0d650b396d06258eb9e499eb8a17bf78c921a7ca7fb598704c
7
+ data.tar.gz: 7c496c1d5bb771b872e6e36c5d632c135faf9cddb4fdb8dd015a56dcc28083f6c1c3bc69bd4015f2da39dae08dee846b05fb75be228a8dd5cc2e832a9bbbe0b6
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "chefstyle/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "chefstyle"
8
+ spec.version = Chefstyle::VERSION
9
+ spec.authors = ["Chef Software, Inc."]
10
+ spec.email = ["oss@chef.io"]
11
+
12
+ spec.summary = %q{RuboCop configuration for Chef's ruby projects}
13
+ spec.homepage = "https://github.com/chef/chefstyle"
14
+ spec.license = "Apache-2.0"
15
+ spec.required_ruby_version = ">= 2.4"
16
+
17
+ spec.files = %w{LICENSE chefstyle.gemspec} + Dir.glob("{bin,config,lib}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
18
+ spec.executables = %w{chefstyle}
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler"
22
+ spec.add_development_dependency "rake", ">= 12.0"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_dependency("rubocop", Chefstyle::RUBOCOP_VERSION)
25
+ end
@@ -123,6 +123,8 @@ Lint/UselessSetterCall:
123
123
  Enabled: true
124
124
  Lint/Void:
125
125
  Enabled: true
126
+ Layout/CommentIndentation:
127
+ Enabled: true
126
128
 
127
129
  #
128
130
  # Disabled Lint
@@ -59,6 +59,8 @@ Layout/EmptyLinesAroundAccessModifier:
59
59
  Enabled: false
60
60
  Layout/EmptyLinesAroundArguments:
61
61
  Enabled: false
62
+ Layout/EmptyLinesAroundAttributeAccessor:
63
+ Enabled: false
62
64
  Layout/EmptyLinesAroundBeginBody:
63
65
  Enabled: false
64
66
  Layout/EmptyLinesAroundBlockBody:
@@ -697,6 +699,8 @@ Style/SingleLineBlockParams:
697
699
  Enabled: false
698
700
  Style/SingleLineMethods:
699
701
  Enabled: false
702
+ Style/SlicingWithRange:
703
+ Enabled: false
700
704
  Style/SpecialGlobalVars:
701
705
  Enabled: false
702
706
  Style/StabbyLambdaParentheses:
@@ -35,6 +35,7 @@ AllCops:
35
35
  - '**/*.watchr'
36
36
  - '**/.irbrc'
37
37
  - '**/.pryrc'
38
+ - '**/.simplecov'
38
39
  - '**/buildfile'
39
40
  - '**/Appraisals'
40
41
  - '**/Berksfile'
@@ -53,6 +54,7 @@ AllCops:
53
54
  - '**/Podfile'
54
55
  - '**/Puppetfile'
55
56
  - '**/Rakefile'
57
+ - '**/rakefile'
56
58
  - '**/Snapfile'
57
59
  - '**/Steepfile'
58
60
  - '**/Thorfile'
@@ -375,6 +377,7 @@ Layout/ConditionPosition:
375
377
  StyleGuide: '#same-line-condition'
376
378
  Enabled: true
377
379
  VersionAdded: '0.53'
380
+ VersionChanged: '0.83'
378
381
 
379
382
  Layout/DefEndAlignment:
380
383
  Description: 'Align ends corresponding to defs correctly.'
@@ -460,6 +463,12 @@ Layout/EmptyLinesAroundArguments:
460
463
  Enabled: true
461
464
  VersionAdded: '0.52'
462
465
 
466
+ Layout/EmptyLinesAroundAttributeAccessor:
467
+ Description: "Keep blank lines around attribute accessors."
468
+ StyleGuide: '#empty-lines-around-attribute-accessor'
469
+ Enabled: pending
470
+ VersionAdded: '0.83'
471
+
463
472
  Layout/EmptyLinesAroundBeginBody:
464
473
  Description: "Keeps track of empty lines around begin-end bodies."
465
474
  StyleGuide: '#empty-lines-around-bodies'
@@ -1295,8 +1304,8 @@ Layout/TrailingWhitespace:
1295
1304
  StyleGuide: '#no-trailing-whitespace'
1296
1305
  Enabled: true
1297
1306
  VersionAdded: '0.49'
1298
- VersionChanged: '0.55'
1299
- AllowInHeredoc: false
1307
+ VersionChanged: '0.83'
1308
+ AllowInHeredoc: true
1300
1309
 
1301
1310
  #################### Lint ##################################
1302
1311
  ### Warnings
@@ -1316,6 +1325,7 @@ Lint/AmbiguousOperator:
1316
1325
  StyleGuide: '#method-invocation-parens'
1317
1326
  Enabled: true
1318
1327
  VersionAdded: '0.17'
1328
+ VersionChanged: '0.83'
1319
1329
 
1320
1330
  Lint/AmbiguousRegexpLiteral:
1321
1331
  Description: >-
@@ -1323,6 +1333,7 @@ Lint/AmbiguousRegexpLiteral:
1323
1333
  a method invocation without parentheses.
1324
1334
  Enabled: true
1325
1335
  VersionAdded: '0.17'
1336
+ VersionChanged: '0.83'
1326
1337
 
1327
1338
  Lint/AssignmentInCondition:
1328
1339
  Description: "Don't use assignment in conditions."
@@ -1339,8 +1350,9 @@ Lint/BigDecimalNew:
1339
1350
  Lint/BooleanSymbol:
1340
1351
  Description: 'Check for `:true` and `:false` symbols.'
1341
1352
  Enabled: true
1353
+ Safe: false
1342
1354
  VersionAdded: '0.50'
1343
- VersionChanged: '0.81'
1355
+ VersionChanged: '0.83'
1344
1356
 
1345
1357
  Lint/CircularArgumentReference:
1346
1358
  Description: "Default values in optional keyword arguments and optional ordinal arguments should not refer back to the name of the argument."
@@ -1411,13 +1423,16 @@ Lint/EmptyInterpolation:
1411
1423
  Lint/EmptyWhen:
1412
1424
  Description: 'Checks for `when` branches with empty bodies.'
1413
1425
  Enabled: true
1426
+ AllowComments: true
1414
1427
  VersionAdded: '0.45'
1428
+ VersionChanged: '0.83'
1415
1429
 
1416
1430
  Lint/EnsureReturn:
1417
1431
  Description: 'Do not use return in an ensure block.'
1418
1432
  StyleGuide: '#no-return-ensure'
1419
1433
  Enabled: true
1420
1434
  VersionAdded: '0.9'
1435
+ VersionChanged: '0.83'
1421
1436
 
1422
1437
  Lint/ErbNewArguments:
1423
1438
  Description: 'Use `:trim_mode` and `:eoutvar` keyword arguments to `ERB.new`.'
@@ -1565,6 +1580,7 @@ Lint/ParenthesesAsGroupedExpression:
1565
1580
  StyleGuide: '#parens-no-spaces'
1566
1581
  Enabled: true
1567
1582
  VersionAdded: '0.12'
1583
+ VersionChanged: '0.83'
1568
1584
 
1569
1585
  Lint/PercentStringArray:
1570
1586
  Description: >-
@@ -1808,7 +1824,7 @@ Lint/UselessAccessModifier:
1808
1824
  Description: 'Checks for useless access modifiers.'
1809
1825
  Enabled: true
1810
1826
  VersionAdded: '0.20'
1811
- VersionChanged: '0.47'
1827
+ VersionChanged: '0.83'
1812
1828
  ContextCreatingMethods: []
1813
1829
  MethodCreatingMethods: []
1814
1830
 
@@ -2948,6 +2964,7 @@ Style/IfWithSemicolon:
2948
2964
  StyleGuide: '#no-semicolon-ifs'
2949
2965
  Enabled: true
2950
2966
  VersionAdded: '0.9'
2967
+ VersionChanged: '0.83'
2951
2968
 
2952
2969
  Style/ImplicitRuntimeError:
2953
2970
  Description: >-
@@ -3425,7 +3442,9 @@ Style/OptionalArguments:
3425
3442
  of the argument list.
3426
3443
  StyleGuide: '#optional-arguments'
3427
3444
  Enabled: true
3445
+ Safe: false
3428
3446
  VersionAdded: '0.33'
3447
+ VersionChanged: '0.83'
3429
3448
 
3430
3449
  Style/OrAssignment:
3431
3450
  Description: 'Recommend usage of double pipe equals (||=) where applicable.'
@@ -3730,6 +3749,12 @@ Style/SingleLineMethods:
3730
3749
  VersionChanged: '0.19'
3731
3750
  AllowIfMethodIsEmpty: true
3732
3751
 
3752
+ Style/SlicingWithRange:
3753
+ Description: 'Checks array slicing is done with endless ranges when suitable.'
3754
+ Enabled: pending
3755
+ VersionAdded: '0.83'
3756
+ Safe: false
3757
+
3733
3758
  Style/SpecialGlobalVars:
3734
3759
  Description: 'Avoid Perl-style global variables.'
3735
3760
  StyleGuide: '#no-cryptic-perlisms'
@@ -1,4 +1,4 @@
1
1
  module Chefstyle
2
- VERSION = "1.0.2".freeze
3
- RUBOCOP_VERSION = "0.82.0".freeze
2
+ VERSION = "1.0.5".freeze
3
+ RUBOCOP_VERSION = "0.83.0".freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chefstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-20 00:00:00.000000000 Z
11
+ date: 2020-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.82.0
61
+ version: 0.83.0
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: 0.82.0
68
+ version: 0.83.0
69
69
  description:
70
70
  email:
71
71
  - oss@chef.io
@@ -76,6 +76,7 @@ extra_rdoc_files: []
76
76
  files:
77
77
  - LICENSE
78
78
  - bin/chefstyle
79
+ - chefstyle.gemspec
79
80
  - config/chefstyle.yml
80
81
  - config/default.yml
81
82
  - config/disable_all.yml