simplycop 1.5.0 → 1.6.4
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/.github/workflows/ci.yml +1 -1
- data/.github/workflows/dobby-actions.yml +16 -0
- data/.simplycop.yml +10 -99
- data/lib/simplycop/version.rb +1 -1
- data/simplycop.gemspec +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92bb33b36ef3075fabd5fb751db5db4ee51600adbdc590b8087ee3caa7096067
|
|
4
|
+
data.tar.gz: 9ef66e1eee9f894ca08f5842e057d499c3a876ba4771df484034fc47ef33b886
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e85123bfa60e0fde3362574a9340ac24a1a47deda3285604946f0719b169f286c7076a6097388caea6ea1e8eb0c3e8cd140019d17e3c2440ebae6566b9165987
|
|
7
|
+
data.tar.gz: 2da2ab60e881de80ae5e4b94c440ad5b794ae4be62307a0b6f8064707f310ce91ec3006ae767bc7db8cf70706d863ac16adae0c624ea2999b4a347076399358f
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: "dobby actions"
|
|
2
|
+
on:
|
|
3
|
+
issue_comment:
|
|
4
|
+
types: [created]
|
|
5
|
+
jobs:
|
|
6
|
+
pr_commented:
|
|
7
|
+
runs-on: ubuntu-20.04
|
|
8
|
+
if: startsWith(github.event.comment.body, '/dobby')
|
|
9
|
+
|
|
10
|
+
steps:
|
|
11
|
+
- name: 'bump version'
|
|
12
|
+
uses: simplybusiness/dobby@v2.0.0
|
|
13
|
+
env:
|
|
14
|
+
DOBBY_APP_ID: ${{ secrets.DOBBY_APP_ID }}
|
|
15
|
+
DOBBY_PRIVATE_KEY: ${{ secrets.DOBBY_PRIVATE_KEY }}
|
|
16
|
+
VERSION_FILE_PATH: lib/simplycop/version.rb
|
data/.simplycop.yml
CHANGED
|
@@ -4,6 +4,7 @@ inherit_from:
|
|
|
4
4
|
- .simplycop_metaprogramming.yml
|
|
5
5
|
|
|
6
6
|
AllCops:
|
|
7
|
+
TargetRubyVersion: 2.5
|
|
7
8
|
Exclude:
|
|
8
9
|
- 'db/schema.rb'
|
|
9
10
|
- 'vendor/**/*'
|
|
@@ -39,8 +40,6 @@ Layout/HeredocArgumentClosingParenthesis:
|
|
|
39
40
|
Layout/SpaceBeforeBrackets:
|
|
40
41
|
Enabled: true
|
|
41
42
|
|
|
42
|
-
###### COPS REVIEWED ABOVE THIS LINE ######
|
|
43
|
-
|
|
44
43
|
Lint/AmbiguousAssignment:
|
|
45
44
|
Enabled: true
|
|
46
45
|
|
|
@@ -48,146 +47,55 @@ Lint/AmbiguousBlockAssociation:
|
|
|
48
47
|
Exclude:
|
|
49
48
|
- spec/**/*
|
|
50
49
|
|
|
51
|
-
Lint/AmbiguousOperator:
|
|
52
|
-
Enabled: true
|
|
53
|
-
|
|
54
|
-
Lint/AmbiguousRegexpLiteral:
|
|
55
|
-
Enabled: true
|
|
56
|
-
|
|
57
|
-
Lint/BinaryOperatorWithIdenticalOperands:
|
|
58
|
-
Enabled: true
|
|
59
|
-
|
|
60
|
-
Lint/CircularArgumentReference:
|
|
61
|
-
Enabled: true
|
|
62
|
-
|
|
63
|
-
Lint/ConstantDefinitionInBlock:
|
|
64
|
-
Enabled: true
|
|
65
|
-
Exclude:
|
|
66
|
-
- spec/**/*.rb
|
|
67
|
-
|
|
68
|
-
Lint/DeprecatedClassMethods:
|
|
69
|
-
Enabled: true
|
|
70
|
-
|
|
71
50
|
Lint/DeprecatedConstants:
|
|
72
51
|
Enabled: true
|
|
73
52
|
|
|
74
|
-
Lint/DeprecatedOpenSSLConstant:
|
|
75
|
-
Enabled: true
|
|
76
|
-
|
|
77
53
|
Lint/DuplicateBranch:
|
|
78
54
|
Enabled: true
|
|
79
55
|
|
|
80
|
-
Lint/DuplicateElsifCondition:
|
|
81
|
-
Enabled: true
|
|
82
|
-
|
|
83
|
-
Lint/DuplicateHashKey:
|
|
84
|
-
Enabled: false
|
|
85
|
-
|
|
86
|
-
Lint/DuplicateMethods:
|
|
87
|
-
Enabled: true
|
|
88
|
-
Severity: warning
|
|
89
|
-
|
|
90
56
|
Lint/DuplicateRegexpCharacterClassElement:
|
|
91
57
|
Enabled: true
|
|
92
58
|
|
|
93
|
-
Lint/DuplicateRequire:
|
|
94
|
-
Enabled: true
|
|
95
|
-
|
|
96
|
-
Lint/DuplicateRescueException:
|
|
97
|
-
Enabled: true
|
|
98
|
-
|
|
99
59
|
Lint/EmptyBlock:
|
|
100
60
|
Enabled: true
|
|
101
61
|
|
|
102
62
|
Lint/EmptyClass:
|
|
103
63
|
Enabled: true
|
|
104
64
|
|
|
105
|
-
Lint/
|
|
106
|
-
Enabled: true
|
|
107
|
-
|
|
108
|
-
Lint/EmptyFile:
|
|
109
|
-
Enabled: true
|
|
110
|
-
|
|
111
|
-
Lint/FloatComparison:
|
|
112
|
-
Enabled: true
|
|
113
|
-
|
|
114
|
-
Lint/IdentityComparison:
|
|
115
|
-
Enabled: true
|
|
116
|
-
|
|
117
|
-
Lint/ImplicitStringConcatenation:
|
|
65
|
+
Lint/HeredocMethodCallPosition:
|
|
118
66
|
Enabled: true
|
|
119
67
|
|
|
120
|
-
Lint/IneffectiveAccessModifier:
|
|
121
|
-
Enabled: false
|
|
122
|
-
|
|
123
68
|
Lint/LambdaWithoutLiteralBlock:
|
|
124
69
|
Enabled: true
|
|
125
70
|
|
|
126
|
-
Lint/MissingSuper:
|
|
127
|
-
Enabled: false
|
|
128
|
-
|
|
129
|
-
Lint/MixedRegexpCaptureTypes:
|
|
130
|
-
Enabled: true
|
|
131
|
-
|
|
132
71
|
Lint/NoReturnInBeginEndBlocks:
|
|
133
72
|
Enabled: true
|
|
134
73
|
|
|
135
|
-
Lint/
|
|
74
|
+
Lint/NumberedParameterAssignment:
|
|
136
75
|
Enabled: true
|
|
137
76
|
|
|
138
|
-
Lint/
|
|
77
|
+
Lint/OrAssignmentToConstant:
|
|
139
78
|
Enabled: true
|
|
140
79
|
|
|
141
80
|
Lint/RedundantDirGlobSort:
|
|
142
81
|
Enabled: true
|
|
143
82
|
|
|
144
|
-
Lint/
|
|
145
|
-
Enabled: true
|
|
146
|
-
|
|
147
|
-
Lint/StructNewOverride:
|
|
83
|
+
Lint/SymbolConversion:
|
|
148
84
|
Enabled: true
|
|
149
85
|
|
|
150
86
|
Lint/ToEnumArguments:
|
|
151
87
|
Enabled: true
|
|
152
88
|
|
|
153
|
-
Lint/
|
|
154
|
-
Enabled: true
|
|
155
|
-
|
|
156
|
-
Lint/TrailingCommaInAttributeDeclaration:
|
|
89
|
+
Lint/TripleQuotes:
|
|
157
90
|
Enabled: true
|
|
158
91
|
|
|
159
|
-
Lint/UnderscorePrefixedVariableName:
|
|
160
|
-
Enabled: true
|
|
161
|
-
Severity: warning
|
|
162
|
-
|
|
163
92
|
Lint/UnexpectedBlockArity:
|
|
164
93
|
Enabled: true
|
|
165
94
|
|
|
166
95
|
Lint/UnmodifiedReduceAccumulator:
|
|
167
96
|
Enabled: true
|
|
168
97
|
|
|
169
|
-
|
|
170
|
-
Enabled: true
|
|
171
|
-
|
|
172
|
-
Lint/UnusedBlockArgument:
|
|
173
|
-
Enabled: true
|
|
174
|
-
Severity: warning
|
|
175
|
-
|
|
176
|
-
Lint/UselessAccessModifier:
|
|
177
|
-
Enabled: false
|
|
178
|
-
|
|
179
|
-
Lint/UselessAssignment:
|
|
180
|
-
Enabled: true
|
|
181
|
-
Severity: warning
|
|
182
|
-
|
|
183
|
-
Lint/UselessMethodDefinition:
|
|
184
|
-
Enabled: true
|
|
185
|
-
|
|
186
|
-
Lint/UselessTimes:
|
|
187
|
-
Enabled: true
|
|
188
|
-
|
|
189
|
-
Lint/Void:
|
|
190
|
-
Enabled: true
|
|
98
|
+
###### COPS REVIEWED ABOVE THIS LINE ######
|
|
191
99
|
|
|
192
100
|
Metrics/BlockLength:
|
|
193
101
|
Exclude:
|
|
@@ -295,6 +203,9 @@ Style/HashTransformValues:
|
|
|
295
203
|
Style/IfInsideElse:
|
|
296
204
|
Enabled: true
|
|
297
205
|
|
|
206
|
+
Style/IfWithBooleanLiteralBranches:
|
|
207
|
+
Enabled: true
|
|
208
|
+
|
|
298
209
|
Style/KeywordParametersOrder:
|
|
299
210
|
Enabled: true
|
|
300
211
|
|
data/lib/simplycop/version.rb
CHANGED
data/simplycop.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.version = Simplycop::VERSION
|
|
10
10
|
spec.authors = ['Simply Business']
|
|
11
11
|
spec.email = ['tech@simplybusiness.co.uk']
|
|
12
|
-
spec.required_ruby_version = '>= 2.
|
|
12
|
+
spec.required_ruby_version = '>= 2.5'
|
|
13
13
|
spec.license = 'MIT'
|
|
14
14
|
spec.summary = 'Provides a single point of reference for common rubocop rules.'
|
|
15
15
|
spec.description = 'Require this gem in your application to use Simply Business common rubocop rules.'
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
18
18
|
spec.require_paths = ['lib']
|
|
19
19
|
|
|
20
|
-
spec.add_dependency 'rubocop', '~> 1.
|
|
20
|
+
spec.add_dependency 'rubocop', '~> 1.9.1'
|
|
21
21
|
spec.add_dependency 'rubocop-rails', '~> 2.9.0'
|
|
22
22
|
spec.add_dependency 'rubocop-rspec', '~> 2.1.0'
|
|
23
23
|
spec.add_development_dependency 'bundler'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simplycop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Simply Business
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
19
|
+
version: 1.9.1
|
|
20
20
|
type: :runtime
|
|
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: 1.
|
|
26
|
+
version: 1.9.1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rubocop-rails
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -105,6 +105,7 @@ files:
|
|
|
105
105
|
- ".custom_simplycop.yml"
|
|
106
106
|
- ".github/dependabot.yml"
|
|
107
107
|
- ".github/workflows/ci.yml"
|
|
108
|
+
- ".github/workflows/dobby-actions.yml"
|
|
108
109
|
- ".github/workflows/publish_gem.yml"
|
|
109
110
|
- ".github/workflows/version_forget_me_not.yml"
|
|
110
111
|
- ".gitignore"
|
|
@@ -147,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
147
148
|
requirements:
|
|
148
149
|
- - ">="
|
|
149
150
|
- !ruby/object:Gem::Version
|
|
150
|
-
version: 2.
|
|
151
|
+
version: '2.5'
|
|
151
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
153
|
requirements:
|
|
153
154
|
- - ">="
|