aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/rubocops
AgeCommit message (Collapse)Author
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-08Add methods in FormulaCop to find block nodesGautham 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-03Merge pull request #2724 from MikeMcQuaid/capital-descMike McQuaid
formula_desc_cop: desc should be capitalised.
2017-06-02formula_desc_cop: desc should be capitalised.Mike McQuaid
Note that the formula description field should start with a capital letter.
2017-06-02Re-revert "Fix operator spacing."Markus Reiter
2017-05-31audit: Port audit_caveats method to rubocop and add testsGautham Goli
2017-05-30Use relevant methods to consolidate logic in text_cop.rbGautham Goli
2017-05-30Refactor and add more methods in formula_cop.rbGautham Goli
2017-05-30audit: Port audit_text method to rubocop and add testsGautham Goli
2017-05-30Add methods in FormulaCop to find method nodes, dependency nodesGautham Goli
2017-05-29Fixup all RuboCop warnings.Mike McQuaid
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-26Encapsulate formula desc offense checking logic into methodsGautham Goli
2017-03-08Create FormulaCop base class to reuse helper functions in custom copsGautham Goli
2017-03-02Port audit_desc rules to copGautham Goli
2017-02-12Update rubocop configGautham Goli
2017-02-06Update docs and manpages to include --fix optionGautham Goli
2017-01-18Add --fix option to brew audit commandGautham Goli
2017-01-18Add custom cop to refactor revision to rebuild in bottle blockGautham Goli