Skip to content

Commit

Permalink
Remove line, the "." was making to add all paths
Browse files Browse the repository at this point in the history
Avoid comma after the last item of an array

Fix cucumber tests adding root path as default when no include paths are sent
  • Loading branch information
frnico33 committed Jul 2, 2021
1 parent aa28c52 commit 7d2dda5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/code_climate_reek
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ class CodeClimateToReek
# we have to exit with a zero for both failure and success.
ENGINE_CONFIGURATION = [
'--failure-exit-code', '0',
'--success-exit-code', '0',
'.'
'--success-exit-code', '0'
].freeze

attr_reader :configuration_file_path, :include_paths_key, :include_paths_default

def initialize(configuration_file_path: '/config.json',
include_paths_key: 'include_paths',
include_paths_default: [])
include_paths_default: ['.'])
@configuration_file_path = configuration_file_path
@include_paths_key = include_paths_key
@include_paths_default = include_paths_default
Expand Down

0 comments on commit 7d2dda5

Please sign in to comment.