Class: WayOfWorking::PullRequestTemplate::Hdi::GithubAuditRule

Inherits:
Audit::Github::Rules::Base show all
Defined in:
lib/way_of_working/pull_request_template/hdi/github_audit_rule.rb

Overview

This rule checks for the Pull Request template.

Instance Attribute Summary

Attributes inherited from Audit::Github::Rules::Base

#errors, #fix, #name, #rulesets, #warnings

Instance Method Summary collapse

Methods inherited from Audit::Github::Rules::Base

#initialize, source_root, #status, tags, #tags

Constructor Details

This class inherits a constructor from WayOfWorking::Audit::Github::Rules::Base

Instance Method Details

#validateObject



11
12
13
# File 'lib/way_of_working/pull_request_template/hdi/github_audit_rule.rb', line 11

def validate
  @errors << 'No Way of Working Pull Request template found' unless pull_request_template?
end