rubocop-able 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +33 -0
- data/config/default.yml +162 -0
- data/config/rails.yml +16 -0
- metadata +74 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4bd88397fda0f2eba26fa8e3ac17f2d280801c1c530202ec64d8df6cb97b4449
|
4
|
+
data.tar.gz: 5d4883ba3a1ec2a47f8d5bbb2f057a1c27f98c94889470c91baca46fb3fe6ed8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 200fe375649f21edb12dbf22a9fed03b371fb2d7496c69a7d789eb499c9be83b67e8fb169e7508edb1593ee9a61863333b8210e687ff92ae5a8bd6c8e0fd1de0
|
7
|
+
data.tar.gz: dc3620292edfeac8b5f445a3183af93a9b184f8d5535d61e3a82fb8b758f9642956af1ece7d1bb8530fc45a5aad57fbd01d88b115fdc43e274313848acde623a
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Mario Rodas
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# RuboCop Able
|
2
|
+
|
3
|
+
This repository provides recommended RuboCop configuration for use on Able Ruby projects.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
**Gemfile**
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
group :development do
|
11
|
+
gem "rubocop-able", require: false
|
12
|
+
end
|
13
|
+
```
|
14
|
+
|
15
|
+
**.rubocop.yml**
|
16
|
+
|
17
|
+
```yaml
|
18
|
+
inherit_gem:
|
19
|
+
rubocop-able:
|
20
|
+
- config/default.yml
|
21
|
+
- config/rails.yml
|
22
|
+
|
23
|
+
AllCops:
|
24
|
+
TargetRubyVersion: 2.5
|
25
|
+
```
|
26
|
+
|
27
|
+
## Contributing
|
28
|
+
|
29
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ableco/rubocop-able.
|
30
|
+
|
31
|
+
## License
|
32
|
+
|
33
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/config/default.yml
ADDED
@@ -0,0 +1,162 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- bin/**/*
|
4
|
+
- node_modules/**/*
|
5
|
+
- log/**/*
|
6
|
+
- tmp/**/*
|
7
|
+
- vendor/**/*
|
8
|
+
- db/migrate/*
|
9
|
+
- db/schema.rb
|
10
|
+
DisabledByDefault: true
|
11
|
+
|
12
|
+
Layout/AccessModifierIndentation:
|
13
|
+
EnforcedStyle: indent
|
14
|
+
|
15
|
+
Layout/BlockAlignment:
|
16
|
+
EnforcedStyleAlignWith: either
|
17
|
+
|
18
|
+
Layout/DefEndAlignment:
|
19
|
+
EnforcedStyleAlignWith: start_of_line
|
20
|
+
|
21
|
+
Layout/DotPosition:
|
22
|
+
EnforcedStyle: leading
|
23
|
+
|
24
|
+
Layout/EmptyComment:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Layout/EmptyLineBetweenDefs:
|
28
|
+
Enabled: true
|
29
|
+
NumberOfEmptyLines: 1
|
30
|
+
|
31
|
+
Layout/EmptyLinesAroundBlockBody:
|
32
|
+
EnforcedStyle: no_empty_lines
|
33
|
+
|
34
|
+
Layout/EmptyLinesAroundClassBody:
|
35
|
+
EnforcedStyle: no_empty_lines
|
36
|
+
|
37
|
+
Layout/EmptyLinesAroundModuleBody:
|
38
|
+
EnforcedStyle: no_empty_lines
|
39
|
+
|
40
|
+
Layout/EndAlignment:
|
41
|
+
EnforcedStyleAlignWith: start_of_line
|
42
|
+
|
43
|
+
Layout/ExtraSpacing:
|
44
|
+
AllowForAlignment: true
|
45
|
+
|
46
|
+
Layout/IndentFirstArrayElement:
|
47
|
+
EnforcedStyle: consistent
|
48
|
+
|
49
|
+
Layout/IndentFirstHashElement:
|
50
|
+
EnforcedStyle: consistent
|
51
|
+
|
52
|
+
Layout/IndentationConsistency:
|
53
|
+
EnforcedStyle: normal
|
54
|
+
|
55
|
+
Layout/IndentationWidth:
|
56
|
+
Width: 2
|
57
|
+
|
58
|
+
Layout/SpaceAroundBlockParameters:
|
59
|
+
EnforcedStyleInsidePipes: no_space
|
60
|
+
|
61
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
62
|
+
EnforcedStyle: space
|
63
|
+
|
64
|
+
Layout/SpaceAroundOperators:
|
65
|
+
Enabled: true
|
66
|
+
|
67
|
+
Layout/SpaceBeforeBlockBraces:
|
68
|
+
EnforcedStyle: space
|
69
|
+
|
70
|
+
Layout/SpaceInLambdaLiteral:
|
71
|
+
EnforcedStyle: require_no_space
|
72
|
+
|
73
|
+
Layout/SpaceInsideBlockBraces:
|
74
|
+
EnforcedStyle: space
|
75
|
+
EnforcedStyleForEmptyBraces: no_space
|
76
|
+
|
77
|
+
Layout/SpaceInsideHashLiteralBraces:
|
78
|
+
EnforcedStyle: space
|
79
|
+
EnforcedStyleForEmptyBraces: no_space
|
80
|
+
|
81
|
+
Layout/SpaceInsideReferenceBrackets:
|
82
|
+
EnforcedStyle: no_space
|
83
|
+
|
84
|
+
Layout/SpaceInsideStringInterpolation:
|
85
|
+
EnforcedStyle: no_space
|
86
|
+
|
87
|
+
Layout/Tab:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Layout/TrailingWhitespace:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
Lint/SafeNavigationChain:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
Lint/ShadowedArgument:
|
97
|
+
Enabled: true
|
98
|
+
|
99
|
+
Lint/UnusedBlockArgument:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
Lint/UnusedMethodArgument:
|
103
|
+
Enabled: true
|
104
|
+
|
105
|
+
Metrics/LineLength:
|
106
|
+
Max: 80
|
107
|
+
IgnoredPatterns: [(\A|\s)#]
|
108
|
+
|
109
|
+
Naming/VariableName:
|
110
|
+
EnforcedStyle: snake_case
|
111
|
+
|
112
|
+
Style/BlockDelimiters:
|
113
|
+
EnforcedStyle: line_count_based
|
114
|
+
|
115
|
+
Style/BracesAroundHashParameters:
|
116
|
+
EnforcedStyle: no_braces
|
117
|
+
|
118
|
+
Style/EmptyElse:
|
119
|
+
EnforcedStyle: both
|
120
|
+
|
121
|
+
Style/EmptyMethod:
|
122
|
+
EnforcedStyle: expanded
|
123
|
+
|
124
|
+
Style/GlobalVars:
|
125
|
+
AllowedVariables: ["$rollout"]
|
126
|
+
|
127
|
+
Style/HashSyntax:
|
128
|
+
EnforcedStyle: ruby19_no_mixed_keys
|
129
|
+
|
130
|
+
Style/MethodDefParentheses:
|
131
|
+
EnforcedStyle: require_parentheses
|
132
|
+
|
133
|
+
Style/NumericLiterals:
|
134
|
+
MinDigits: 5
|
135
|
+
Strict: false
|
136
|
+
|
137
|
+
Style/RedundantReturn:
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
Style/Semicolon:
|
141
|
+
Enabled: true
|
142
|
+
|
143
|
+
Style/SingleLineMethods:
|
144
|
+
Enabled: true
|
145
|
+
|
146
|
+
Style/StabbyLambdaParentheses:
|
147
|
+
EnforcedStyle: require_parentheses
|
148
|
+
|
149
|
+
Style/StringLiterals:
|
150
|
+
EnforcedStyle: double_quotes
|
151
|
+
|
152
|
+
Style/StringLiteralsInInterpolation:
|
153
|
+
EnforcedStyle: single_quotes
|
154
|
+
|
155
|
+
Style/TrailingCommaInArguments:
|
156
|
+
EnforcedStyleForMultiline: no_comma
|
157
|
+
|
158
|
+
Style/TrailingCommaInArrayLiteral:
|
159
|
+
EnforcedStyleForMultiline: no_comma
|
160
|
+
|
161
|
+
Style/TrailingCommaInHashLiteral:
|
162
|
+
EnforcedStyleForMultiline: no_comma
|
data/config/rails.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require: rubocop-rails
|
2
|
+
|
3
|
+
Rails/LexicallyScopedActionFilter:
|
4
|
+
Enabled: false
|
5
|
+
Include:
|
6
|
+
- app/controllers/**/*.rb
|
7
|
+
|
8
|
+
Rails/TimeZone:
|
9
|
+
EnforcedStyle: flexible
|
10
|
+
|
11
|
+
Rails/UnknownEnv:
|
12
|
+
Environments:
|
13
|
+
- development
|
14
|
+
- test
|
15
|
+
- production
|
16
|
+
- staging
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubocop-able
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Able
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-10-29 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.74'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.74'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.3.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.3.0
|
41
|
+
description: Code style checking for Able Ruby repositories
|
42
|
+
email: engineering@able.co
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files: []
|
46
|
+
files:
|
47
|
+
- LICENSE
|
48
|
+
- README.md
|
49
|
+
- config/default.yml
|
50
|
+
- config/rails.yml
|
51
|
+
homepage: https://github.com/ableco/rubocop-able
|
52
|
+
licenses:
|
53
|
+
- MIT
|
54
|
+
metadata: {}
|
55
|
+
post_install_message:
|
56
|
+
rdoc_options: []
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
requirements: []
|
70
|
+
rubygems_version: 3.0.3
|
71
|
+
signing_key:
|
72
|
+
specification_version: 4
|
73
|
+
summary: RuboCop Able
|
74
|
+
test_files: []
|