mad_rubocop 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/README.md +1 -1
- data/lib/disabled_cops.yml +27 -10
- data/lib/mad_rubocop/version.rb +1 -1
- data/lib/modified_cops.yml +14 -5
- data/mad_rubocop.gemspec +2 -1
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28a0dcef59d66748dc50f341e3943806ce50eacf
|
4
|
+
data.tar.gz: d8303796a7086cde0ac27b35e2a5191bc483b61f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1d3a17846686c395c5fc3e06f0e4e04942ebc1d3012f04eef4d162e1944ab0e230a6e066e0822bf3189f38290eab11a753136ede98d3318a27c7e6f77576458
|
7
|
+
data.tar.gz: 5bb22670c1add8b028ab71de2244d6f887adb0f6e40f510406ac13b113fa85868d4c055479af861b111a3ea15e1ff4e605d77bce75e381372deb7163e99121e2
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -38,7 +38,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
38
38
|
|
39
39
|
## Contributing
|
40
40
|
|
41
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
41
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mxenabled/mad_rubocop.
|
42
42
|
|
43
43
|
|
44
44
|
## License
|
data/lib/disabled_cops.yml
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
---
|
2
|
+
Layout/ExtraSpacing:
|
3
|
+
Enabled: false
|
4
|
+
Layout/FirstArrayElementLineBreak:
|
5
|
+
Enabled: false
|
6
|
+
Layout/FirstHashElementLineBreak:
|
7
|
+
Enabled: false
|
8
|
+
Layout/FirstMethodArgumentLineBreak:
|
9
|
+
Enabled: false
|
10
|
+
Layout/FirstMethodParameterLineBreak:
|
11
|
+
Enabled: false
|
12
|
+
|
2
13
|
Metrics/AbcSize:
|
3
14
|
Enabled: false
|
15
|
+
Metrics/BlockLength:
|
16
|
+
Enabled: false
|
4
17
|
Metrics/BlockNesting:
|
5
18
|
Enabled: false
|
6
19
|
Metrics/ClassLength:
|
@@ -27,13 +40,23 @@ Performance/StringReplacement:
|
|
27
40
|
|
28
41
|
Rails/ActionFilter:
|
29
42
|
Enabled: false
|
43
|
+
Rails/Blank:
|
44
|
+
Enabled: false
|
30
45
|
Rails/Date:
|
31
46
|
Enabled: false
|
47
|
+
Rails/DynamicFindBy:
|
48
|
+
Enabled: false
|
32
49
|
Rails/FindBy:
|
33
50
|
Enabled: false
|
51
|
+
Rails/FilePath:
|
52
|
+
Enabled: false
|
34
53
|
Rails/TimeZone:
|
35
54
|
Enabled: false
|
36
55
|
|
56
|
+
# The autocorrect for this will break YAML load when aliases present
|
57
|
+
Security/YAMLLoad:
|
58
|
+
Enabled: false
|
59
|
+
|
37
60
|
Style/AutoResourceCleanup:
|
38
61
|
Enabled: false
|
39
62
|
Style/CollectionMethods:
|
@@ -48,18 +71,10 @@ Style/EachWithObject:
|
|
48
71
|
Enabled: false
|
49
72
|
Style/Encoding:
|
50
73
|
Enabled: false
|
51
|
-
Style/ExtraSpacing:
|
52
|
-
Enabled: false
|
53
|
-
Style/FirstArrayElementLineBreak:
|
54
|
-
Enabled: false
|
55
|
-
Style/FirstHashElementLineBreak:
|
56
|
-
Enabled: false
|
57
|
-
Style/FirstMethodArgumentLineBreak:
|
58
|
-
Enabled: false
|
59
|
-
Style/FirstMethodParameterLineBreak:
|
60
|
-
Enabled: false
|
61
74
|
Style/FormatString:
|
62
75
|
Enabled: false
|
76
|
+
Style/FrozenStringLiteralComment:
|
77
|
+
Enabled: false
|
63
78
|
Style/InlineComment:
|
64
79
|
Enabled: false
|
65
80
|
Style/Lambda:
|
@@ -72,6 +87,8 @@ Style/MutableConstant:
|
|
72
87
|
Enabled: false
|
73
88
|
Style/Next:
|
74
89
|
Enabled: false
|
90
|
+
Style/NumericPredicate:
|
91
|
+
Enabled: false
|
75
92
|
Style/OptionHash:
|
76
93
|
Enabled: false
|
77
94
|
Style/PredicateName:
|
data/lib/mad_rubocop/version.rb
CHANGED
data/lib/modified_cops.yml
CHANGED
@@ -1,22 +1,31 @@
|
|
1
1
|
##
|
2
2
|
# Cops that enforce a non RuboCop default style
|
3
3
|
#
|
4
|
+
Layout/AccessModifierIndentation:
|
5
|
+
Description: Indent private/protected/public as deep as method definitions
|
6
|
+
Enabled: true
|
7
|
+
EnforcedStyle: outdent
|
4
8
|
|
5
9
|
Style/Alias:
|
6
10
|
Description: Use alias_method instead of alias in a class or module body.
|
7
11
|
EnforcedStyle: prefer_alias_method
|
8
12
|
|
9
|
-
Style/AccessModifierIndentation:
|
10
|
-
Description: Indent private/protected/public as deep as method definitions
|
11
|
-
Enabled: true
|
12
|
-
EnforcedStyle: outdent
|
13
|
-
|
14
13
|
Style/HashSyntax:
|
15
14
|
Description: 'Prefer Ruby 1.8 hash syntax { :a => 1, :b => 2 } over 1.9 syntax {
|
16
15
|
a: 1, b: 2 }.'
|
17
16
|
Enabled: true
|
18
17
|
EnforcedStyle: hash_rockets
|
19
18
|
|
19
|
+
Style/PercentLiteralDelimiters:
|
20
|
+
Enabled: true
|
21
|
+
PreferredDelimiters:
|
22
|
+
default: '()'
|
23
|
+
'%i': '()'
|
24
|
+
'%I': '()'
|
25
|
+
'%r': '{}'
|
26
|
+
'%w': '()'
|
27
|
+
'%W': '()'
|
28
|
+
|
20
29
|
Style/StringLiterals:
|
21
30
|
Description: Checks if uses of quotes match the configured preference.
|
22
31
|
Enabled: true
|
data/mad_rubocop.gemspec
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
|
2
3
|
lib = File.expand_path("../lib", __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require "mad_rubocop/version"
|
@@ -19,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
19
20
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
21
|
spec.require_paths = ["lib"]
|
21
22
|
|
22
|
-
spec.add_dependency "rubocop", "~> 0.
|
23
|
+
spec.add_dependency "rubocop", "~> 0.49.1"
|
23
24
|
spec.add_development_dependency "bundler", "~> 1.11"
|
24
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
26
|
end
|
metadata
CHANGED
@@ -1,58 +1,59 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mad_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Toolson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - "~>"
|
17
18
|
- !ruby/object:Gem::Version
|
18
|
-
version: 0.
|
19
|
-
name: rubocop
|
20
|
-
prerelease: false
|
19
|
+
version: 0.49.1
|
21
20
|
type: :runtime
|
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.
|
26
|
+
version: 0.49.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - "~>"
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '1.11'
|
33
|
-
name: bundler
|
34
|
-
prerelease: false
|
35
34
|
type: :development
|
35
|
+
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.11'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
45
|
- - "~>"
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '10.0'
|
47
|
-
name: rake
|
48
|
-
prerelease: false
|
49
48
|
type: :development
|
49
|
+
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.0'
|
55
|
-
description: Wrapper for MX specific RuboCop settings for managing custom settings
|
55
|
+
description: Wrapper for MX specific RuboCop settings for managing custom settings
|
56
|
+
across many projects.
|
56
57
|
email:
|
57
58
|
- zach.toolson@mx.com
|
58
59
|
executables:
|
@@ -76,7 +77,7 @@ homepage: https://github.com/mxenabled/mad_rubocop
|
|
76
77
|
licenses:
|
77
78
|
- MIT
|
78
79
|
metadata: {}
|
79
|
-
post_install_message:
|
80
|
+
post_install_message:
|
80
81
|
rdoc_options: []
|
81
82
|
require_paths:
|
82
83
|
- lib
|
@@ -91,10 +92,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
92
|
- !ruby/object:Gem::Version
|
92
93
|
version: '0'
|
93
94
|
requirements: []
|
94
|
-
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
96
|
-
signing_key:
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.6.6
|
97
|
+
signing_key:
|
97
98
|
specification_version: 4
|
98
99
|
summary: Wrapper for MX specific RuboCop settings. https://twitter.com/madrubocop
|
99
100
|
test_files: []
|
100
|
-
has_rdoc:
|