ergomentum_rubocop 0.4.0 → 0.5.0
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/README.md +6 -7
- data/config/default_rails.yml +10 -0
- data/config/default_shared.yml +16 -0
- data/lib/ergomentum_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: 4cc1ac4a7a491e2c992b3087f2044c8e3d8abe0c65569ee21df1999359cc1622
|
|
4
|
+
data.tar.gz: 38eb6a510e40a42b4d6b33040638d942349389268570666af40484dfc509323a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cabac0d2f71d6b7488b1feffbc7700fd9ddf3effb3aaeec3af6130791afa74ac9b3872c685f80f1db603233faf1c8550beb4b248837b0a1819efd8468ae280dd
|
|
7
|
+
data.tar.gz: 96894487fd0657fc1fdc016fe4a9b9cd9b8ccc14201a3adc7ccde2667089c90a80379c7fbe742768e2f95f6a946187b9eea755486d05bdb7cdb51e48848a24ee
|
data/README.md
CHANGED
|
@@ -10,20 +10,19 @@ https://circleci.com/gh/ergomentum/ergomentum_rubocop)
|
|
|
10
10
|
Add this line to your application's Gemfile:
|
|
11
11
|
|
|
12
12
|
```ruby
|
|
13
|
-
gem
|
|
13
|
+
gem "ergomentum_rubocop"
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
And then execute:
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
$ gem install ergomentum_rubocop
|
|
18
|
+
```bash
|
|
19
|
+
bundle install
|
|
20
|
+
```
|
|
23
21
|
|
|
24
22
|
## Usage
|
|
25
23
|
|
|
26
|
-
rubocop.yml
|
|
24
|
+
`rubocop.yml`:
|
|
25
|
+
|
|
27
26
|
```yml
|
|
28
27
|
inherit_gem:
|
|
29
28
|
ergomentum_rubocop:
|
data/config/default_rails.yml
CHANGED
|
@@ -4,18 +4,26 @@ require:
|
|
|
4
4
|
|
|
5
5
|
Rails/ActiveRecordCallbacksOrder:
|
|
6
6
|
Enabled: true
|
|
7
|
+
Rails/AddColumnIndex: # (new in 2.11)
|
|
8
|
+
Enabled: true
|
|
7
9
|
Rails/AfterCommitOverride:
|
|
8
10
|
Enabled: true
|
|
9
11
|
Rails/AttributeDefaultBlockValue: # (new in 2.9)
|
|
10
12
|
Enabled: true
|
|
11
13
|
Rails/Delegate:
|
|
12
14
|
Enabled: false
|
|
15
|
+
Rails/EagerEvaluationLogMessage: # (new in 2.11)
|
|
16
|
+
Enabled: true
|
|
13
17
|
Rails/EnvironmentVariableAccess: # (new in 2.10)
|
|
14
18
|
Enabled: false
|
|
19
|
+
Rails/ExpandedDateRange: # (new in 2.11)
|
|
20
|
+
Enabled: true
|
|
15
21
|
Rails/FilePath:
|
|
16
22
|
EnforcedStyle: arguments
|
|
17
23
|
Rails/FindById:
|
|
18
24
|
Enabled: true
|
|
25
|
+
Rails/I18nLocaleAssignment: # (new in 2.11)
|
|
26
|
+
Enabled: true
|
|
19
27
|
Rails/Inquiry:
|
|
20
28
|
Enabled: true
|
|
21
29
|
Rails/MailerName:
|
|
@@ -38,6 +46,8 @@ Rails/SquishedSQLHeredocs:
|
|
|
38
46
|
Enabled: true
|
|
39
47
|
Rails/TimeZoneAssignment: # (new in 2.10)
|
|
40
48
|
Enabled: true
|
|
49
|
+
Rails/UnusedIgnoredColumns: # (new in 2.11)
|
|
50
|
+
Enabled: true
|
|
41
51
|
Rails/WhereEquals: # (new in 2.9)
|
|
42
52
|
Enabled: true
|
|
43
53
|
Rails/WhereExists:
|
data/config/default_shared.yml
CHANGED
|
@@ -25,6 +25,8 @@ Layout/SpaceBeforeBrackets: # (new in 1.7)
|
|
|
25
25
|
Enabled: true
|
|
26
26
|
Lint/AmbiguousAssignment: # (new in 1.7)
|
|
27
27
|
Enabled: true
|
|
28
|
+
Lint/AmbiguousRange: # (new in 1.19)
|
|
29
|
+
Enabled: true
|
|
28
30
|
Lint/DeprecatedConstants: # (new in 1.8)
|
|
29
31
|
Enabled: true
|
|
30
32
|
Lint/DuplicateBranch: # (new in 1.3)
|
|
@@ -35,8 +37,12 @@ Lint/EmptyBlock: # (new in 1.1)
|
|
|
35
37
|
Enabled: true
|
|
36
38
|
Lint/EmptyClass: # (new in 1.3)
|
|
37
39
|
Enabled: true
|
|
40
|
+
Lint/EmptyInPattern: # (new in 1.16)
|
|
41
|
+
Enabled: true
|
|
38
42
|
Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
|
|
39
43
|
Enabled: true
|
|
44
|
+
Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
|
|
45
|
+
Enabled: true
|
|
40
46
|
Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
|
|
41
47
|
Enabled: true
|
|
42
48
|
Lint/NumberedParameterAssignment: # (new in 1.9)
|
|
@@ -72,6 +78,8 @@ Metrics/ModuleLength:
|
|
|
72
78
|
Enabled: false
|
|
73
79
|
Metrics/ParameterLists:
|
|
74
80
|
Enabled: false
|
|
81
|
+
Naming/InclusiveLanguage: # (new in 1.18)
|
|
82
|
+
Enabled: true
|
|
75
83
|
Naming/PredicateName:
|
|
76
84
|
Exclude:
|
|
77
85
|
- spec/**/*
|
|
@@ -136,12 +144,16 @@ Style/HashConversion: # (new in 1.10)
|
|
|
136
144
|
Enabled: true
|
|
137
145
|
Style/HashExcept: # (new in 1.7)
|
|
138
146
|
Enabled: true
|
|
147
|
+
Style/InPatternThen: # (new in 1.16)
|
|
148
|
+
Enabled: true
|
|
139
149
|
Style/IfUnlessModifier:
|
|
140
150
|
Enabled: false
|
|
141
151
|
Style/IfWithBooleanLiteralBranches: # (new in 1.9)
|
|
142
152
|
Enabled: true
|
|
143
153
|
Style/MultilineBlockChain:
|
|
144
154
|
Enabled: false
|
|
155
|
+
Style/MultilineInPatternThen: # (new in 1.16)
|
|
156
|
+
Enabled: true
|
|
145
157
|
Style/NegatedIfElseCondition: # (new in 1.2)
|
|
146
158
|
Enabled: true
|
|
147
159
|
Style/Next:
|
|
@@ -156,8 +168,12 @@ Style/OptionHash:
|
|
|
156
168
|
- args
|
|
157
169
|
- params
|
|
158
170
|
- parameters
|
|
171
|
+
Style/QuotedSymbols: # (new in 1.16)
|
|
172
|
+
Enabled: true
|
|
159
173
|
Style/RedundantArgument: # (new in 1.4)
|
|
160
174
|
Enabled: true
|
|
175
|
+
Style/RedundantSelfAssignmentBranch: # (new in 1.19)
|
|
176
|
+
Enabled: true
|
|
161
177
|
Style/StringChars: # (new in 1.12)
|
|
162
178
|
Enabled: true
|
|
163
179
|
Style/StringLiterals:
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ergomentum_rubocop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ergomentum
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-08-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|