lib/undercover/options.rb in undercover-0.6.0 vs lib/undercover/options.rb in undercover-0.6.1

- old
+ new

@@ -16,10 +16,11 @@ OUTPUT_STDOUT = :stdout, # outputs warnings to stdout with exit 1 # OUTPUT_CIRCLEMATOR = :circlemator # posts warnings as review comments ].freeze DEFAULT_FILE_INCLUDE_GLOBS = %w[*.rb *.rake *.ru Rakefile].freeze + DEFAULT_FILE_EXCLUDE_GLOBS = %w[test/* spec/* *_test.rb *_spec.rb].freeze attr_accessor :lcov, :path, :git_dir, :compare, @@ -34,10 +35,10 @@ @enabled_formatters = [OUTPUT_STDOUT] # set defaults self.path = '.' self.git_dir = '.git' self.glob_allow_filters = DEFAULT_FILE_INCLUDE_GLOBS - self.glob_reject_filters = [] + self.glob_reject_filters = DEFAULT_FILE_EXCLUDE_GLOBS end # rubocop:disable Metrics/MethodLength, Metrics/AbcSize def parse(args) args = build_opts(args)