autocop 0.4.0 → 0.4.1

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: 77c1213914cb1966245b4919bc74a5c3dc624ef37dba0655dd0a43f13d6f523f
4
- data.tar.gz: 19445f40d8011216e0348371251873c13abc51665e0610cdcfe2adc6a5ae2482
3
+ metadata.gz: a834ca973acade2f3b0572ef6cfad0495144aa8904e4851eb0842862c06fe3bb
4
+ data.tar.gz: d86facc38fe4cdcdffe08b2dad11df02d63ac94c8de8160aff0d07e55edbc27e
5
5
  SHA512:
6
- metadata.gz: 56141fb6adbc5970506860068753da21b3e137b62ba2345ca4558d574a2069607d1608aede4377c90fd06b390c5cedb03d2d2a7ae7422e3c013d6321f7d809f5
7
- data.tar.gz: 3c1aa8392847cf7afa2225915ab687e26a5a2fc719a2ff856f229a7885ef55cc6cf5f1df20292dc16dc51b3796ea629dc5b919806406e24591a762741574f4f4
6
+ metadata.gz: a7e8d15985f46c6d036dea686dfeb71673e0ab8ae61acb9833cc3e939d202198a7259336760b6d9329a45e45f2c300de99cf1b293b364b9aa7f92cd753bfaea0
7
+ data.tar.gz: 6675ecc798770113d8e9d8da4b8c21d9bbe5b4053aa548cc73ce729a53bb2bc15ec51c43a273256a84ddda43f68a92757081b0c8dbd53bf7b0cdff5248a43cd4
@@ -65,10 +65,6 @@ Lint/DuplicateMethods:
65
65
  Description: Check for duplicate method definitions.
66
66
  Enabled: true
67
67
 
68
- Lint/DuplicatedKey:
69
- Description: Check for duplicate keys in hash literals.
70
- Enabled: true
71
-
72
68
  Lint/EachWithObjectArgument:
73
69
  Description: Check for immutable argument given to each_with_object.
74
70
  Enabled: true
@@ -106,11 +102,6 @@ Lint/FormatParameterMismatch:
106
102
  Description: The number of parameters to format/sprint must match the fields.
107
103
  Enabled: true
108
104
 
109
- Lint/HandleExceptions:
110
- Description: Don't suppress exception.
111
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
112
- Enabled: true
113
-
114
105
  Lint/ImplicitStringConcatenation:
115
106
  Description: Checks for adjacent string literals on the same line, which could better
116
107
  be represented as a single string literal.
@@ -171,12 +162,6 @@ Lint/ShadowingOuterLocalVariable:
171
162
  or block local variables.
172
163
  Enabled: true
173
164
 
174
- # Supports --auto-correct
175
- Lint/StringConversionInInterpolation:
176
- Description: Checks for Object#to_s usage in string interpolation.
177
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
178
- Enabled: true
179
-
180
165
  Lint/UnderscorePrefixedVariableName:
181
166
  Description: Do not use prefix `_` for a variable that is used.
182
167
  Enabled: true
@@ -558,35 +543,6 @@ Style/Alias:
558
543
  - prefer_alias
559
544
  - prefer_alias_method
560
545
 
561
- # Supports --auto-correct
562
- Layout/AlignArray:
563
- Description: Align the elements of an array literal if they span more than one line.
564
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
565
- Enabled: true
566
-
567
- # Supports --auto-correct
568
- Layout/AlignHash:
569
- Description: Align the elements of a hash literal if they span more than one line.
570
- Enabled: true
571
- EnforcedHashRocketStyle: key
572
- EnforcedColonStyle: key
573
- EnforcedLastArgumentHashStyle: always_inspect
574
- SupportedLastArgumentHashStyles:
575
- - always_inspect
576
- - always_ignore
577
- - ignore_implicit
578
- - ignore_explicit
579
-
580
- # Supports --auto-correct
581
- Layout/AlignParameters:
582
- Description: Align the parameters of a method call if they span more than one line.
583
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
584
- Enabled: true
585
- EnforcedStyle: with_first_parameter
586
- SupportedStyles:
587
- - with_first_parameter
588
- - with_fixed_indentation
589
-
590
546
  # Supports --auto-correct
591
547
  Style/AndOr:
592
548
  Description: Use &&/|| instead of and/or.
@@ -1058,13 +1014,6 @@ Style/IfWithSemicolon:
1058
1014
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
1059
1015
  Enabled: true
1060
1016
 
1061
- # Supports --auto-correct
1062
- Layout/IndentAssignment:
1063
- Description: Checks the indentation of the first line of the right-hand-side of a
1064
- multi-line assignment.
1065
- Enabled: true
1066
- IndentationWidth:
1067
-
1068
1017
  # Supports --auto-correct
1069
1018
  Layout/IndentationConsistency:
1070
1019
  Description: Keep indentation straight.
@@ -1384,11 +1333,11 @@ Naming/PredicateName:
1384
1333
  - is_
1385
1334
  - has_
1386
1335
  - have_
1387
- NamePrefixBlacklist:
1336
+ ForbiddenPrefixes:
1388
1337
  - is_
1389
1338
  - has_
1390
1339
  - have_
1391
- NameWhitelist:
1340
+ AllowedMethods:
1392
1341
  - is_a?
1393
1342
 
1394
1343
  # Supports --auto-correct
@@ -1732,16 +1681,6 @@ Layout/Tab:
1732
1681
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
1733
1682
  Enabled: true
1734
1683
 
1735
- # Supports --auto-correct
1736
- Layout/TrailingBlankLines:
1737
- Description: Checks trailing blank lines and final newline.
1738
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
1739
- Enabled: true
1740
- EnforcedStyle: final_newline
1741
- SupportedStyles:
1742
- - final_newline
1743
- - final_blank_line
1744
-
1745
1684
  # Supports --auto-correct
1746
1685
  Style/TrailingCommaInArguments:
1747
1686
  Description: Checks for trailing comma in argument lists.
@@ -1784,7 +1723,7 @@ Style/TrivialAccessors:
1784
1723
  AllowPredicates: false
1785
1724
  AllowDSLWriters: false
1786
1725
  IgnoreClassMethods: false
1787
- Whitelist:
1726
+ AllowedMethod:
1788
1727
  - to_ary
1789
1728
  - to_a
1790
1729
  - to_c
@@ -1,3 +1,12 @@
1
+ ## v0.4.1 - 2019-12-17
2
+
3
+ - Update rubocop, rubocop-rails, rubocop-rspec dependencies
4
+ - Remove re-named cops to fall back to default
5
+
6
+ ## v0.4.0 - 2019-11-15
7
+
8
+ - Run rubocop rake task with autocop configuration
9
+
1
10
  ## v0.3.2 - 2019-08-27
2
11
 
3
12
  - Use the `rubocop-rails` and `rubocop-performance` gems
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- autocop (0.4.0)
4
+ autocop (0.4.1)
5
5
  rubocop (>= 0.52.1)
6
6
  rubocop-performance (>= 1.4.1)
7
7
  rubocop-rails (>= 2.3.1)
@@ -15,7 +15,7 @@ GEM
15
15
  diff-lcs (1.3)
16
16
  jaro_winkler (1.5.4)
17
17
  method_source (0.9.2)
18
- parallel (1.19.0)
18
+ parallel (1.19.1)
19
19
  parser (2.6.5.0)
20
20
  ast (~> 2.4.0)
21
21
  pry (0.12.2)
@@ -23,7 +23,7 @@ GEM
23
23
  method_source (~> 0.9.0)
24
24
  rack (2.0.7)
25
25
  rainbow (3.0.0)
26
- rake (13.0.0)
26
+ rake (13.0.1)
27
27
  rspec (3.9.0)
28
28
  rspec-core (~> 3.9.0)
29
29
  rspec-expectations (~> 3.9.0)
@@ -37,7 +37,7 @@ GEM
37
37
  diff-lcs (>= 1.2.0, < 2.0)
38
38
  rspec-support (~> 3.9.0)
39
39
  rspec-support (3.9.0)
40
- rubocop (0.76.0)
40
+ rubocop (0.77.0)
41
41
  jaro_winkler (~> 1.5.1)
42
42
  parallel (~> 1.10)
43
43
  parser (>= 2.6)
@@ -46,10 +46,10 @@ GEM
46
46
  unicode-display_width (>= 1.4.0, < 1.7)
47
47
  rubocop-performance (1.5.1)
48
48
  rubocop (>= 0.71.0)
49
- rubocop-rails (2.3.2)
49
+ rubocop-rails (2.4.0)
50
50
  rack (>= 1.1)
51
51
  rubocop (>= 0.72.0)
52
- rubocop-rspec (1.36.0)
52
+ rubocop-rspec (1.37.1)
53
53
  rubocop (>= 0.68.1)
54
54
  ruby-progressbar (1.10.1)
55
55
  unicode-display_width (1.6.0)
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ task default: :test
14
14
 
15
15
  # Rubocop
16
16
  desc 'Run Rubocop lint checks'
17
- task :rubocop do
17
+ task :rubocop do # rubocop:disable Rails/RakeEnvironment
18
18
  result = RuboCop::CLI.new.run(%w[-c .autocop-rubocop.yml])
19
19
  exit result unless result.zero?
20
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Autocop
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Autolist Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-15 00:00:00.000000000 Z
11
+ date: 2019-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop