| Age | Commit message (Collapse) | Author |
|
|
|
cop and add tests
|
|
audit: Port audit_urls strict rules to rubocop, add tests, autocorrect
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
except at the very beginning, as the audit originally intended.
See https://github.com/Homebrew/legacy-homebrew/pull/45493.
|
|
audit: Port audit_legacy_patches method to rubocop and add tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Allow some specific lowercase words and provide an autocorrect for some
of these rules.
|
|
|
|
|
|
|
|
- The regexp for the "check if formula name is used in formula's
description" cop matches every instance of the formula name if it
exists, whether it's in a word or not.
- For example, the formula `mon` has the description "Monitor
hosts/services/whatever and alert about problems". This makes
`brew audit --strict` complain because it matches "Monitor",
which isn't the formula name! The formula `pass` has the description
"Password manager". Again, the strict audit matches "Password",
which isn't an issue.
- Instead, this change matches on a word boundary, so it will match
`mon:`, or `mon `, but not "Monitor", or, for example, "harmony".
- I've changed the tests to account for this change.
|
|
audit: Port audit_homepage method to rubocop and add tests
|
|
audit: Detect multiline and interpolated strings in formula desc cop
|
|
|
|
|
|
|
|
|
|
Also refactor audit cops into two "departments"
- FormulaAudit
- FormulaAuditStrict
|
|
|
|
|
|
|