chefstyle 2.0.5 → 2.0.6

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: 4b08c659e1eca34204d6714da4ef791a40178b0d91967c4924623c9989c1bcdb
4
- data.tar.gz: 897d0470cb32aa60667bfdc8629f535a3f1eb850bb172215f77044f8c4f6536c
3
+ metadata.gz: 1a61b388a0bd0cc6406d42044dd437868ac702d71f4c1c65371a91123eaa3234
4
+ data.tar.gz: 2168512c0fecb8b5a2ea6c4f6e78b66eeac9cd49890e8c040f7493d317f9835c
5
5
  SHA512:
6
- metadata.gz: 4a438e90b3d9f12782bea3fadcc7d0f04dca03e4a732787f9602e346da22e0818760a60cec6a98bf3fd019b2585e2145e504d8c5ea62e517dd4747896c4befff
7
- data.tar.gz: b9a051fd0213bafd8981dcb17e0780f22046ff4feabc7093ab5e49c4f7351e01930d2da1a575b2fddf72cddfab7094164d3011947cbf2e9b57237816b1c83cf9
6
+ metadata.gz: d8183c386be7ccef124ad1c82cfdbf0c147178a5f2beb0c9aeeb70d28f117a339fe4914e538c512d83758a5efdeb29aa0aaec810fbb1d6150fb5d2b1061b4a9e
7
+ data.tar.gz: 37ccdda60b83bef2ef3f90ef0d36efdcd1eb48e9d9b2e7e008057850ee2f968de1d92f08c809cd89f52b9cfe2dd9f3db2cc6f621161a99289881f9c90c2fade2
@@ -123,6 +123,8 @@ Layout/LeadingCommentSpace:
123
123
  Enabled: false
124
124
  Layout/LeadingEmptyLines:
125
125
  Enabled: false
126
+ Layout/LineEndStringConcatenationIndentation:
127
+ Enabled: false
126
128
  Layout/LineLength:
127
129
  Enabled: false
128
130
  Layout/MultilineArrayBraceLayout:
@@ -487,6 +489,8 @@ Naming/HeredocDelimiterCase:
487
489
  Enabled: false
488
490
  Naming/HeredocDelimiterNaming:
489
491
  Enabled: false
492
+ Naming/InclusiveLanguage:
493
+ Enabled: false
490
494
  Naming/MemoizedInstanceVariableName:
491
495
  Enabled: false
492
496
  Naming/MethodName:
data/config/upstream.yml CHANGED
@@ -270,8 +270,8 @@ Layout/AccessModifierIndentation:
270
270
  SupportedStyles:
271
271
  - outdent
272
272
  - indent
273
- # By default, the indentation width from Layout/IndentationWidth is used
274
- # But it can be overridden by setting this parameter
273
+ # By default the indentation width from `Layout/IndentationWidth` is used,
274
+ # but it can be overridden by setting this parameter.
275
275
  IndentationWidth: ~
276
276
 
277
277
  Layout/ArgumentAlignment:
@@ -299,8 +299,8 @@ Layout/ArgumentAlignment:
299
299
  SupportedStyles:
300
300
  - with_first_argument
301
301
  - with_fixed_indentation
302
- # By default, the indentation width from Layout/IndentationWidth is used
303
- # But it can be overridden by setting this parameter
302
+ # By default the indentation width from `Layout/IndentationWidth` is used,
303
+ # but it can be overridden by setting this parameter.
304
304
  IndentationWidth: ~
305
305
 
306
306
  Layout/ArrayAlignment:
@@ -328,8 +328,8 @@ Layout/ArrayAlignment:
328
328
  SupportedStyles:
329
329
  - with_first_element
330
330
  - with_fixed_indentation
331
- # By default, the indentation width from Layout/IndentationWidth is used
332
- # But it can be overridden by setting this parameter
331
+ # By default the indentation width from `Layout/IndentationWidth` is used,
332
+ # but it can be overridden by setting this parameter.
333
333
  IndentationWidth: ~
334
334
 
335
335
  Layout/AssignmentIndentation:
@@ -339,8 +339,8 @@ Layout/AssignmentIndentation:
339
339
  Enabled: true
340
340
  VersionAdded: '0.49'
341
341
  VersionChanged: '0.77'
342
- # By default, the indentation width from `Layout/IndentationWidth` is used
343
- # But it can be overridden by setting this parameter
342
+ # By default the indentation width from `Layout/IndentationWidth` is used,
343
+ # but it can be overridden by setting this parameter.
344
344
  IndentationWidth: ~
345
345
 
346
346
  Layout/BeginEndAlignment:
@@ -387,9 +387,9 @@ Layout/CaseIndentation:
387
387
  - case
388
388
  - end
389
389
  IndentOneStep: false
390
- # By default, the indentation width from `Layout/IndentationWidth` is used.
391
- # But it can be overridden by setting this parameter.
392
- # This only matters if `IndentOneStep` is `true`
390
+ # By default the indentation width from `Layout/IndentationWidth` is used,
391
+ # but it can be overridden by setting this parameter.
392
+ # This only matters if `IndentOneStep` is `true`.
393
393
  IndentationWidth: ~
394
394
 
395
395
  Layout/ClassStructure:
@@ -666,8 +666,8 @@ Layout/FirstArgumentIndentation:
666
666
  # Same as `special_for_inner_method_call` except that the special rule only
667
667
  # applies if the outer method call encloses its arguments in parentheses.
668
668
  - special_for_inner_method_call_in_parentheses
669
- # By default, the indentation width from `Layout/IndentationWidth` is used
670
- # But it can be overridden by setting this parameter
669
+ # By default the indentation width from `Layout/IndentationWidth` is used,
670
+ # but it can be overridden by setting this parameter.
671
671
  IndentationWidth: ~
672
672
 
673
673
  Layout/FirstArrayElementIndentation:
@@ -693,8 +693,8 @@ Layout/FirstArrayElementIndentation:
693
693
  - special_inside_parentheses
694
694
  - consistent
695
695
  - align_brackets
696
- # By default, the indentation width from `Layout/IndentationWidth` is used
697
- # But it can be overridden by setting this parameter
696
+ # By default the indentation width from `Layout/IndentationWidth` is used,
697
+ # but it can be overridden by setting this parameter.
698
698
  IndentationWidth: ~
699
699
 
700
700
  Layout/FirstArrayElementLineBreak:
@@ -725,8 +725,8 @@ Layout/FirstHashElementIndentation:
725
725
  - special_inside_parentheses
726
726
  - consistent
727
727
  - align_braces
728
- # By default, the indentation width from `Layout/IndentationWidth` is used
729
- # But it can be overridden by setting this parameter
728
+ # By default the indentation width from `Layout/IndentationWidth` is used,
729
+ # but it can be overridden by setting this parameter.
730
730
  IndentationWidth: ~
731
731
 
732
732
  Layout/FirstHashElementLineBreak:
@@ -761,8 +761,8 @@ Layout/FirstParameterIndentation:
761
761
  SupportedStyles:
762
762
  - consistent
763
763
  - align_parentheses
764
- # By default, the indentation width from `Layout/IndentationWidth` is used
765
- # But it can be overridden by setting this parameter
764
+ # By default the indentation width from `Layout/IndentationWidth` is used,
765
+ # but it can be overridden by setting this parameter.
766
766
  IndentationWidth: ~
767
767
 
768
768
  Layout/HashAlignment:
@@ -883,8 +883,8 @@ Layout/IndentationStyle:
883
883
  Enabled: true
884
884
  VersionAdded: '0.49'
885
885
  VersionChanged: '0.82'
886
- # By default, the indentation width from Layout/IndentationWidth is used
887
- # But it can be overridden by setting this parameter
886
+ # By default the indentation width from `Layout/IndentationWidth` is used,
887
+ # but it can be overridden by setting this parameter.
888
888
  # It is used during auto-correction to determine how many spaces should
889
889
  # replace each tab.
890
890
  IndentationWidth: ~
@@ -923,6 +923,20 @@ Layout/LeadingEmptyLines:
923
923
  VersionAdded: '0.57'
924
924
  VersionChanged: '0.77'
925
925
 
926
+ Layout/LineEndStringConcatenationIndentation:
927
+ Description: >-
928
+ Checks the indentation of the next line after a line that
929
+ ends with a string literal and a backslash.
930
+ Enabled: pending
931
+ VersionAdded: '1.18'
932
+ EnforcedStyle: aligned
933
+ SupportedStyles:
934
+ - aligned
935
+ - indented
936
+ # By default the indentation width from `Layout/IndentationWidth` is used,
937
+ # but it can be overridden by setting this parameter.
938
+ IndentationWidth: ~
939
+
926
940
  Layout/LineLength:
927
941
  Description: 'Checks that line length does not exceed the configured limit.'
928
942
  StyleGuide: '#max-line-length'
@@ -1053,8 +1067,8 @@ Layout/MultilineMethodCallIndentation:
1053
1067
  - aligned
1054
1068
  - indented
1055
1069
  - indented_relative_to_receiver
1056
- # By default, the indentation width from Layout/IndentationWidth is used
1057
- # But it can be overridden by setting this parameter
1070
+ # By default the indentation width from `Layout/IndentationWidth` is used,
1071
+ # but it can be overridden by setting this parameter.
1058
1072
  IndentationWidth: ~
1059
1073
 
1060
1074
  Layout/MultilineMethodDefinitionBraceLayout:
@@ -1083,8 +1097,8 @@ Layout/MultilineOperationIndentation:
1083
1097
  SupportedStyles:
1084
1098
  - aligned
1085
1099
  - indented
1086
- # By default, the indentation width from `Layout/IndentationWidth` is used
1087
- # But it can be overridden by setting this parameter
1100
+ # By default the indentation width from `Layout/IndentationWidth` is used,
1101
+ # but it can be overridden by setting this parameter.
1088
1102
  IndentationWidth: ~
1089
1103
 
1090
1104
  Layout/ParameterAlignment:
@@ -1112,8 +1126,8 @@ Layout/ParameterAlignment:
1112
1126
  SupportedStyles:
1113
1127
  - with_first_parameter
1114
1128
  - with_fixed_indentation
1115
- # By default, the indentation width from Layout/IndentationWidth is used
1116
- # But it can be overridden by setting this parameter
1129
+ # By default the indentation width from `Layout/IndentationWidth` is used,
1130
+ # but it can be overridden by setting this parameter.
1117
1131
  IndentationWidth: ~
1118
1132
 
1119
1133
  Layout/RedundantLineBreak:
@@ -1795,7 +1809,7 @@ Lint/MissingCopEnableDirective:
1795
1809
  Lint/MissingSuper:
1796
1810
  Description: >-
1797
1811
  This cop checks for the presence of constructors and lifecycle callbacks
1798
- without calls to `super`'.
1812
+ without calls to `super`.
1799
1813
  Enabled: true
1800
1814
  VersionAdded: '0.89'
1801
1815
  VersionChanged: '1.4'
@@ -2520,6 +2534,31 @@ Naming/HeredocDelimiterNaming:
2520
2534
  ForbiddenDelimiters:
2521
2535
  - !ruby/regexp '/(^|\s)(EO[A-Z]{1}|END)(\s|$)/'
2522
2536
 
2537
+ Naming/InclusiveLanguage:
2538
+ Description: 'Recommend the use of inclusive language instead of problematic terms.'
2539
+ Enabled: pending
2540
+ VersionAdded: '1.18'
2541
+ CheckIdentifiers: true
2542
+ CheckConstants: true
2543
+ CheckVariables: true
2544
+ CheckStrings: false
2545
+ CheckSymbols: true
2546
+ CheckComments: true
2547
+ CheckFilepaths: true
2548
+ FlaggedTerms:
2549
+ whitelist:
2550
+ Regex: !ruby/regexp '/white[-_\s]?list/'
2551
+ Suggestions:
2552
+ - allowlist
2553
+ - permit
2554
+ blacklist:
2555
+ Regex: !ruby/regexp '/black[-_\s]?list/'
2556
+ Suggestions:
2557
+ - denylist
2558
+ - block
2559
+ slave:
2560
+ Suggestions: ['replica', 'secondary', 'follower']
2561
+
2523
2562
  Naming/MemoizedInstanceVariableName:
2524
2563
  Description: >-
2525
2564
  Memoized method name should match memo instance variable name.
@@ -3111,6 +3150,7 @@ Style/CommentAnnotation:
3111
3150
  - HACK
3112
3151
  - REVIEW
3113
3152
  - NOTE
3153
+ RequireColon: true
3114
3154
 
3115
3155
  Style/CommentedKeyword:
3116
3156
  Description: 'Do not place comments on the same line as certain keywords.'
@@ -4576,7 +4616,8 @@ Style/StringConcatenation:
4576
4616
  Enabled: true
4577
4617
  Safe: false
4578
4618
  VersionAdded: '0.89'
4579
- VersionChanged: '1.6'
4619
+ VersionChanged: '1.18'
4620
+ Mode: aggressive
4580
4621
 
4581
4622
  Style/StringHashKeys:
4582
4623
  Description: 'Prefer symbols instead of strings as hash keys.'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Chefstyle
3
- VERSION = "2.0.5"
4
- RUBOCOP_VERSION = "1.17.0"
3
+ VERSION = "2.0.6"
4
+ RUBOCOP_VERSION = "1.18.3"
5
5
  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: 2.0.5
4
+ version: 2.0.6
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: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2021-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.17.0
19
+ version: 1.18.3
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.17.0
26
+ version: 1.18.3
27
27
  description:
28
28
  email:
29
29
  - oss@chef.io