makandra-rubocop 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -2
- data/Gemfile.lock +4 -4
- data/README.md +9 -0
- data/config/ext/rails.yml +2 -2
- data/lib/makandra_rubocop/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: 2eb2f279fb7d984037fbe5ac17b31485b95da9bd7bc0e6d70b35db2b4643d77f
|
4
|
+
data.tar.gz: 4a6f7c331bd9405475cfc3b9a29853f7432ec634139573492e368b6fecb84b64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad044fd984253317df2fee2fc569c5977679b61ccc6f8e19669cfaba4d881f24ae744a99585de9b5c09033ae11d288881a33ae5fef7ff09a19ac1895d474f973
|
7
|
+
data.tar.gz: bed2b366e299281903a54dd891a2bcded7fcc2f002a8aca5a8b14478a2c67bd7b3ea5071bfa43320859a216ca7bce184dd3c31d3c6f507c1126299bdab7e6632
|
data/CHANGELOG.md
CHANGED
@@ -9,12 +9,23 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
9
9
|
### Compatible changes
|
10
10
|
|
11
11
|
|
12
|
+
## 4.2.0 - 2020-01-02
|
13
|
+
|
14
|
+
### Breaking changes
|
15
|
+
|
16
|
+
### Compatible changes
|
17
|
+
|
18
|
+
- Disable `Rails/HelperInstanceVariable`
|
19
|
+
- Disable `Rails/HasManyOrHasOneDependent`
|
20
|
+
|
21
|
+
|
12
22
|
## 4.1.0 - 2019-12-06
|
13
23
|
|
14
24
|
### Compatible changes
|
15
25
|
|
16
26
|
- Disable Rails/UnknownEnv cop
|
17
27
|
|
28
|
+
|
18
29
|
## 4.0.0 - 2019-12-06
|
19
30
|
|
20
31
|
### Breaking changes
|
@@ -25,8 +36,8 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
25
36
|
Rubopcop 0.72.0 extracts all its Rails helpers to a new gem. This results in two split config files in the
|
26
37
|
`makandra-rubocop` gem:
|
27
38
|
|
28
|
-
|
29
|
-
|
39
|
+
- config/default.yml (contains now only Ruby cops)
|
40
|
+
- config/ext/rails.yml (contains all Rails cops)
|
30
41
|
|
31
42
|
Enabling the Rails cops was and is optional in `makandra-rubocop`. In case you want to use the Ruby cops only, please
|
32
43
|
use the following config as before:
|
@@ -66,6 +77,7 @@ inherit_gem:
|
|
66
77
|
|
67
78
|
- Update bundler to version 2 (only for development)
|
68
79
|
|
80
|
+
|
69
81
|
## 3.2.0 - 2019-07-29
|
70
82
|
|
71
83
|
### Compatible changes
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
makandra-rubocop (4.
|
4
|
+
makandra-rubocop (4.2.0)
|
5
5
|
rubocop (~> 0.76.0)
|
6
6
|
rubocop-rails (~> 2.3.2)
|
7
7
|
|
@@ -11,9 +11,9 @@ GEM
|
|
11
11
|
ast (2.4.0)
|
12
12
|
jaro_winkler (1.5.4)
|
13
13
|
parallel (1.19.1)
|
14
|
-
parser (2.
|
14
|
+
parser (2.7.0.1)
|
15
15
|
ast (~> 2.4.0)
|
16
|
-
rack (2.0.
|
16
|
+
rack (2.0.8)
|
17
17
|
rainbow (3.0.0)
|
18
18
|
rake (12.3.2)
|
19
19
|
rubocop (0.76.0)
|
@@ -38,4 +38,4 @@ DEPENDENCIES
|
|
38
38
|
rake (~> 12.3)
|
39
39
|
|
40
40
|
BUNDLED WITH
|
41
|
-
2.
|
41
|
+
2.1.2
|
data/README.md
CHANGED
@@ -55,6 +55,15 @@ Layout/MultilineArrayLineBreaks:
|
|
55
55
|
Enabled: true
|
56
56
|
```
|
57
57
|
|
58
|
+
It also might be desired to set `inherit_mode`, which specifies which configuration keys that have
|
59
|
+
array values should be merged together instead of overriding the inherited value:
|
60
|
+
|
61
|
+
```
|
62
|
+
inherit_mode:
|
63
|
+
merge:
|
64
|
+
- Exclude
|
65
|
+
```
|
66
|
+
|
58
67
|
### Executing Rubocop on demand
|
59
68
|
|
60
69
|
Run Rubocop via `bundle exec rubocop` from your project directory.
|
data/config/ext/rails.yml
CHANGED
@@ -223,14 +223,14 @@ Rails/HasAndBelongsToMany:
|
|
223
223
|
Rails/HasManyOrHasOneDependent:
|
224
224
|
Description: 'Define the dependent option to the has_many and has_one associations.'
|
225
225
|
StyleGuide: 'https://rails.rubystyle.guide#has_many-has_one-dependent-option'
|
226
|
-
Enabled:
|
226
|
+
Enabled: false # https://github.com/makandra/makandra-rubocop/issues/13
|
227
227
|
VersionAdded: '0.50'
|
228
228
|
Include:
|
229
229
|
- app/models/**/*.rb
|
230
230
|
|
231
231
|
Rails/HelperInstanceVariable:
|
232
232
|
Description: 'Do not use instance variables in helpers'
|
233
|
-
Enabled:
|
233
|
+
Enabled: false # https://github.com/makandra/makandra-rubocop/issues/12
|
234
234
|
VersionAdded: '2.0'
|
235
235
|
Include:
|
236
236
|
- app/helpers/**/*.rb
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: makandra-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arne Hartherz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-01-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|