rubocop-codeur 0.1.9 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +6 -3
- data/default.yml +13 -1
- data/lib/rubocop_codeur/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 393cedc3aa81b6bc7e241dd4b1c70f56374dd7265ae271fa43dd97f77aa6c97b
|
4
|
+
data.tar.gz: d14ad0234d1e20ba45415bfd287f43b8e29bfd6b15c224399b0da6fa7310487f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 949b65fdbee15d4078e9c4ff1626ed425fcc400832aaab747893d892a0b013cf0607ce585c945f9dfb3cd13bafa9afc1914672ac74fb91faf9ea4080fe89af7c
|
7
|
+
data.tar.gz: 1e44b1e228e77e50d2e27ea1a8527eb418cc27b11cdcd830bc7b2f0cf9c1b7c9d60e0edf325c1ad862d007e36a5b9b44560ed4749c96ac8f0826f4f889aee4ce
|
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
@@ -13,7 +13,7 @@ AllCops:
|
|
13
13
|
- 'bin/*'
|
14
14
|
- 'test/dummy/db/schema.rb'
|
15
15
|
- 'test/dummy/tmp/**/*'
|
16
|
-
TargetRubyVersion: 2.
|
16
|
+
TargetRubyVersion: 2.7
|
17
17
|
TargetRailsVersion: 6.0
|
18
18
|
NewCops: enable
|
19
19
|
|
@@ -66,9 +66,12 @@ Metrics/BlockLength:
|
|
66
66
|
Exclude:
|
67
67
|
- 'config/routes.rb'
|
68
68
|
- 'lib/tasks/**/*'
|
69
|
+
- 'app/states/*'
|
69
70
|
|
70
71
|
Metrics/ClassLength:
|
71
72
|
Max: 300
|
73
|
+
Exclude:
|
74
|
+
- 'app/models/**/*'
|
72
75
|
|
73
76
|
Metrics/CyclomaticComplexity:
|
74
77
|
Max: 10
|
@@ -98,6 +101,9 @@ Rails/CreateTableWithTimestamps:
|
|
98
101
|
Exclude:
|
99
102
|
- 'db/migrate/{2012,2013,2014,2015,2016,2017,2018}*.rb'
|
100
103
|
|
104
|
+
Rails/EnvironmentVariableAccess:
|
105
|
+
AllowReads: true
|
106
|
+
|
101
107
|
Rails/FilePath:
|
102
108
|
EnforcedStyle: arguments
|
103
109
|
|
@@ -169,3 +175,9 @@ Style/NumericPredicate:
|
|
169
175
|
|
170
176
|
Style/SymbolArray:
|
171
177
|
MinSize: 7
|
178
|
+
|
179
|
+
Style/FormatStringToken:
|
180
|
+
Enabled: true
|
181
|
+
Exclude:
|
182
|
+
- 'config/routes.rb'
|
183
|
+
- '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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dev-team Codeur
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -101,7 +101,7 @@ licenses:
|
|
101
101
|
- MIT
|
102
102
|
metadata:
|
103
103
|
homepage_uri: https://github.com/codeur/rubocop-codeur
|
104
|
-
post_install_message:
|
104
|
+
post_install_message:
|
105
105
|
rdoc_options: []
|
106
106
|
require_paths:
|
107
107
|
- lib
|
@@ -116,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
|
-
rubygems_version: 3.
|
120
|
-
signing_key:
|
119
|
+
rubygems_version: 3.1.4
|
120
|
+
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Codeur rubocop config gem
|
123
123
|
test_files: []
|