appbooster_rubocop_config 0.2.0 → 0.7
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/.travis.yml +2 -2
- data/appbooster_rubocop_config.gemspec +3 -3
- data/default.yml +77 -9
- data/lib/rubocop/appbooster_rubocop_config/version.rb +1 -1
- data/lib/rubocop/cop/lint/unless_multiple_conditions.rb +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4c9120a80f748958655033ddbe0f41b398b7af6a3760b9870ed2063185922c3
|
4
|
+
data.tar.gz: 5ee3018b6574d2464270cec3f188a4e0536a1fad62b7efa89a1f1e72d13816a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 952d1dcfa253e75b7ce9f57c624c3c20a0a473a289acbf3d0dff8101b34ec55f750ed0c1b4236383d73de61513fdec606f7e20f28fdded591a9d8fc1061f9424
|
7
|
+
data.tar.gz: fc2355b4a060b6e841bd174ce9e8c14bd59073cd7be272d9a9a7bd53bdf18440c614174c4c322b226b08d770a307beb88aea5f4f7e13290d9207d7e5869cb6a6
|
data/.travis.yml
CHANGED
@@ -28,11 +28,11 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
|
-
spec.add_development_dependency "bundler", "
|
31
|
+
spec.add_development_dependency "bundler", ">= 2.0.2"
|
32
32
|
spec.add_development_dependency "rake", "~> 10.0"
|
33
33
|
spec.add_development_dependency "rspec", "~> 3.0"
|
34
34
|
spec.add_development_dependency "bump", ">= 0.5.4"
|
35
35
|
|
36
|
-
spec.add_dependency "rubocop", "~>
|
37
|
-
spec.add_dependency "rubocop-rspec", "~> 1.
|
36
|
+
spec.add_dependency "rubocop", "~> 1.6"
|
37
|
+
spec.add_dependency "rubocop-rspec", "~> 2.1.0"
|
38
38
|
end
|
data/default.yml
CHANGED
@@ -2,7 +2,9 @@ require:
|
|
2
2
|
- ./lib/rubocop/appbooster_rubocop_config
|
3
3
|
|
4
4
|
AllCops:
|
5
|
+
NewCops: enable
|
5
6
|
Include:
|
7
|
+
- "**/*.rb"
|
6
8
|
- "Rakefile"
|
7
9
|
- "config.ru"
|
8
10
|
- "lib/**/*.rake"
|
@@ -19,11 +21,11 @@ AllCops:
|
|
19
21
|
Layout/SpaceInLambdaLiteral:
|
20
22
|
EnforcedStyle: require_space
|
21
23
|
|
22
|
-
Layout/
|
24
|
+
Layout/FirstHashElementIndentation:
|
23
25
|
EnforcedStyle: consistent
|
24
26
|
|
25
27
|
# Commonly used screens these days easily fit more than 80 characters.
|
26
|
-
|
28
|
+
Layout/LineLength:
|
27
29
|
Max: 120
|
28
30
|
|
29
31
|
Metrics/AbcSize:
|
@@ -37,13 +39,7 @@ Naming/FileName:
|
|
37
39
|
- "Capfile"
|
38
40
|
- "Vagrantfile"
|
39
41
|
|
40
|
-
|
41
|
-
Enabled: true
|
42
|
-
|
43
|
-
Rails/SkipsModelValidations:
|
44
|
-
Enabled: true
|
45
|
-
|
46
|
-
VariableName:
|
42
|
+
Naming/VariableName:
|
47
43
|
EnforcedStyle: snake_case
|
48
44
|
|
49
45
|
# Single quotes being faster is hardly measurable and only affects parse time.
|
@@ -68,6 +64,78 @@ Style/ClassAndModuleChildren:
|
|
68
64
|
Style/NumericPredicate:
|
69
65
|
Enabled: false
|
70
66
|
|
67
|
+
Style/SymbolArray:
|
68
|
+
MinSize: 4
|
69
|
+
|
70
|
+
Style/WordArray:
|
71
|
+
MinSize: 4
|
72
|
+
|
71
73
|
Lint/UnlessMultipleConditions:
|
72
74
|
Description: 'Do not use `unless` with multiple conditions.'
|
73
75
|
Enabled: true
|
76
|
+
|
77
|
+
Layout/SpaceAroundMethodCallOperator:
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
Lint/RaiseException:
|
81
|
+
Enabled: true
|
82
|
+
|
83
|
+
Lint/StructNewOverride:
|
84
|
+
Enabled: true
|
85
|
+
|
86
|
+
Style/ExponentialNotation:
|
87
|
+
Enabled: true
|
88
|
+
|
89
|
+
Style/HashEachMethods:
|
90
|
+
Enabled: true
|
91
|
+
|
92
|
+
Style/HashTransformKeys:
|
93
|
+
Enabled: true
|
94
|
+
|
95
|
+
Style/HashTransformValues:
|
96
|
+
Enabled: true
|
97
|
+
|
98
|
+
Lint/DuplicateBranch: # (new in 1.3)
|
99
|
+
Enabled: true
|
100
|
+
|
101
|
+
Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
|
102
|
+
Enabled: true
|
103
|
+
|
104
|
+
Lint/EmptyBlock: # (new in 1.1)
|
105
|
+
Enabled: true
|
106
|
+
|
107
|
+
Lint/EmptyClass: # (new in 1.3)
|
108
|
+
Enabled: true
|
109
|
+
|
110
|
+
Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
|
111
|
+
Enabled: true
|
112
|
+
|
113
|
+
Lint/ToEnumArguments: # (new in 1.1)
|
114
|
+
Enabled: true
|
115
|
+
|
116
|
+
Lint/UnexpectedBlockArity: # (new in 1.5)
|
117
|
+
Enabled: true
|
118
|
+
|
119
|
+
Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
|
120
|
+
Enabled: true
|
121
|
+
|
122
|
+
Style/ArgumentsForwarding: # (new in 1.1)
|
123
|
+
Enabled: true
|
124
|
+
|
125
|
+
Style/CollectionCompact: # (new in 1.2)
|
126
|
+
Enabled: true
|
127
|
+
|
128
|
+
Style/DocumentDynamicEvalDefinition: # (new in 1.1)
|
129
|
+
Enabled: true
|
130
|
+
|
131
|
+
Style/NegatedIfElseCondition: # (new in 1.2)
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
Style/NilLambda: # (new in 1.3)
|
135
|
+
Enabled: true
|
136
|
+
|
137
|
+
Style/RedundantArgument: # (new in 1.4)
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
Style/SwapValues: # (new in 1.1)
|
141
|
+
Enabled: true
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appbooster_rubocop_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.7'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Ivliev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.0.2
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.0.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,28 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '1.6'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '1.6'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 2.1.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 2.1.0
|
97
97
|
description:
|
98
98
|
email:
|
99
99
|
- rootkit89@gmail.com
|
@@ -137,8 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
|
-
|
141
|
-
rubygems_version: 2.7.7
|
140
|
+
rubygems_version: 3.0.8
|
142
141
|
signing_key:
|
143
142
|
specification_version: 4
|
144
143
|
summary: Shared rubocop config of Appbooster organization
|