rubocop-inspire 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +76 -0
- data/LICENSE.txt +21 -0
- data/README.md +63 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/rubocop/inspire.rb +10 -0
- data/lib/rubocop/inspire/version.rb +7 -0
- data/rubocop-inspire.gemspec +44 -0
- data/rubocop.yml +362 -0
- metadata +145 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b129e1ff4c1d6addf12199720db10b180dcd37bc370c5d13ad63c20624caf375
|
4
|
+
data.tar.gz: 87fb45323578fca23e4dd40167eee5766a44f662abf4ca2007ebf836e3cbcec7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6a5dff0facee22ac1f2232f0e07cfed73d2c79a4ecb4fb112b6643c00f5afd41ff7abd41fb005f2ebbb1e03a2559c87cccdac760118ba14f13324c9dd85869bb
|
7
|
+
data.tar.gz: ae4480d3a169577071d092191f45387c835ab5fa6192fad45f45128f13c59c36195afa84ede6f2868afbf6646e32bd63a4c632e79c38f9156755749f19c126ef
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rubocop-inspire (0.0.1)
|
5
|
+
rubocop (~> 1.8)
|
6
|
+
rubocop-faker (~> 1.1)
|
7
|
+
rubocop-performance (~> 1.9)
|
8
|
+
rubocop-rails (~> 2.9)
|
9
|
+
rubocop-rake (~> 0.5)
|
10
|
+
rubocop-rspec (~> 2.1)
|
11
|
+
|
12
|
+
GEM
|
13
|
+
remote: https://rubygems.org/
|
14
|
+
specs:
|
15
|
+
activesupport (6.1.1)
|
16
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
+
i18n (>= 1.6, < 2)
|
18
|
+
minitest (>= 5.1)
|
19
|
+
tzinfo (~> 2.0)
|
20
|
+
zeitwerk (~> 2.3)
|
21
|
+
ast (2.4.1)
|
22
|
+
concurrent-ruby (1.1.7)
|
23
|
+
faker (2.15.1)
|
24
|
+
i18n (>= 1.6, < 2)
|
25
|
+
i18n (1.8.7)
|
26
|
+
concurrent-ruby (~> 1.0)
|
27
|
+
minitest (5.14.3)
|
28
|
+
parallel (1.20.1)
|
29
|
+
parser (3.0.0.0)
|
30
|
+
ast (~> 2.4.1)
|
31
|
+
rack (2.2.3)
|
32
|
+
rainbow (3.0.0)
|
33
|
+
rake (13.0.3)
|
34
|
+
regexp_parser (2.0.3)
|
35
|
+
rexml (3.2.4)
|
36
|
+
rubocop (1.8.1)
|
37
|
+
parallel (~> 1.10)
|
38
|
+
parser (>= 3.0.0.0)
|
39
|
+
rainbow (>= 2.2.2, < 4.0)
|
40
|
+
regexp_parser (>= 1.8, < 3.0)
|
41
|
+
rexml
|
42
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
43
|
+
ruby-progressbar (~> 1.7)
|
44
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
45
|
+
rubocop-ast (1.4.0)
|
46
|
+
parser (>= 2.7.1.5)
|
47
|
+
rubocop-faker (1.1.0)
|
48
|
+
faker (>= 2.12.0)
|
49
|
+
rubocop (>= 0.82.0)
|
50
|
+
rubocop-performance (1.9.2)
|
51
|
+
rubocop (>= 0.90.0, < 2.0)
|
52
|
+
rubocop-ast (>= 0.4.0)
|
53
|
+
rubocop-rails (2.9.1)
|
54
|
+
activesupport (>= 4.2.0)
|
55
|
+
rack (>= 1.1)
|
56
|
+
rubocop (>= 0.90.0, < 2.0)
|
57
|
+
rubocop-rake (0.5.1)
|
58
|
+
rubocop
|
59
|
+
rubocop-rspec (2.1.0)
|
60
|
+
rubocop (~> 1.0)
|
61
|
+
rubocop-ast (>= 1.1.0)
|
62
|
+
ruby-progressbar (1.11.0)
|
63
|
+
tzinfo (2.0.4)
|
64
|
+
concurrent-ruby (~> 1.0)
|
65
|
+
unicode-display_width (2.0.0)
|
66
|
+
zeitwerk (2.4.2)
|
67
|
+
|
68
|
+
PLATFORMS
|
69
|
+
x86_64-darwin-19
|
70
|
+
|
71
|
+
DEPENDENCIES
|
72
|
+
rake (~> 13.0)
|
73
|
+
rubocop-inspire!
|
74
|
+
|
75
|
+
BUNDLED WITH
|
76
|
+
2.2.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2021 Jay Dorsey
|
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,63 @@
|
|
1
|
+
# Rubocop::Inspire
|
2
|
+
|
3
|
+
This is the Inspire Ruby Style Guide
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'rubocop-inspire', require: false
|
11
|
+
```
|
12
|
+
|
13
|
+
Add this to your project `.rubocop.yml` file
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
inherit_gem:
|
17
|
+
rubocop-inspire: rubocop.yml
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle install
|
23
|
+
|
24
|
+
You can continue to add application-specific rules/overrides in the
|
25
|
+
`.rubocop.yml` file in the root of your application, including annotating
|
26
|
+
your todo list:
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
inherit_from: .rubocop_todo.yml
|
30
|
+
```
|
31
|
+
|
32
|
+
## Development
|
33
|
+
|
34
|
+
### Testing locally
|
35
|
+
|
36
|
+
In your application, use the `path` attribute to point to your local copy of the gem
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
# Use the relative path from your application, to the rubocop-inspire folder
|
40
|
+
gem 'rubocop-inspire', path: '../rubocop-inspire', require: false
|
41
|
+
```
|
42
|
+
|
43
|
+
### Publishing the gem
|
44
|
+
|
45
|
+
If you have access to publish the gem on rubygems:
|
46
|
+
|
47
|
+
1. Update the `version.rb` file as appropriate
|
48
|
+
1. `bundle` if any dependencies have changed
|
49
|
+
1. Commit all changes
|
50
|
+
1. Update the `CHANGELOG.md`
|
51
|
+
1. Publish to rubygems:
|
52
|
+
1. `rake build`
|
53
|
+
1. `cd pkg`
|
54
|
+
1. `gem push rubocop-inspire.<version_number>.gem`
|
55
|
+
|
56
|
+
|
57
|
+
## Contributing
|
58
|
+
|
59
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/DWPHoldings/rubocop-inspire.
|
60
|
+
|
61
|
+
## License
|
62
|
+
|
63
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "rubocop/inspire"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require "irb"
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/rubocop/inspire/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'rubocop-inspire'
|
7
|
+
spec.version = Rubocop::Inspire::VERSION
|
8
|
+
spec.authors = ['Inspire Engineering']
|
9
|
+
spec.email = ['technology@inspirecleanenergy.com']
|
10
|
+
|
11
|
+
spec.summary = 'Inspire Ruby Style Guide'
|
12
|
+
spec.homepage = "https://github.com/DWPHoldings/rubocop-insire"
|
13
|
+
spec.license = 'MIT'
|
14
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
15
|
+
|
16
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
17
|
+
|
18
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
19
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
20
|
+
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
21
|
+
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
25
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
26
|
+
end
|
27
|
+
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
spec.add_dependency 'rubocop', '~> 1.8'
|
33
|
+
spec.add_dependency 'rubocop-rspec', '~> 2.1'
|
34
|
+
spec.add_dependency 'rubocop-performance', '~> 1.9'
|
35
|
+
spec.add_dependency 'rubocop-rails', '~> 2.9'
|
36
|
+
spec.add_dependency 'rubocop-faker', '~> 1.1'
|
37
|
+
spec.add_dependency 'rubocop-rake', '~> 0.5'
|
38
|
+
|
39
|
+
# Uncomment to register a new dependency of your gem
|
40
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
41
|
+
|
42
|
+
# For more information and examples about making a new gem, checkout our
|
43
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
44
|
+
end
|
data/rubocop.yml
ADDED
@@ -0,0 +1,362 @@
|
|
1
|
+
---
|
2
|
+
# Reference: https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
|
3
|
+
require:
|
4
|
+
- rubocop-performance
|
5
|
+
- rubocop-rails
|
6
|
+
- rubocop-rspec
|
7
|
+
- rubocop-faker
|
8
|
+
- rubocop-rake
|
9
|
+
|
10
|
+
AllCops:
|
11
|
+
DisplayStyleGuide: true
|
12
|
+
Exclude:
|
13
|
+
- 'bin/**/*'
|
14
|
+
- 'db/**/*'
|
15
|
+
- 'lib/tasks/*'
|
16
|
+
- 'Rakefile'
|
17
|
+
- '*.gemspec'
|
18
|
+
- '**/node_modules/**/*'
|
19
|
+
- 'vendor/**/*'
|
20
|
+
ExtraDetails: false
|
21
|
+
|
22
|
+
Layout/ArgumentAlignment:
|
23
|
+
EnforcedStyle: with_fixed_indentation
|
24
|
+
|
25
|
+
Layout/BeginEndAlignment:
|
26
|
+
Enabled: true
|
27
|
+
|
28
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
Layout/LineLength:
|
32
|
+
Max: 120
|
33
|
+
|
34
|
+
Layout/MultilineMethodCallIndentation:
|
35
|
+
EnforcedStyle: indented
|
36
|
+
|
37
|
+
Layout/ParameterAlignment:
|
38
|
+
EnforcedStyle: with_fixed_indentation
|
39
|
+
|
40
|
+
Layout/SpaceAroundMethodCallOperator:
|
41
|
+
Enabled: true
|
42
|
+
|
43
|
+
Layout/SpaceInsideHashLiteralBraces:
|
44
|
+
EnforcedStyle: compact
|
45
|
+
|
46
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
47
|
+
Enabled: true
|
48
|
+
|
49
|
+
Lint/ConstantDefinitionInBlock:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
Lint/DeprecatedOpenSSLConstant:
|
53
|
+
Enabled: true
|
54
|
+
|
55
|
+
Lint/DuplicateElsifCondition:
|
56
|
+
Enabled: true
|
57
|
+
|
58
|
+
Lint/DuplicateRequire:
|
59
|
+
Enabled: true
|
60
|
+
|
61
|
+
Lint/DuplicateRescueException:
|
62
|
+
Enabled: true
|
63
|
+
|
64
|
+
Lint/EmptyConditionalBody:
|
65
|
+
Enabled: true
|
66
|
+
|
67
|
+
Lint/EmptyFile:
|
68
|
+
Enabled: true
|
69
|
+
|
70
|
+
Lint/FloatComparison:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
Lint/IdentityComparison:
|
74
|
+
Enabled: true
|
75
|
+
|
76
|
+
Lint/MissingSuper:
|
77
|
+
Enabled: true
|
78
|
+
|
79
|
+
Lint/MixedRegexpCaptureTypes:
|
80
|
+
Enabled: true
|
81
|
+
|
82
|
+
Lint/OutOfRangeRegexpRef:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
Lint/RaiseException:
|
86
|
+
Enabled: true
|
87
|
+
|
88
|
+
Lint/SelfAssignment:
|
89
|
+
Enabled: true
|
90
|
+
|
91
|
+
Lint/StructNewOverride:
|
92
|
+
Enabled: true
|
93
|
+
|
94
|
+
Lint/TopLevelReturnWithArgument:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
Lint/UnreachableLoop:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
Lint/UselessMethodDefinition:
|
104
|
+
Enabled: true
|
105
|
+
|
106
|
+
Lint/UselessTimes:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
Lint/DuplicateBranch:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
Lint/EmptyBlock:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
Lint/EmptyClass:
|
119
|
+
Enabled: true
|
120
|
+
|
121
|
+
Lint/NoReturnInBeginEndBlocks:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
Lint/ToEnumArguments:
|
125
|
+
Enabled: true
|
126
|
+
|
127
|
+
Lint/UnmodifiedReduceAccumulator:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
Layout/TrailingEmptyLines:
|
131
|
+
Enabled: true
|
132
|
+
|
133
|
+
Metrics/AbcSize:
|
134
|
+
Enabled: false
|
135
|
+
|
136
|
+
Metrics/BlockLength:
|
137
|
+
Exclude:
|
138
|
+
- 'spec/**/*'
|
139
|
+
|
140
|
+
Metrics/CyclomaticComplexity:
|
141
|
+
Enabled: false
|
142
|
+
|
143
|
+
Metrics/MethodLength:
|
144
|
+
Max: 35
|
145
|
+
CountComments: false
|
146
|
+
|
147
|
+
Metrics/ParameterLists:
|
148
|
+
Max: 6
|
149
|
+
|
150
|
+
Metrics/PerceivedComplexity:
|
151
|
+
Enabled: false
|
152
|
+
|
153
|
+
Naming/AccessorMethodName:
|
154
|
+
Enabled: false
|
155
|
+
|
156
|
+
Naming/VariableName:
|
157
|
+
Enabled: false
|
158
|
+
|
159
|
+
Naming/VariableNumber:
|
160
|
+
EnforcedStyle: non_integer
|
161
|
+
|
162
|
+
Rails:
|
163
|
+
Enabled: true
|
164
|
+
|
165
|
+
Rails/ActiveRecordCallbacksOrder:
|
166
|
+
Enabled: false
|
167
|
+
|
168
|
+
Rails/AfterCommitOverride:
|
169
|
+
Enabled: true
|
170
|
+
|
171
|
+
Rails/FilePath:
|
172
|
+
EnforcedStyle: arguments
|
173
|
+
|
174
|
+
Rails/FindById:
|
175
|
+
Enabled: false
|
176
|
+
|
177
|
+
Rails/Inquiry:
|
178
|
+
Enabled: true
|
179
|
+
|
180
|
+
Rails/MailerName:
|
181
|
+
Enabled: true
|
182
|
+
|
183
|
+
Rails/MatchRoute:
|
184
|
+
Enabled: true
|
185
|
+
|
186
|
+
Rails/NegateInclude:
|
187
|
+
Enabled: true
|
188
|
+
|
189
|
+
Rails/Pluck:
|
190
|
+
Enabled: true
|
191
|
+
|
192
|
+
Rails/PluckInWhere:
|
193
|
+
Enabled: true
|
194
|
+
|
195
|
+
Rails/RenderInline:
|
196
|
+
Enabled: true
|
197
|
+
|
198
|
+
Rails/RenderPlainText:
|
199
|
+
Enabled: true
|
200
|
+
|
201
|
+
Rails/RequestReferer:
|
202
|
+
EnforcedStyle: referrer
|
203
|
+
|
204
|
+
Rails/ShortI18n:
|
205
|
+
Enabled: true
|
206
|
+
|
207
|
+
Rails/SquishedSQLHeredocs:
|
208
|
+
Enabled: true
|
209
|
+
|
210
|
+
Rails/WhereExists:
|
211
|
+
Enabled: true
|
212
|
+
|
213
|
+
Rails/WhereNot:
|
214
|
+
Enabled: true
|
215
|
+
|
216
|
+
Style/AccessorGrouping:
|
217
|
+
Enabled: true
|
218
|
+
|
219
|
+
Style/ArrayCoercion:
|
220
|
+
Enabled: true
|
221
|
+
|
222
|
+
Style/AsciiComments:
|
223
|
+
Enabled: false
|
224
|
+
|
225
|
+
Style/BisectedAttrAccessor:
|
226
|
+
Enabled: true
|
227
|
+
|
228
|
+
Style/CaseLikeIf:
|
229
|
+
Enabled: true
|
230
|
+
|
231
|
+
Style/ClassAndModuleChildren:
|
232
|
+
Enabled: false
|
233
|
+
|
234
|
+
Style/CombinableLoops:
|
235
|
+
Enabled: true
|
236
|
+
|
237
|
+
Style/CommandLiteral:
|
238
|
+
EnforcedStyle: percent_x
|
239
|
+
|
240
|
+
Style/CommentedKeyword:
|
241
|
+
Enabled: false
|
242
|
+
|
243
|
+
Style/Documentation:
|
244
|
+
Enabled: false
|
245
|
+
|
246
|
+
Style/DoubleNegation:
|
247
|
+
Enabled: false
|
248
|
+
|
249
|
+
Style/ExponentialNotation:
|
250
|
+
Enabled: true
|
251
|
+
|
252
|
+
Style/ExplicitBlockArgument:
|
253
|
+
Enabled: true
|
254
|
+
|
255
|
+
Style/FormatStringToken:
|
256
|
+
Exclude:
|
257
|
+
- 'config/routes.rb'
|
258
|
+
|
259
|
+
Style/FrozenStringLiteralComment:
|
260
|
+
Enabled: true
|
261
|
+
|
262
|
+
Style/GlobalStdStream:
|
263
|
+
Enabled: true
|
264
|
+
|
265
|
+
Style/HashAsLastArrayItem:
|
266
|
+
Enabled: true
|
267
|
+
|
268
|
+
Style/HashEachMethods:
|
269
|
+
Enabled: true
|
270
|
+
|
271
|
+
Style/HashLikeCase:
|
272
|
+
Enabled: true
|
273
|
+
|
274
|
+
Style/HashTransformKeys:
|
275
|
+
Enabled: true
|
276
|
+
|
277
|
+
Style/HashTransformValues:
|
278
|
+
Enabled: true
|
279
|
+
|
280
|
+
Style/MutableConstant:
|
281
|
+
Enabled: false
|
282
|
+
|
283
|
+
Style/KeywordParametersOrder:
|
284
|
+
Enabled: true
|
285
|
+
|
286
|
+
Style/NegatedIf:
|
287
|
+
EnforcedStyle: postfix
|
288
|
+
|
289
|
+
Style/NumericLiterals:
|
290
|
+
Enabled: false
|
291
|
+
|
292
|
+
Style/OptionalBooleanParameter:
|
293
|
+
Enabled: true
|
294
|
+
|
295
|
+
Style/RedundantAssignment:
|
296
|
+
Enabled: true
|
297
|
+
|
298
|
+
Style/RedundantFetchBlock:
|
299
|
+
Enabled: true
|
300
|
+
|
301
|
+
Style/RedundantFileExtensionInRequire:
|
302
|
+
Enabled: true
|
303
|
+
|
304
|
+
Style/RedundantRegexpCharacterClass:
|
305
|
+
Enabled: true
|
306
|
+
|
307
|
+
Style/RedundantRegexpEscape:
|
308
|
+
Enabled: true
|
309
|
+
|
310
|
+
Style/RedundantReturn:
|
311
|
+
Enabled: false
|
312
|
+
|
313
|
+
Style/RedundantSelfAssignment:
|
314
|
+
Enabled: true
|
315
|
+
|
316
|
+
Style/SingleArgumentDig:
|
317
|
+
Enabled: true
|
318
|
+
|
319
|
+
Style/SlicingWithRange:
|
320
|
+
Enabled: true
|
321
|
+
|
322
|
+
Style/SoleNestedConditional:
|
323
|
+
Enabled: true
|
324
|
+
|
325
|
+
Style/StringConcatenation:
|
326
|
+
Enabled: true
|
327
|
+
|
328
|
+
Style/StringLiterals:
|
329
|
+
Enabled: false
|
330
|
+
|
331
|
+
Style/SymbolArray:
|
332
|
+
EnforcedStyle: brackets
|
333
|
+
|
334
|
+
Style/SymbolProc:
|
335
|
+
IgnoredMethods:
|
336
|
+
- respond_to
|
337
|
+
- define_method
|
338
|
+
- around
|
339
|
+
|
340
|
+
Style/TrivialAccessors:
|
341
|
+
AllowDSLWriters: true
|
342
|
+
|
343
|
+
Style/ArgumentsForwarding:
|
344
|
+
Enabled: true
|
345
|
+
|
346
|
+
Style/CollectionCompact:
|
347
|
+
Enabled: true
|
348
|
+
|
349
|
+
Style/DocumentDynamicEvalDefinition:
|
350
|
+
Enabled: true
|
351
|
+
|
352
|
+
Style/NegatedIfElseCondition:
|
353
|
+
Enabled: true
|
354
|
+
|
355
|
+
Style/NilLambda:
|
356
|
+
Enabled: true
|
357
|
+
|
358
|
+
Style/RedundantArgument:
|
359
|
+
Enabled: true
|
360
|
+
|
361
|
+
Style/SwapValues:
|
362
|
+
Enabled: true
|
metadata
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubocop-inspire
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Inspire Engineering
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-01-14 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: '1.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.8'
|
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: '2.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-performance
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.9'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.9'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.9'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.9'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-faker
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.5'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.5'
|
97
|
+
description:
|
98
|
+
email:
|
99
|
+
- technology@inspirecleanenergy.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rubocop.yml"
|
106
|
+
- CHANGELOG.md
|
107
|
+
- Gemfile
|
108
|
+
- Gemfile.lock
|
109
|
+
- LICENSE.txt
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- bin/console
|
113
|
+
- bin/setup
|
114
|
+
- lib/rubocop/inspire.rb
|
115
|
+
- lib/rubocop/inspire/version.rb
|
116
|
+
- rubocop-inspire.gemspec
|
117
|
+
- rubocop.yml
|
118
|
+
homepage: https://github.com/DWPHoldings/rubocop-insire
|
119
|
+
licenses:
|
120
|
+
- MIT
|
121
|
+
metadata:
|
122
|
+
allowed_push_host: https://rubygems.org
|
123
|
+
homepage_uri: https://github.com/DWPHoldings/rubocop-insire
|
124
|
+
source_code_uri: https://github.com/DWPHoldings/rubocop-insire
|
125
|
+
changelog_uri: https://github.com/DWPHoldings/rubocop-insire/blob/master/CHANGELOG.md
|
126
|
+
post_install_message:
|
127
|
+
rdoc_options: []
|
128
|
+
require_paths:
|
129
|
+
- lib
|
130
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 2.3.0
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
requirements: []
|
141
|
+
rubygems_version: 3.0.3
|
142
|
+
signing_key:
|
143
|
+
specification_version: 4
|
144
|
+
summary: Inspire Ruby Style Guide
|
145
|
+
test_files: []
|