aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/rubocops
AgeCommit message (Collapse)Author
2017-08-07Add node pattern methods to handle dependency audits in a better wayGautham Goli
2017-08-05Refactor legacy_patches_cop to merge external patch audit rules in a single ↵Gautham Goli
cop and add tests
2017-08-01Merge pull request #2975 from GauthamGoli/audit_urls_rubocop_strictMike McQuaid
audit: Port audit_urls strict rules to rubocop, add tests, autocorrect
2017-07-30audit: Port audit_urls strict rules to rubocop, add tests and autocorrectGautham Goli
2017-07-29audit: Port dependency rules from line_problems to rubocop and add testsGautham Goli
2017-07-25audit: Update Urls Cop with more rules of audit_urls and corresponding testsGautham Goli
2017-07-21audit: Port audit_urls partially to rubocop and add corresponding testsGautham Goli
2017-07-15audit: Port audit_options rules for new formulae to rubocop and add testGautham Goli
2017-07-14audit: Port audit_options strict rules to rubocop and add testsGautham Goli
2017-07-13Read rubocop offenses as const from corresponding class in testsGautham Goli
2017-07-13audit: Port audit_options non-strict rules to rubocop and add testsGautham Goli
2017-07-07audit: Port audit_conflicts method to rubocop and add testsGautham Goli
2017-06-29formula_desc_cop: allow formula name in descilovezfs
except at the very beginning, as the audit originally intended. See https://github.com/Homebrew/legacy-homebrew/pull/45493.
2017-06-25Merge pull request #2790 from GauthamGoli/audit_legacy_patches_rubocopMike McQuaid
audit: Port audit_legacy_patches method to rubocop and add tests
2017-06-24audit: Port audit_legacy_patches method to rubocop and add testsGautham Goli
2017-06-16Refactor Checksum cop to add autocorrect methodGautham Goli
2017-06-16Simplify Checksum cop by auditing all checksumsGautham Goli
2017-06-16audit: Port audit_checksum method to rubocop and add testsGautham Goli
2017-06-09Revert "audit: Port audit_checksum method to rubocop and add tests"Mike McQuaid
2017-06-08audit: Port audit_checksum method to rubocop and add testsGautham Goli
2017-06-08formula_desc_cop: tweak some rules.Mike McQuaid
Allow some specific lowercase words and provide an autocorrect for some of these rules.
2017-06-02Re-revert "Fix operator spacing."Markus Reiter
2017-05-31audit: Port audit_caveats method to rubocop and add testsGautham Goli
2017-05-30audit: Port audit_text method to rubocop and add testsGautham Goli
2017-05-29Match the "formula name in description" on word boundariesIsabell Long
- 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.
2017-05-15Merge pull request #2631 from GauthamGoli/audit_homepage_rubocop1.2.1Mike McQuaid
audit: Port audit_homepage method to rubocop and add tests
2017-05-15Merge pull request #2628 from GauthamGoli/formula_desc_cop_fixMike McQuaid
audit: Detect multiline and interpolated strings in formula desc cop
2017-05-14Port audit_homepage method to rubocop and add testsGautham Goli
2017-05-13Update string_content method to support multiline strings, add test for sameGautham Goli
2017-05-13Add autocorrect method for ComponentsOrder rubocop and testsGautham Goli
2017-05-03Add `--only-cops`,`--except-cops` options for brew style and simplify cop namesGautham Goli
2017-05-02Add `--only-cops`,`--except-cops` options for brew auditGautham Goli
Also refactor audit cops into two "departments" - FormulaAudit - FormulaAuditStrict
2017-04-22Port audit_components method to rubocops and add corresponding testsGautham Goli
2017-03-26Wrap rubocop specific code into methods inside FormulaCopGautham Goli
2017-03-26Add RSpec tests for bottle_block and formula_desc copsGautham Goli