Class: WayOfWorking::ReadmeBadge::GithubAuditRule
- Inherits:
-
Audit::Github::Rules::Base
- Object
- Audit::Github::Rules::Base
- WayOfWorking::ReadmeBadge::GithubAuditRule
- Defined in:
- lib/way_of_working/readme_badge/github_audit_rule.rb
Overview
This rule checks for a README and Way of Working 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
10 11 12 13 |
# File 'lib/way_of_working/readme_badge/github_audit_rule.rb', line 10 def validate @errors << 'No README' if readme_content.nil? @errors << 'No Way of Working README Badge' unless readme_way_of_working_badge? end |