arcadia_cops 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/config/enabled.yml +20 -16
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa1d04eed8a17fd643fa840615f178d3a58a381f
4
- data.tar.gz: 7531c70a28a1198ace5a2006bc0fec1edc6eb9d6
3
+ metadata.gz: b507783b812dc339af9d29ff99b2d7391647ea73
4
+ data.tar.gz: 054355e49ec7690650a8b43c455e1b8b88d429a0
5
5
  SHA512:
6
- metadata.gz: 59b68d239596179937bed31e6bb8bccc3950f0cc570da41fbd1c73b0b91f65c3e98f6e695b06cf144fd4762cdd9f65bdef3ed103036413e991d07da0730138d3
7
- data.tar.gz: 4ac43e9ce873759cd95f3ef828cb338503ab9aea59d01f7bc4649631f839c6caaf4c76b8ddf75f9b85e583cb44786995cc0d95ce2ffc285930de27e92ac32bc3
6
+ metadata.gz: 2814fff77044dc62de8cd0831aebb51ea603b1749e911a94b3744fd85b166247f8da1f1e47d7ea4bdb8369642e1021d412c86feb9fd2a1b5399c442cb657dbc4
7
+ data.tar.gz: 9358a44837922ea9ce0cb500b29257d6ef3a463b27db0085eaca09a3cff6dfdca67a8f62ded66d8215f88255040cde4b13388f5fbf35522f445a0facffa19a94
data/README.md CHANGED
@@ -16,7 +16,7 @@ Then setup your `.rubocop.yml` file per [rubocop docs](http://rubocop.readthedoc
16
16
 
17
17
  Add a new cop to the `enabled.yml`, bump the version, and put in a PR for review.
18
18
 
19
- To see all cops including those that aren't enabled run `bundle exex rubocop --show-cops`.
19
+ To see all cops including those that aren't enabled run `bundle exec rubocop --show-cops`.
20
20
 
21
21
  ## Release
22
22
 
data/config/enabled.yml CHANGED
@@ -80,14 +80,14 @@ Style/CommentAnnotation:
80
80
  (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
81
81
  StyleGuide: '#annotate-keywords'
82
82
 
83
- Style/ClassAndModuleCamelCase:
83
+ Naming/ClassAndModuleCamelCase:
84
84
  Description: 'Use CamelCase for classes and modules.'
85
85
  StyleGuide: '#camelcase-classes'
86
86
 
87
87
  Style/ClassAndModuleChildren:
88
88
  Description: 'Checks style of children classes and modules.'
89
89
 
90
- Style/ConstantName:
90
+ Naming/ConstantName:
91
91
  Description: 'Constants should use SCREAMING_SNAKE_CASE.'
92
92
  StyleGuide: '#screaming-snake-case'
93
93
 
@@ -106,8 +106,12 @@ Style/TrailingCommaInArguments:
106
106
  Description: 'Checks for trailing comma in argument lists.'
107
107
  StyleGuide: '#no-trailing-params-comma'
108
108
 
109
- Style/TrailingCommaInLiteral:
110
- Description: 'Checks for trailing comma in array and hash literals.'
109
+ Style/TrailingCommaInArguments:
110
+ Description: 'Checks for trailing comma in argument lists.'
111
+ StyleGuide: '#no-trailing-params-comma'
112
+
113
+ Style/TrailingCommaInArrayLiteral:
114
+ Description: 'Checks for trailing comma in array literals.'
111
115
  StyleGuide: '#no-trailing-array-commas'
112
116
 
113
117
  Style/DoubleNegation:
@@ -153,7 +157,7 @@ Style/EmptyMethod:
153
157
  Description: 'Checks the formatting of empty method definitions.'
154
158
  StyleGuide: '#no-single-line-methods'
155
159
 
156
- Style/FileName:
160
+ Naming/FileName:
157
161
  Description: 'Use snake_case for source file names.'
158
162
  StyleGuide: '#snake-case-files'
159
163
 
@@ -169,6 +173,11 @@ Style/HashSyntax:
169
173
  Layout/IndentHash:
170
174
  Description: 'Checks the indentation of the first key in a hash literal.'
171
175
 
176
+ Style/Lambda:
177
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
178
+ StyleGuide: '#lambda-multi-line'
179
+ Enabled: true
180
+
172
181
  Style/MethodCallWithoutArgsParentheses:
173
182
  Description: 'Do not use parentheses for method calls with no arguments.'
174
183
  StyleGuide: '#method-invocation-parens'
@@ -341,13 +350,13 @@ Lint/AssignmentInCondition:
341
350
  Description: "Don't use assignment in conditions."
342
351
  StyleGuide: '#safe-assignment-in-condition'
343
352
 
344
- Lint/BlockAlignment:
353
+ Layout/BlockAlignment:
345
354
  Description: 'Align block ends correctly.'
346
355
 
347
356
  Lint/CircularArgumentReference:
348
357
  Description: "Default values in optional keyword arguments and optional ordinal arguments should not refer back to the name of the argument."
349
358
 
350
- Lint/ConditionPosition:
359
+ Layout/ConditionPosition:
351
360
  Description: >-
352
361
  Checks for condition placed in a confusing position relative to
353
362
  the keyword.
@@ -356,7 +365,7 @@ Lint/ConditionPosition:
356
365
  Lint/Debugger:
357
366
  Description: 'Check for debugger calls.'
358
367
 
359
- Lint/DefEndAlignment:
368
+ Layout/DefEndAlignment:
360
369
  Description: 'Align ends corresponding to defs correctly.'
361
370
 
362
371
  Lint/DeprecatedClassMethods:
@@ -389,7 +398,7 @@ Lint/EmptyInterpolation:
389
398
  Lint/EmptyWhen:
390
399
  Description: 'Checks for `when` branches with empty bodies.'
391
400
 
392
- Lint/EndAlignment:
401
+ Layout/EndAlignment:
393
402
  Description: 'Align ends correctly.'
394
403
 
395
404
  Lint/EndInMethod:
@@ -424,12 +433,7 @@ Lint/IneffectiveAccessModifier:
424
433
  Lint/InheritException:
425
434
  Description: 'Avoid inheriting from the `Exception` class.'
426
435
 
427
- Lint/InvalidCharacterLiteral:
428
- Description: >-
429
- Checks for invalid character literals with a non-escaped
430
- whitespace character.
431
-
432
- Lint/LiteralInCondition:
436
+ Lint/LiteralAsCondition:
433
437
  Description: 'Checks of literals used in conditions.'
434
438
 
435
439
  Lint/LiteralInInterpolation:
@@ -501,7 +505,7 @@ Lint/UnderscorePrefixedVariableName:
501
505
  Lint/UnifiedInteger:
502
506
  Description: 'Use Integer instead of Fixnum or Bignum'
503
507
 
504
- Lint/UnneededDisable:
508
+ Lint/UnneededCopDisableDirective:
505
509
  Description: >-
506
510
  Checks for rubocop:disable comments that can be removed.
507
511
  Note: this cop is not disabled when disabling all cops.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcadia_cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - justin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-28 00:00:00.000000000 Z
11
+ date: 2018-03-15 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: 0.49.1
19
+ version: 0.53.0
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.49.1
26
+ version: 0.53.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.6.13
85
+ rubygems_version: 2.6.11
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Arcadia Power Style Cops