Skip to content

Commit

Permalink
Update rubocop rules and fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
winebarrel committed Jul 12, 2020
1 parent 8e52583 commit 2c099eb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .rubocop.yml
Expand Up @@ -41,3 +41,37 @@ Layout/ClosingHeredocIndentation:
Enabled: false
Style/NumericPredicate:
Enabled: false
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/MixedRegexpCaptureTypes:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Style/AccessorGrouping:
Enabled: true
Style/BisectedAttrAccessor:
Enabled: true
Style/ExponentialNotation:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/RedundantAssignment:
Enabled: true
Style/RedundantFetchBlock:
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/SlicingWithRange:
Enabled: true
3 changes: 1 addition & 2 deletions lib/ridgepole/dsl_parser/context.rb
Expand Up @@ -3,8 +3,7 @@
module Ridgepole
class DSLParser
class Context
attr_reader :__definition
attr_reader :__execute
attr_reader :__definition, :__execute

def initialize(opts = {})
@__working_dir = File.expand_path(opts[:path] ? File.dirname(opts[:path]) : Dir.pwd)
Expand Down

0 comments on commit 2c099eb

Please sign in to comment.