Gautham Goli
ec2b0df10e
Add tests for unless build.with?
2017-08-14 01:55:47 +05:30
Gautham Goli
f968776e84
Add tests for unless build.without?
2017-08-14 01:52:48 +05:30
Gautham Goli
6dad9d8b44
Add test for top level method def
2017-08-14 01:25:44 +05:30
Gautham Goli
7dfe09ccae
Add tests for fileUtils call in system
2017-08-14 01:09:06 +05:30
Gautham Goli
a73c29fef2
add tests for non glob dirs audit
2017-08-14 00:02:44 +05:30
Gautham Goli
77105b809a
Add tests for macOS check
2017-08-13 14:50:29 +05:30
Gautham Goli
686fc514cf
Add tests for assert match and depends_on instance audit rules
2017-08-12 23:28:08 +05:30
Gautham Goli
087c1ca8d6
audit: Port rules from line_problems to rubocop part 4(WIP-3)
2017-08-12 20:50:43 +05:30
Gautham Goli
4295a4ca78
audit: Port rules from line_problems to rubocop part 4(WIP-2)
2017-08-10 19:57:53 +05:30
Gautham Goli
a3219ca09c
Add node pattern methods to handle dependency audits in a better way
2017-08-07 16:02:50 +05:30
Gautham Goli
a92e1eda27
audit: Port rules from line_problems to rubocop part 4(WIP)
2017-08-07 14:08:22 +05:30
Gautham Goli
b8f811cca6
audit: Port rules from line_problems to rubocop part 3
2017-08-06 18:36:09 +05:30
Gautham Goli
b5da76e28d
audit: Port FileUtils, inreplace audit rules in audit_lines to rubocop
2017-08-06 18:36:09 +05:30
Gautham Goli
bc2bcef1ba
audit: Port classname and template comments audit rules from line_problems method to rubocop
2017-08-06 18:36:09 +05:30
Gautham Goli
7614d2cc8b
audit: Port FileUtils, inreplace audit rules in audit_lines to rubocop
2017-08-06 02:28:58 +05:30
Gautham Goli
affd9055c2
audit: Port classname and template comments audit rules from line_problems method to rubocop
2017-08-06 02:28:58 +05:30
Gautham Goli
66ffdb5b06
Refactor legacy_patches_cop to merge external patch audit rules in a single cop and add tests
2017-08-05 21:51:24 +05:30
Gautham Goli
43cec10000
audit: Port patches audit code to a rubocop
2017-08-05 21:51:24 +05:30
JCount
68878d73ef
formula_desc_cop: add 'x86' to VALID_LOWERCASE_WORDS
2017-08-01 11:36:44 -04:00
Mike McQuaid
f4983ab16b
Merge pull request #2975 from GauthamGoli/audit_urls_rubocop_strict
...
audit: Port audit_urls strict rules to rubocop, add tests, autocorrect
2017-08-01 11:39:01 +01:00
Gautham Goli
c575f34d5f
audit: Port audit_urls strict rules to rubocop, add tests and autocorrect
2017-07-30 12:59:37 +05:30
Gautham Goli
e1cb0b43d7
audit: Port dependency rules from line_problems to rubocop and add tests
2017-07-29 16:36:32 +05:30
Gautham Goli
2639b6c556
audit: Update Urls Cop with more rules of audit_urls and corresponding tests
2017-07-25 19:06:36 +05:30
Gautham Goli
b7ddd271e1
audit: Port audit_urls partially to rubocop and add corresponding tests
2017-07-21 20:50:28 +05:30
Gautham Goli
a8f1b02be9
audit: Port audit_options rules for new formulae to rubocop and add test
2017-07-15 17:35:10 +05:30
Gautham Goli
f3923f23ef
audit: Port audit_options strict rules to rubocop and add tests
2017-07-14 21:43:16 +05:30
Gautham Goli
b8adc1a8aa
audit: Port audit_options non-strict rules to rubocop and add tests
2017-07-13 12:41:43 +05:30
Gautham Goli
4ed34f91c2
audit: Port audit_conflicts method to rubocop and add tests
2017-07-07 20:46:57 +05:30
ilovezfs
7013f9dee3
formula_desc_cop: allow formula name in desc
...
except at the very beginning, as the audit originally intended.
See https://github.com/Homebrew/legacy-homebrew/pull/45493 .
2017-06-29 08:14:58 -07:00
Mike McQuaid
f4cdd7a051
Merge pull request #2790 from GauthamGoli/audit_legacy_patches_rubocop
...
audit: Port audit_legacy_patches method to rubocop and add tests
2017-06-25 08:54:59 +01:00
Gautham Goli
2e82754776
audit: Port audit_legacy_patches method to rubocop and add tests
2017-06-24 17:06:26 +05:30
Mike McQuaid
44c85c4683
Merge pull request #2801 from apjanke/formula-cop-uniform-_body_node-param
...
rubocops: refactor to use consistent _body_node parameter name
2017-06-21 08:08:49 +01:00
Andrew Janke
b5a0cfd861
rubocops: use consistent (_)body_node parameter name
2017-06-19 23:37:32 -04:00
Gautham Goli
0e1c88e7ae
Refactor Checksum cop to add autocorrect method
2017-06-16 19:45:16 +05:30
Gautham Goli
77da75e7d6
Simplify Checksum cop by auditing all checksums
2017-06-16 19:45:16 +05:30
Gautham Goli
4d7a983415
audit: Port audit_checksum method to rubocop and add tests
2017-06-16 19:45:16 +05:30
Isabell Long
b2f2fbfa63
format_desc_cop: whitelist more lowercase words
...
- From `homebrew-core` PR 14229, we decided to whitelist more words so
that reordering to appease "description must start with a capital
letter" wasn't so clunky.
2017-06-13 12:37:22 +01:00
Mike McQuaid
7a0aff1080
Autocorrect Rubocop Style/PerlBackrefs.
2017-06-10 20:23:20 +03:00
Mike McQuaid
113a7a81d0
Revert "audit: Port audit_checksum method to rubocop and add tests"
2017-06-09 11:16:11 +03:00
Gautham Goli
d09d5ecc55
audit: Port audit_checksum method to rubocop and add tests
2017-06-08 21:53:46 +05:30
Gautham Goli
134da5b8c2
Add methods in FormulaCop to find block nodes
2017-06-08 19:50:04 +05:30
Mike McQuaid
c572081f8b
formula_desc_cop: tweak some rules.
...
Allow some specific lowercase words and provide an autocorrect for some
of these rules.
2017-06-08 15:13:10 +03:00
Mike McQuaid
b7d007fb50
Merge pull request #2724 from MikeMcQuaid/capital-desc
...
formula_desc_cop: desc should be capitalised.
2017-06-03 09:57:26 +01:00
Mike McQuaid
82b113cdd0
formula_desc_cop: desc should be capitalised.
...
Note that the formula description field should start with a capital
letter.
2017-06-02 22:25:07 +01:00
Markus Reiter
2d6ae61314
Re-revert "Fix operator spacing."
2017-06-02 19:22:05 +02:00
Gautham Goli
cf848a14d2
audit: Port audit_caveats method to rubocop and add tests
2017-05-31 22:59:48 +05:30
Gautham Goli
cfbdc17cb7
Use relevant methods to consolidate logic in text_cop.rb
2017-05-30 15:28:05 +05:30
Gautham Goli
88f21b84f4
Refactor and add more methods in formula_cop.rb
2017-05-30 15:28:05 +05:30
Gautham Goli
51f2338dd5
audit: Port audit_text method to rubocop and add tests
2017-05-30 15:28:05 +05:30
Gautham Goli
5b97a8f2e1
Add methods in FormulaCop to find method nodes, dependency nodes
2017-05-30 15:28:05 +05:30