Class: WayOfWorking::CodeOfConduct::ContributorCovenant::GithubAuditRule
- Inherits:
-
Audit::Github::Rules::Base
- Object
- Audit::Github::Rules::Base
- WayOfWorking::CodeOfConduct::ContributorCovenant::GithubAuditRule
- Defined in:
- lib/way_of_working/code_of_conduct/contributor_covenant/github_audit_rule.rb
Overview
This rule checks for the MegaLinter workflow action and README badge.
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
#validate ⇒ Object
11 12 13 |
# File 'lib/way_of_working/code_of_conduct/contributor_covenant/github_audit_rule.rb', line 11 def validate @errors << 'No Contributor Covenant code of conduct found' unless code_of_conduct? end |