scc-codestyle 0.1.4 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -2
- data/default.yml +11 -5
- data/lib/scc/codestyle/version.rb +1 -1
- data/scc-codestyle.gemspec +2 -2
- metadata +5 -6
- data/.rubocop_disabled.yml +0 -115
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc9d38e6981c653524ade7511bc23fdaf8d47f3b
|
4
|
+
data.tar.gz: 83765ec361b5331eb091c12240636f4874902f24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a033e925caa21f326ee88d1ea8fda45fd2af51f75d3e9e54dc2b84ed06eb38df765abb8126c888601c1902e29381b984e36a5de58c0697e9d1f7f8e1013c2215
|
7
|
+
data.tar.gz: 7a641ae72f1588977e1b02fc0ac689acb8bb4bb202a17db4ac03ba7bf38c2a75786ced84c56985cd0bea2861c3ce0980211ebf69ede8c5ad5d40033ea3349cf8
|
data/.rubocop.yml
CHANGED
data/default.yml
CHANGED
@@ -78,7 +78,10 @@ Style/WordArray:
|
|
78
78
|
Layout/SpaceAfterComma:
|
79
79
|
Enabled: true
|
80
80
|
|
81
|
-
Layout/
|
81
|
+
Layout/SpaceInsideReferenceBrackets:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
82
85
|
Enabled: false
|
83
86
|
|
84
87
|
Layout/SpaceInsideParens:
|
@@ -150,7 +153,7 @@ Style/For:
|
|
150
153
|
Lint/AssignmentInCondition:
|
151
154
|
Enabled: true
|
152
155
|
|
153
|
-
|
156
|
+
Layout/BlockAlignment:
|
154
157
|
Enabled: true
|
155
158
|
|
156
159
|
Lint/LiteralAsCondition:
|
@@ -189,7 +192,7 @@ Lint/AmbiguousRegexpLiteral:
|
|
189
192
|
Lint/Debugger:
|
190
193
|
Enabled: true
|
191
194
|
|
192
|
-
|
195
|
+
Layout/EndAlignment:
|
193
196
|
Enabled: true
|
194
197
|
|
195
198
|
Lint/HandleExceptions:
|
@@ -198,7 +201,7 @@ Lint/HandleExceptions:
|
|
198
201
|
Lint/StringConversionInInterpolation:
|
199
202
|
Enabled: true
|
200
203
|
|
201
|
-
Lint/
|
204
|
+
Lint/UnneededCopDisableDirective:
|
202
205
|
Enabled: true
|
203
206
|
|
204
207
|
Layout/SpaceInsideHashLiteralBraces:
|
@@ -350,7 +353,10 @@ Layout/SpaceAfterMethodName:
|
|
350
353
|
Style/SymbolProc:
|
351
354
|
Enabled: true
|
352
355
|
|
353
|
-
Style/
|
356
|
+
Style/TrailingCommaInArrayLiteral:
|
357
|
+
Enabled: true
|
358
|
+
|
359
|
+
Style/TrailingCommaInHashLiteral:
|
354
360
|
Enabled: true
|
355
361
|
|
356
362
|
Style/TrailingCommaInArguments:
|
data/scc-codestyle.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
lib = File.expand_path('
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
require 'scc/codestyle/version'
|
4
4
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
end
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_dependency 'rubocop', '0.
|
20
|
+
spec.add_dependency 'rubocop', '0.53.0'
|
21
21
|
spec.add_dependency 'rubocop-rspec', '1.19'
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.15'
|
23
23
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scc-codestyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SCC Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-12 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.
|
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.
|
26
|
+
version: 0.53.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,7 +75,6 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
77
|
- ".rubocop.yml"
|
78
|
-
- ".rubocop_disabled.yml"
|
79
78
|
- Gemfile
|
80
79
|
- LICENSE
|
81
80
|
- README.md
|
@@ -104,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
103
|
version: '0'
|
105
104
|
requirements: []
|
106
105
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.6.
|
106
|
+
rubygems_version: 2.6.13
|
108
107
|
signing_key:
|
109
108
|
specification_version: 4
|
110
109
|
summary: SCC style guides and shared style configs.
|
data/.rubocop_disabled.yml
DELETED
@@ -1,115 +0,0 @@
|
|
1
|
-
# These are all the cops that are disabled in Rubocop's default configuration.
|
2
|
-
# Source: https://github.com/bbatsov/rubocop/blob/master/config/disabled.yml
|
3
|
-
|
4
|
-
Layout/FirstArrayElementLineBreak:
|
5
|
-
Description: >-
|
6
|
-
Checks for a line break before the first element in a
|
7
|
-
multi-line array.
|
8
|
-
Enabled: false
|
9
|
-
|
10
|
-
Layout/FirstHashElementLineBreak:
|
11
|
-
Description: >-
|
12
|
-
Checks for a line break before the first element in a
|
13
|
-
multi-line hash.
|
14
|
-
Enabled: false
|
15
|
-
|
16
|
-
Layout/FirstMethodArgumentLineBreak:
|
17
|
-
Description: >-
|
18
|
-
Checks for a line break before the first argument in a
|
19
|
-
multi-line method call.
|
20
|
-
Enabled: false
|
21
|
-
|
22
|
-
Layout/FirstMethodParameterLineBreak:
|
23
|
-
Description: >-
|
24
|
-
Checks for a line break before the first parameter in a
|
25
|
-
multi-line method parameter definition.
|
26
|
-
Enabled: false
|
27
|
-
|
28
|
-
Layout/MultilineAssignmentLayout:
|
29
|
-
Description: 'Check for a newline after the assignment operator in multi-line assignments.'
|
30
|
-
StyleGuide: '#indent-conditional-assignment'
|
31
|
-
Enabled: false
|
32
|
-
|
33
|
-
# By default, the rails cops are not run. Override in project or home
|
34
|
-
# directory .rubocop.yml files, or by giving the -R/--rails option.
|
35
|
-
Rails:
|
36
|
-
Enabled: false
|
37
|
-
|
38
|
-
Rails/SaveBang:
|
39
|
-
Description: 'Identifies possible cases where Active Record save! or related should be used.'
|
40
|
-
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#save-bang'
|
41
|
-
Enabled: false
|
42
|
-
|
43
|
-
Style/AutoResourceCleanup:
|
44
|
-
Description: 'Suggests the usage of an auto resource cleanup version of a method (if available).'
|
45
|
-
Enabled: false
|
46
|
-
|
47
|
-
Style/CollectionMethods:
|
48
|
-
Description: 'Preferred collection methods.'
|
49
|
-
StyleGuide: '#map-find-select-reduce-size'
|
50
|
-
Enabled: false
|
51
|
-
|
52
|
-
Style/Copyright:
|
53
|
-
Description: 'Include a copyright notice in each file before any code.'
|
54
|
-
Enabled: false
|
55
|
-
|
56
|
-
Style/DocumentationMethod:
|
57
|
-
Description: 'Public methods.'
|
58
|
-
Enabled: false
|
59
|
-
Exclude:
|
60
|
-
- 'spec/**/*'
|
61
|
-
- 'test/**/*'
|
62
|
-
|
63
|
-
Style/ImplicitRuntimeError:
|
64
|
-
Description: >-
|
65
|
-
Use `raise` or `fail` with an explicit exception class and
|
66
|
-
message, rather than just a message.
|
67
|
-
Enabled: false
|
68
|
-
|
69
|
-
Style/InlineComment:
|
70
|
-
Description: 'Avoid trailing inline comments.'
|
71
|
-
Enabled: false
|
72
|
-
|
73
|
-
Style/MethodCallWithArgsParentheses:
|
74
|
-
Description: 'Use parentheses for method calls with arguments.'
|
75
|
-
StyleGuide: '#method-invocation-parens'
|
76
|
-
Enabled: false
|
77
|
-
|
78
|
-
Style/MethodCalledOnDoEndBlock:
|
79
|
-
Description: 'Avoid chaining a method call on a do...end block.'
|
80
|
-
StyleGuide: '#single-line-blocks'
|
81
|
-
Enabled: false
|
82
|
-
|
83
|
-
Style/MissingElse:
|
84
|
-
Description: >-
|
85
|
-
Require if/case expressions to have an else branches.
|
86
|
-
If enabled, it is recommended that
|
87
|
-
Style/UnlessElse and Style/EmptyElse be enabled.
|
88
|
-
This will conflict with Style/EmptyElse if
|
89
|
-
Style/EmptyElse is configured to style "both"
|
90
|
-
Enabled: false
|
91
|
-
EnforcedStyle: both
|
92
|
-
SupportedStyles:
|
93
|
-
# if - warn when an if expression is missing an else branch
|
94
|
-
# case - warn when a case expression is missing an else branch
|
95
|
-
# both - warn when an if or case expression is missing an else branch
|
96
|
-
- if
|
97
|
-
- case
|
98
|
-
- both
|
99
|
-
|
100
|
-
Style/OptionHash:
|
101
|
-
Description: "Don't use option hashes when you can use keyword arguments."
|
102
|
-
Enabled: false
|
103
|
-
|
104
|
-
Style/Send:
|
105
|
-
Description: 'Prefer `Object#__send__` or `Object#public_send` to `send`, as `send` may overlap with existing methods.'
|
106
|
-
StyleGuide: '#prefer-public-send'
|
107
|
-
Enabled: false
|
108
|
-
|
109
|
-
Style/StringMethods:
|
110
|
-
Description: 'Checks if configured preferred methods are used over non-preferred.'
|
111
|
-
Enabled: false
|
112
|
-
|
113
|
-
Style/SingleLineBlockParams:
|
114
|
-
Description: 'Enforces the names of some block params.'
|
115
|
-
Enabled: false
|