ergomentum_rubocop 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f41172e135a7bb0acaf416a49da1565642cf53ac8466b80072a78254f48c254
4
- data.tar.gz: c8450dc25c98fea7921fe6a5bd4f9bba78df566259bf34b90cb943bc744e54be
3
+ metadata.gz: 4cc1ac4a7a491e2c992b3087f2044c8e3d8abe0c65569ee21df1999359cc1622
4
+ data.tar.gz: 38eb6a510e40a42b4d6b33040638d942349389268570666af40484dfc509323a
5
5
  SHA512:
6
- metadata.gz: 3944d26f8082a6c2eb0e6b3eee3a43f69188528455e3e24f00de673a7d2c02f363bd7c32a84b1901130d63e861c57a32c1b78cc57860e701746cda5fc6f19297
7
- data.tar.gz: da44c310543721c09eeb99f94314fbaf3ce3f4444fe12f960caa2e948103eaef6cc6a2681c632b7bdb2a38b23df1525171bdc3c76567cf9bad5755aff4534200
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 'ergomentum_rubocop'
13
+ gem "ergomentum_rubocop"
14
14
  ```
15
15
 
16
16
  And then execute:
17
17
 
18
- $ bundle install
19
-
20
- Or install it yourself as:
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:
@@ -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:
@@ -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:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErgomentumRubocop
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
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.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-06-10 00:00:00.000000000 Z
11
+ date: 2021-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop