ruby_coding_standard 0.2.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3356678f5b769b8829bc6340990cea734cf7be6ad895a66b2f17dba3f35f6cb8
4
- data.tar.gz: 362dd35a1fb3e1e87eb817f4d376e2fcca08db7949ad4773dcc80da4d2050456
3
+ metadata.gz: a11265d34a46a38fdbd68f4edfea2019779f8f18b100b6f0a518eae1b3b69774
4
+ data.tar.gz: '041494d0b192da1f6209f2e1366be4e6748a0570580aada6077398f266b8523f'
5
5
  SHA512:
6
- metadata.gz: '09f24243a568ba9e22bc81174d40f0055f9bd5c6beb7edf168b0c074f33d0aec97c90a5740ac8ee1b4f459d595e5dc75f7249144d6f1eabe0a544f1afa6096b4'
7
- data.tar.gz: d22321f816f5b297ded9a50238a7b4e06186c3f5717e4081b0d2069138e8464269e1f675495e24bceec4b9fcaa8ff5020570f33c9a13c50b8c65d079a473279a
6
+ metadata.gz: 7bb6a0c24e491cd3e023679833dbf9ba8a2fbe2204f45a690bb9f7e3b7a00437c58c8e338f7c1a5e87fa97895700440d517ed8ea8d5290102c0b073ffb61942b
7
+ data.tar.gz: a14fe7dedbb657391698d47f4649395b1cfad2eedf5fa288578c3f3b61fa698e971ae0452eb3ab793222b4a95385c3b0342f8441054b7bd63e630967ac34624c
@@ -1,14 +1,14 @@
1
1
  Layout/AccessModifierIndentation:
2
2
  EnforcedStyle: indent
3
3
 
4
- Layout/AlignArguments:
4
+ Layout/ArgumentAlignment:
5
5
  EnforcedStyle: with_fixed_indentation
6
6
 
7
- Layout/AlignHash:
7
+ Layout/HashAlignment:
8
8
  EnforcedHashRocketStyle: key
9
9
  EnforcedColonStyle: key
10
10
 
11
- Layout/AlignParameters:
11
+ Layout/ParameterAlignment:
12
12
  EnforcedStyle: with_fixed_indentation
13
13
 
14
14
  Layout/BlockAlignment:
@@ -102,28 +102,27 @@ Layout/FirstMethodParameterLineBreak:
102
102
  Layout/HeredocArgumentClosingParenthesis:
103
103
  Enabled: true
104
104
 
105
- Layout/IndentAssignment:
105
+ Layout/AssignmentIndentation:
106
106
  Enabled: true
107
107
 
108
- Layout/IndentFirstArgument:
108
+ Layout/FirstArgumentIndentation:
109
109
  Enabled: true
110
110
  EnforcedStyle: consistent
111
111
 
112
- Layout/IndentFirstArrayElement:
112
+ Layout/FirstArrayElementIndentation:
113
113
  Enabled: true
114
114
  EnforcedStyle: consistent
115
115
 
116
- Layout/IndentFirstHashElement:
116
+ Layout/FirstHashElementIndentation:
117
117
  Enabled: true
118
118
  EnforcedStyle: consistent
119
119
 
120
- Layout/IndentFirstParameter:
120
+ Layout/FirstParameterIndentation:
121
121
  Enabled: true
122
122
  EnforcedStyle: consistent
123
123
 
124
- Layout/IndentHeredoc:
124
+ Layout/HeredocIndentation:
125
125
  Enabled: true
126
- EnforcedStyle: squiggly
127
126
 
128
127
  Layout/IndentationConsistency:
129
128
  Enabled: true
@@ -136,7 +135,7 @@ Layout/IndentationWidth:
136
135
  Layout/InitialIndentation:
137
136
  Enabled: true
138
137
 
139
- Layout/LeadingBlankLines:
138
+ Layout/LeadingEmptyLines:
140
139
  Enabled: true
141
140
 
142
141
  Layout/LeadingCommentSpace:
@@ -266,13 +265,18 @@ Layout/SpaceInsideReferenceBrackets:
266
265
  EnforcedStyle: no_space
267
266
  EnforcedStyleForEmptyBrackets: no_space
268
267
 
269
- Layout/Tab:
268
+ Layout/IndentationStyle:
270
269
  Enabled: true
271
270
 
272
- Layout/TrailingBlankLines:
271
+ Layout/TrailingEmptyLines:
273
272
  Enabled: true
274
273
  EnforcedStyle: final_newline
275
274
 
276
275
  Layout/TrailingWhitespace:
277
276
  Enabled: true
278
277
  AllowInHeredoc: false
278
+
279
+ Layout/LineLength:
280
+ Enabled: true
281
+ IgnoreCopDirectives: true
282
+ Max: 120
data/.lint.yml CHANGED
@@ -29,7 +29,7 @@ Lint/DuplicateCaseCondition:
29
29
  Lint/DuplicateMethods:
30
30
  Enabled: true
31
31
 
32
- Lint/DuplicatedKey:
32
+ Lint/DuplicateHashKey:
33
33
  Enabled: true
34
34
 
35
35
  Lint/ElseLayout:
@@ -44,7 +44,7 @@ Lint/EmptyInterpolation:
44
44
  Lint/EmptyWhen:
45
45
  Enabled: true
46
46
 
47
- Lint/EndInMethod:
47
+ Style/EndBlock:
48
48
  Enabled: true
49
49
 
50
50
  Lint/ErbNewArguments:
@@ -78,7 +78,7 @@ Lint/Loop:
78
78
  Lint/MissingCopEnableDirective:
79
79
  Enabled: true
80
80
 
81
- Lint/MultipleCompare:
81
+ Lint/MultipleComparison:
82
82
  Enabled: true
83
83
 
84
84
  Lint/NestedMethodDefinition:
@@ -147,7 +147,7 @@ Lint/ShadowedException:
147
147
  Lint/ShadowingOuterLocalVariable:
148
148
  Enabled: true
149
149
 
150
- Lint/StringConversionInInterpolation:
150
+ Lint/RedundantStringCoercion:
151
151
  Enabled: true
152
152
 
153
153
  Lint/Syntax:
@@ -159,16 +159,16 @@ Lint/ToJSON:
159
159
  Lint/UnifiedInteger:
160
160
  Enabled: true
161
161
 
162
- Lint/UnneededCopDisableDirective:
162
+ Lint/RedundantCopDisableDirective:
163
163
  Enabled: true
164
164
 
165
- Lint/UnneededCopEnableDirective:
165
+ Lint/RedundantCopEnableDirective:
166
166
  Enabled: true
167
167
 
168
- Lint/UnneededRequireStatement:
168
+ Lint/RedundantRequireStatement:
169
169
  Enabled: true
170
170
 
171
- Lint/UnneededSplatExpansion:
171
+ Lint/RedundantSplatExpansion:
172
172
  Enabled: true
173
173
 
174
174
  Lint/UnreachableCode:
@@ -186,7 +186,7 @@ Lint/UselessAccessModifier:
186
186
  Lint/UselessAssignment:
187
187
  Enabled: true
188
188
 
189
- Lint/UselessComparison:
189
+ Lint/BinaryOperatorWithIdenticalOperands:
190
190
  Enabled: true
191
191
 
192
192
  Lint/UselessElseWithoutRescue:
@@ -194,6 +194,3 @@ Lint/UselessElseWithoutRescue:
194
194
 
195
195
  Lint/UselessSetterCall:
196
196
  Enabled: true
197
-
198
- Lint/Void:
199
- Enabled: true
@@ -12,11 +12,6 @@ Metrics/BlockLength:
12
12
  Metrics/CyclomaticComplexity:
13
13
  Enabled: true
14
14
 
15
- Metrics/LineLength:
16
- Enabled: true
17
- IgnoreCopDirectives: true
18
- Max: 120
19
-
20
15
  Metrics/ParameterLists:
21
16
  Enabled: true
22
17
 
data/.style.yml CHANGED
@@ -18,10 +18,6 @@ Style/BlockDelimiters:
18
18
  Enabled: true
19
19
  EnforcedStyle: line_count_based
20
20
 
21
- Style/BracesAroundHashParameters:
22
- Enabled: true
23
- EnforcedStyle: context_dependent
24
-
25
21
  Style/CharacterLiteral:
26
22
  Enabled: true
27
23
 
@@ -377,10 +373,10 @@ Style/TrivialAccessors:
377
373
  Style/UnlessElse:
378
374
  Enabled: true
379
375
 
380
- Style/UnneededCondition:
376
+ Style/RedundantCondition:
381
377
  Enabled: true
382
378
 
383
- Style/UnneededSort:
379
+ Style/RedundantSort:
384
380
  Enabled: true
385
381
 
386
382
  Style/UnpackFirst:
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyCodingStandard
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  public_constant :VERSION
6
6
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ["either.free@gmail.com"]
12
12
 
13
13
  spec.summary = "Ruby coding standard focused on reducing unnecessary changes, consistency, and developer's happiness."
14
- spec.description = "Ruby coding standard focused on reducing unnecessary changes, consistency, and developer's happiness."
14
+ spec.description = spec.summary
15
15
  spec.homepage = "https://github.com/bolshakov/ruby_coding_standard"
16
16
 
17
17
  # Specify which files should be added to the gem when it is released.
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
28
  spec.add_development_dependency "rspec", "~> 3.0"
29
29
 
30
- spec.add_runtime_dependency "rubocop"
30
+ spec.add_runtime_dependency "rubocop", "~> 1.0.0"
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_coding_standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tema Bolshakov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-14 00:00:00.000000000 Z
11
+ date: 2020-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 1.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 1.0.0
69
69
  description: Ruby coding standard focused on reducing unnecessary changes, consistency,
70
70
  and developer's happiness.
71
71
  email:
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
- rubygems_version: 3.0.1
113
+ rubygems_version: 3.1.2
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Ruby coding standard focused on reducing unnecessary changes, consistency,