Class: CodeownerValidator::Tasks::FileExistsChecker
- Includes:
- Group
- Defined in:
- lib/codeowner_validator/tasks/file_exists_checker.rb
Overview
Public: The file existence checker executes an evaluation on the code owners file looking for references to non-existent files within the repository
Instance Method Summary collapse
Methods inherited from Base
#codeowners, #execute, #initialize
Methods included from UtilityHelper
Methods included from Command
Methods included from Logging
#log_command, #log_error, #log_info, #log_stderr, #log_verbose, #log_warn, #logger, #program_name
Constructor Details
This class inherits a constructor from CodeownerValidator::Tasks::Base
Instance Method Details
#comments ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/codeowner_validator/tasks/file_exists_checker.rb', line 19 def comments comments = [] codeowners.invalid_reference_lines.each do |line| file_name = line.pattern? ? line.pattern : line msg = "line #{line.line_number}: '#{file_name}' does not match any files in the repository" comments << Comment.build( comment: msg, type: Comment::TYPE_ERROR ) end comments end |
#summary ⇒ Object
14 15 16 |
# File 'lib/codeowner_validator/tasks/file_exists_checker.rb', line 14 def summary 'Executing File Exists Checker' end |