rubocop-config-umbrellio 0.48.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/rubocop.rails.yml +55 -0
- data/lib/rubocop.yml +207 -0
- metadata +101 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4dff64e6fde62530af0bfb262cd32f5298630fc3
|
4
|
+
data.tar.gz: 1ef46425bf88d0aae76d2bb7a075b1e89dcf6d1f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4eac89847bb27c2425bbc7582b9f6317ca81781fea1a0fdae68a1dc9afe4fe23a60f261e567df3b549d44a486dbe693a3675f90639f348da5e304bfecd643bf2
|
7
|
+
data.tar.gz: 14f8f5e74df5b5f2747e8d518aa3347ee994ed75a8682869a81df7f98a6a8876a861edbed6f1fbb16e2cace4bbda27d4f756ad0d991b778feaf4562bccda4472
|
@@ -0,0 +1,55 @@
|
|
1
|
+
inherit_gem:
|
2
|
+
rubocop-config-umbrellio: lib/rubocop.yml
|
3
|
+
|
4
|
+
# Metrics
|
5
|
+
|
6
|
+
Metrics/BlockLength:
|
7
|
+
Exclude:
|
8
|
+
- config/routes.rb
|
9
|
+
|
10
|
+
Metrics/LineLength:
|
11
|
+
Exclude:
|
12
|
+
- config/initializers/*
|
13
|
+
- config/environments/*
|
14
|
+
- lib/**/tasks/**/*
|
15
|
+
|
16
|
+
# Rails
|
17
|
+
|
18
|
+
Rails:
|
19
|
+
Enabled: true
|
20
|
+
|
21
|
+
Rails/Delegate:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
Rails/HasAndBelongsToMany:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Rails/HttpPositionalArguments:
|
28
|
+
# rails 5 feature https://github.com/bbatsov/rubocop/issues/3629
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Rails/OutputSafety:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Rails/Validation:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Rails/SaveBang:
|
38
|
+
# Disabled by default
|
39
|
+
Enabled: true
|
40
|
+
|
41
|
+
# Style
|
42
|
+
|
43
|
+
Style/ClassAndModuleChildren:
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Style/HashSyntax:
|
47
|
+
Exclude:
|
48
|
+
- lib/**/tasks/**/*
|
49
|
+
|
50
|
+
Style/SymbolArray:
|
51
|
+
Exclude:
|
52
|
+
- apps/**/*controller.rb
|
53
|
+
- spec/**/*controller_spec.rb
|
54
|
+
- config/routes.rb
|
55
|
+
- db/migrate/**/*
|
data/lib/rubocop.yml
ADDED
@@ -0,0 +1,207 @@
|
|
1
|
+
require: rubocop-rspec
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
Exclude:
|
5
|
+
- bin/**/*
|
6
|
+
|
7
|
+
# LINT
|
8
|
+
|
9
|
+
Lint/AmbiguousBlockAssociation:
|
10
|
+
# `scope :name, -> (param) { ... }` is a valid syntax
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Lint/AmbiguousOperator:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
Lint/NonLocalExitFromIterator:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Lint/HandleExceptions:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Lint/ShadowingOuterLocalVariable:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
# Metrics
|
26
|
+
|
27
|
+
Metrics/AbcSize:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Metrics/BlockLength:
|
31
|
+
Exclude:
|
32
|
+
- spec/**/*
|
33
|
+
|
34
|
+
Metrics/ClassLength:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Metrics/CyclomaticComplexity:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Metrics/LineLength:
|
41
|
+
Max: 100
|
42
|
+
AllowHeredoc: false
|
43
|
+
AllowURI: false
|
44
|
+
|
45
|
+
Metrics/MethodLength:
|
46
|
+
Max: 20
|
47
|
+
|
48
|
+
Metrics/PerceivedComplexity:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
# Performance
|
52
|
+
|
53
|
+
Performance/Casecmp:
|
54
|
+
Enabled: false
|
55
|
+
|
56
|
+
# RSpec
|
57
|
+
|
58
|
+
RSpec/AnyInstance:
|
59
|
+
Enabled: false
|
60
|
+
|
61
|
+
RSpec/ExampleLength:
|
62
|
+
Max: 20
|
63
|
+
|
64
|
+
RSpec/DescribeClass:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
RSpec/DescribedClass:
|
68
|
+
Enabled: false
|
69
|
+
|
70
|
+
RSpec/DescribeMethod:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
RSpec/LetSetup:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
RSpec/MessageSpies:
|
77
|
+
EnforcedStyle: receive
|
78
|
+
|
79
|
+
RSpec/MultipleDescribes:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
RSpec/MultipleExpectations:
|
83
|
+
Enabled: false
|
84
|
+
|
85
|
+
RSpec/NestedGroups:
|
86
|
+
Enabled: false
|
87
|
+
|
88
|
+
RSpec/VerifiedDoubles:
|
89
|
+
Enabled: false
|
90
|
+
|
91
|
+
# Style
|
92
|
+
|
93
|
+
Style/AccessorMethodName:
|
94
|
+
# This cop assumes every method is accessor
|
95
|
+
Enabled: false
|
96
|
+
|
97
|
+
Style/AlignParameters:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
Style/AndOr:
|
101
|
+
# `do_something and return`
|
102
|
+
Enabled: false
|
103
|
+
|
104
|
+
Style/CommentAnnotation:
|
105
|
+
# Also, i think that better to use yard's `@todo` and other in ruby code
|
106
|
+
Enabled: false
|
107
|
+
|
108
|
+
Style/ConditionalAssignment:
|
109
|
+
Enabled: false
|
110
|
+
|
111
|
+
Style/Documentation:
|
112
|
+
Enabled: false
|
113
|
+
|
114
|
+
Style/DoubleNegation:
|
115
|
+
# Always return booleans in predicates
|
116
|
+
Enabled: false
|
117
|
+
|
118
|
+
Style/EmptyCaseCondition:
|
119
|
+
Enabled: false
|
120
|
+
|
121
|
+
Style/EmptyElse:
|
122
|
+
Enabled: false
|
123
|
+
|
124
|
+
Style/Encoding:
|
125
|
+
Enabled: false
|
126
|
+
|
127
|
+
Style/IfUnlessModifier:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
Style/GuardClause:
|
131
|
+
Enabled: false
|
132
|
+
|
133
|
+
Style/LambdaCall:
|
134
|
+
Enabled: false
|
135
|
+
|
136
|
+
Style/ModuleFunction:
|
137
|
+
Enabled: false
|
138
|
+
|
139
|
+
Style/MultilineMethodCallIndentation:
|
140
|
+
Enabled: false
|
141
|
+
|
142
|
+
Style/MultilineOperationIndentation:
|
143
|
+
Enabled: false
|
144
|
+
|
145
|
+
Style/MultilineTernaryOperator:
|
146
|
+
Enabled: false
|
147
|
+
|
148
|
+
Style/NumericLiterals:
|
149
|
+
Description: 'Use indent in groups of 3 unlesss you meet project-specific rule'
|
150
|
+
Enabled: false
|
151
|
+
|
152
|
+
Style/ParallelAssignment:
|
153
|
+
Enabled: false
|
154
|
+
|
155
|
+
Style/PerlBackrefs:
|
156
|
+
# Disable localy if realy neeeded
|
157
|
+
Enabled: true
|
158
|
+
|
159
|
+
Style/PredicateName:
|
160
|
+
# `has_` is generally good
|
161
|
+
NamePrefixBlacklist:
|
162
|
+
- is_
|
163
|
+
|
164
|
+
Style/RaiseArgs:
|
165
|
+
Description: 'Use `raise, ErrorClass` in all cases but not when you need ErrorClass constructor'
|
166
|
+
Enabled: false
|
167
|
+
|
168
|
+
Style/RegexpLiteral:
|
169
|
+
EnforcedStyle: mixed
|
170
|
+
Enabled: true
|
171
|
+
|
172
|
+
Style/RescueModifier:
|
173
|
+
Enabled: false
|
174
|
+
|
175
|
+
Style/SpaceInLambdaLiteral:
|
176
|
+
EnforcedStyle: require_space
|
177
|
+
|
178
|
+
Style/StringLiterals:
|
179
|
+
EnforcedStyle: double_quotes
|
180
|
+
ConsistentQuotesInMultiline: true
|
181
|
+
|
182
|
+
Style/SignalException:
|
183
|
+
EnforcedStyle: only_raise
|
184
|
+
|
185
|
+
Style/SingleLineBlockParams:
|
186
|
+
Enabled: false
|
187
|
+
|
188
|
+
Style/StringLiteralsInInterpolation:
|
189
|
+
Enabled: false
|
190
|
+
|
191
|
+
Style/SpaceInsideBrackets:
|
192
|
+
Enabled: false
|
193
|
+
|
194
|
+
Style/SymbolArray:
|
195
|
+
# Disabled by default
|
196
|
+
Enabled: true
|
197
|
+
|
198
|
+
Style/TrailingCommaInArguments:
|
199
|
+
EnforcedStyleForMultiline: comma
|
200
|
+
|
201
|
+
Style/TrailingCommaInLiteral:
|
202
|
+
EnforcedStyleForMultiline: comma
|
203
|
+
|
204
|
+
Style/TrivialAccessors:
|
205
|
+
AllowPredicates: true
|
206
|
+
# REWIEW: Why don't we disable it?
|
207
|
+
Enabled: false
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubocop-config-umbrellio
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.48.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- JelF
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-04-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.48.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.48.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.15.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.15.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.14'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.14'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- begdory4@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- lib/rubocop.rails.yml
|
77
|
+
- lib/rubocop.yml
|
78
|
+
homepage: https://github.com/umbrellio/code-style
|
79
|
+
licenses: []
|
80
|
+
metadata: {}
|
81
|
+
post_install_message:
|
82
|
+
rdoc_options: []
|
83
|
+
require_paths:
|
84
|
+
- lib
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
requirements: []
|
96
|
+
rubyforge_project:
|
97
|
+
rubygems_version: 2.5.2
|
98
|
+
signing_key:
|
99
|
+
specification_version: 4
|
100
|
+
summary: This gem provides default rubocop settings for umbrelio projects
|
101
|
+
test_files: []
|