lib/codeowner_validator/code_owners.rb
# Public: Returns an [Array] of patterns that have no files associated to them
#
# @return [Array] [Array] of patterns that have no files associated to them
Returns an [Array] of patterns that have no files associated to them
Returns an [ Array ] of patterns that have no files associated to them
def useless_pattern
      @useless_pattern ||=
        list.select do |line|
          line.pattern? && !pattern_has_files(line.pattern)
        end
    end
def useless_pattern @useless_pattern ||= list . select do | line | line . pattern? && ! pattern_has_files ( line . pattern ) end end
Public: Returns an [Array] of patterns that have no files associated to them
Public : Returns an [ Array ] of patterns that have no files associated to them
of patterns that have no files associated to them
of patterns that have no files associated to them
Array