Skip to content

Commit

Permalink
add default excludes for specs
Browse files Browse the repository at this point in the history
  • Loading branch information
grodowski committed Dec 13, 2024
1 parent f268e47 commit 2f8865e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/undercover/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Options # rubocop:disable Metrics/ClassLength
].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,
Expand All @@ -36,7 +37,7 @@ def initialize
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
Expand Down

0 comments on commit 2f8865e

Please sign in to comment.