rubocop-codeur 0.1.8 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +6 -3
- data/default.yml +12 -1
- data/lib/rubocop_codeur/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2c335c0cdfd2e7c4f45eb896187e7bc557fe7ca246eb988b253db806a059ed9
|
|
4
|
+
data.tar.gz: d440f2cb94134d531a8e5f70ddb093c0c212916c9a1e9aa934463bdf836d5ce4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbf8b0f657e14036d0c02ab47bd95f556a4a3e3d5d42c7cbbb695bbe566b2f7a66af9316b4658b84fda1d43a51235e7caa739d4a2fde51eb13d1f3dfcfecf436
|
|
7
|
+
data.tar.gz: 79b75aae2682b5c649836271938be779021a106a423543c3d176a5c89a37fb4a8ed4469fbeb3115316eca11c6343b0afc55a2f9c15c9fea9265149ebd3a52472
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Then run:
|
|
|
25
25
|
`bundle exec rubocop`
|
|
26
26
|
|
|
27
27
|
You don't need to include rubocop directly in your application's dependencies.
|
|
28
|
-
`rubocop-codeur will include `rubocop`, `rubocop-minitest`, `rubocop-performance` and `rubocop-rails` dependencies.
|
|
28
|
+
`rubocop-codeur` will include `rubocop`, `rubocop-minitest`, `rubocop-performance` and `rubocop-rails` dependencies.
|
|
29
29
|
|
|
30
30
|
It might be necessary to override style rules set in this gem for some projects or to add specific ones. Rule inheritance provided by Rubocop works like the following:
|
|
31
31
|
`inherit_gem → inherit_from → local rules`
|
|
@@ -46,9 +46,9 @@ AllCops:
|
|
|
46
46
|
Note that those overriding should be avoided as much as possible.
|
|
47
47
|
|
|
48
48
|
## Release
|
|
49
|
-
Before all, configure your credentials for
|
|
49
|
+
Before all, configure your credentials for RubyGems :
|
|
50
50
|
|
|
51
|
-
1. Login to RubyGems
|
|
51
|
+
1. Login to RubyGems
|
|
52
52
|
2. Create a token which have rights to push gems (https://rubygems.org/profile/api_keys)
|
|
53
53
|
3. Add it to your config:
|
|
54
54
|
```
|
|
@@ -65,3 +65,6 @@ Else, to publish a new version of this gem, you'll need to build it with
|
|
|
65
65
|
```
|
|
66
66
|
gem push rubocop-codeur-X.X.X.gem
|
|
67
67
|
```
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). Copyright 2021 Codeur SARL.
|
data/default.yml
CHANGED
|
@@ -11,7 +11,9 @@ AllCops:
|
|
|
11
11
|
- 'tmp/**/*'
|
|
12
12
|
- 'vendor/**/*'
|
|
13
13
|
- 'bin/*'
|
|
14
|
-
|
|
14
|
+
- 'test/dummy/db/schema.rb'
|
|
15
|
+
- 'test/dummy/tmp/**/*'
|
|
16
|
+
TargetRubyVersion: 2.7
|
|
15
17
|
TargetRailsVersion: 6.0
|
|
16
18
|
NewCops: enable
|
|
17
19
|
|
|
@@ -64,9 +66,12 @@ Metrics/BlockLength:
|
|
|
64
66
|
Exclude:
|
|
65
67
|
- 'config/routes.rb'
|
|
66
68
|
- 'lib/tasks/**/*'
|
|
69
|
+
- 'app/states/*'
|
|
67
70
|
|
|
68
71
|
Metrics/ClassLength:
|
|
69
72
|
Max: 300
|
|
73
|
+
Exclude:
|
|
74
|
+
- 'app/models/**/*'
|
|
70
75
|
|
|
71
76
|
Metrics/CyclomaticComplexity:
|
|
72
77
|
Max: 10
|
|
@@ -167,3 +172,9 @@ Style/NumericPredicate:
|
|
|
167
172
|
|
|
168
173
|
Style/SymbolArray:
|
|
169
174
|
MinSize: 7
|
|
175
|
+
|
|
176
|
+
Style/FormatStringToken:
|
|
177
|
+
Enabled: true
|
|
178
|
+
Exclude:
|
|
179
|
+
- 'config/routes.rb'
|
|
180
|
+
- 'config/routes/*'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-codeur
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dev-team Codeur
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|