lib/rubocop/cop/base.rb in rubocop-1.20.0 vs lib/rubocop/cop/base.rb in rubocop-1.21.0

- old
+ new

@@ -220,11 +220,11 @@ @config.target_rails_version end def relevant_file?(file) file == RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME || - file_name_matches_any?(file, 'Include', true) && - !file_name_matches_any?(file, 'Exclude', false) + (file_name_matches_any?(file, 'Include', true) && + !file_name_matches_any?(file, 'Exclude', false)) end def excluded_file?(file) !relevant_file?(file) end