Skip to content

Commit de79c17

Browse files
committed
fix rubocop issues
* based on garethr/puppet-module-skeleton#136
1 parent 0d07759 commit de79c17

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

.rubocop.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Lint/AmbiguousRegexpLiteral:
7272
Enabled: false
7373

7474
# DISABLED
75-
Lint/Eval:
75+
Security/Eval:
7676
Enabled: false
7777

7878
# DISABLED
@@ -168,6 +168,9 @@ Style/ClassAndModuleChildren:
168168
Style/ClassCheck:
169169
Enabled: false
170170

171+
Metrics/BlockLength:
172+
Enabled: false
173+
171174
Metrics/ClassLength:
172175
Enabled: false
173176

@@ -211,7 +214,7 @@ Style/SpaceInsideParens:
211214
Style/LeadingCommentSpace:
212215
Enabled: false
213216

214-
Style/SingleSpaceBeforeFirstArg:
217+
Style/SpaceBeforeFirstArg:
215218
Enabled: false
216219

217220
Style/SpaceAfterColon:
@@ -220,7 +223,7 @@ Style/SpaceAfterColon:
220223
Style/SpaceAfterComma:
221224
Enabled: false
222225

223-
Style/SpaceAfterControlKeyword:
226+
Style/SpaceAroundKeyword:
224227
Enabled: false
225228

226229
Style/SpaceAfterMethodName:
@@ -268,9 +271,6 @@ Style/Documentation:
268271
Style/DefWithParentheses:
269272
Enabled: false
270273

271-
Style/DeprecatedHashMethods:
272-
Enabled: false
273-
274274
Style/DotPosition:
275275
Enabled: false
276276

@@ -308,9 +308,6 @@ Style/EmptyLiteral:
308308
Metrics/LineLength:
309309
Enabled: false
310310

311-
Style/MethodCallParentheses:
312-
Enabled: false
313-
314311
Style/MethodDefParentheses:
315312
Enabled: false
316313

@@ -323,7 +320,10 @@ Style/TrailingWhitespace:
323320
Style/StringLiterals:
324321
Enabled: false
325322

326-
Style/TrailingComma:
323+
Style/TrailingCommaInLiteral:
324+
Enabled: false
325+
326+
Style/TrailingCommaInArguments:
327327
Enabled: false
328328

329329
Style/GlobalVars:
@@ -464,9 +464,6 @@ Metrics/ParameterLists:
464464
Lint/RequireParentheses:
465465
Enabled: false
466466

467-
Lint/SpaceBeforeFirstArg:
468-
Enabled: false
469-
470467
Style/ModuleFunction:
471468
Enabled: false
472469

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ group :test do
88
gem "puppetlabs_spec_helper"
99
gem "metadata-json-lint"
1010
gem "rspec-puppet-facts"
11-
gem 'rubocop', '0.33.0'
11+
gem 'rubocop', '> 0.33.0'
1212
gem 'simplecov', '>= 0.11.0'
1313
gem 'simplecov-console'
1414
gem 'librarian-puppet' , '>=2.0'

0 commit comments

Comments
 (0)