lib/code_ownership/private.rb in code_ownership-1.29.3 vs lib/code_ownership/private.rb in code_ownership-1.30.0

- old
+ new

@@ -8,10 +8,11 @@ require 'code_ownership/private/parse_js_packages' require 'code_ownership/private/validations/interface' require 'code_ownership/private/validations/files_have_owners' require 'code_ownership/private/validations/github_codeowners_up_to_date' require 'code_ownership/private/validations/files_have_unique_owners' +require 'code_ownership/private/validations/no_overlapping_globs' require 'code_ownership/private/ownership_mappers/interface' require 'code_ownership/private/ownership_mappers/file_annotations' require 'code_ownership/private/ownership_mappers/team_globs' require 'code_ownership/private/ownership_mappers/package_ownership' require 'code_ownership/private/ownership_mappers/js_package_ownership' @@ -37,9 +38,10 @@ def self.validate!(files:, autocorrect: true, stage_changes: true) validators = [ Validations::FilesHaveOwners.new, Validations::FilesHaveUniqueOwners.new, Validations::GithubCodeownersUpToDate.new, + Validations::NoOverlappingGlobs.new, ] errors = validators.flat_map do |validator| validator.validation_errors( files: files,