rubocop-codeur 0.1.12 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/default.yml +11 -0
- data/lib/rubocop_codeur/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a66a7909ac45ea835e88a3a73093a97c9d6859332eeda8eea79ba81696f78863
|
4
|
+
data.tar.gz: a906db9469b6c2fa1b5ee290d5046e3cd9a57ef834763234a9fd8398044c9230
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ecadf0e2b9f732926466219ecf5b999148cd666eb8790af99310dd56a019705c20c3658d1cf5ede42e7f0a109073cd9965200a1d0c9a0f79460627504a55d54
|
7
|
+
data.tar.gz: 57cbfaa0e40eeeb2b6f932974624bb6ed07160638505b9a67486e54dc0472c1058a2fa391c28e9a2b3ade8ce14a40920a47261786369682aec66498699fceae2
|
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
|
```
|
data/default.yml
CHANGED
@@ -27,6 +27,10 @@ Layout/AccessModifierIndentation:
|
|
27
27
|
Layout/ArgumentAlignment:
|
28
28
|
EnforcedStyle: with_first_argument
|
29
29
|
|
30
|
+
Lint/DuplicateMethods:
|
31
|
+
Exclude:
|
32
|
+
- 'db/migrate/*'
|
33
|
+
|
30
34
|
Layout/FirstArrayElementIndentation:
|
31
35
|
EnforcedStyle: consistent
|
32
36
|
|
@@ -90,6 +94,9 @@ Metrics/PerceivedComplexity:
|
|
90
94
|
Minitest/TestMethodName:
|
91
95
|
Enabled: false
|
92
96
|
|
97
|
+
Minitest/MultipleAssertions:
|
98
|
+
Max: 15
|
99
|
+
|
93
100
|
# Disabled because it doesn't with symbols like: record_001
|
94
101
|
Naming/VariableNumber:
|
95
102
|
Enabled: false
|
@@ -101,6 +108,9 @@ Rails/CreateTableWithTimestamps:
|
|
101
108
|
Exclude:
|
102
109
|
- 'db/migrate/{2012,2013,2014,2015,2016,2017,2018}*.rb'
|
103
110
|
|
111
|
+
Rails/EnvironmentVariableAccess:
|
112
|
+
AllowReads: true
|
113
|
+
|
104
114
|
Rails/FilePath:
|
105
115
|
EnforcedStyle: arguments
|
106
116
|
|
@@ -177,3 +187,4 @@ Style/FormatStringToken:
|
|
177
187
|
Enabled: true
|
178
188
|
Exclude:
|
179
189
|
- 'config/routes.rb'
|
190
|
+
- '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.16
|
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-08-26 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
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubygems_version: 3.1.4
|
120
|
-
signing_key:
|
120
|
+
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Codeur rubocop config gem
|
123
123
|
test_files: []
|