222 Commits

Author SHA1 Message Date
Mike McQuaid
bf0ab938e7 Merge pull request #3091 from GauthamGoli/audit_line_rubocop_part_3
audit: Port line_problems to rubocop and add tests part 3
2017-09-05 18:10:02 +01:00
Gautham Goli
4ec26aea40 audit: Port audit_class to rubocop, add tests and autocorrect 2017-09-04 23:43:42 +05:30
Gautham Goli
337d5c6470 audit: Fetch formula name from file path rather than class name in cops 2017-09-04 15:05:43 +05:30
Gautham Goli
b582ed513b audit: Add tests for rubocop methods in line_cop.rb 2017-09-04 15:05:43 +05:30
Gautham Goli
d00c515dd8 audit: Add previously unported GH patch audit rule in Patches cop 2017-08-26 18:06:00 +05:30
JCount
6023e408da Merge pull request #2995 from GauthamGoli/audit_line_rubocop_part_2
audit: Port line_problems to rubocop and add tests part 2
2017-08-23 16:16:07 -04:00
Gautham Goli
db20b0c281 audit: In Cops and their tests convert all multiline strings to heredocs 2017-08-17 11:41:58 +05:30
Gautham Goli
afdd0e2437 add tests for condition dependencies 2017-08-15 16:09:32 +05:30
Gautham Goli
efabd4b5c2 Add tests for MACOS version consts usage 2017-08-15 00:42:56 +05:30
Gautham Goli
2f94d5f499 add test for ARGV.include? 2017-08-15 00:36:37 +05:30
Gautham Goli
3fc6cc1a3a add test for ENV.fortran 2017-08-15 00:32:34 +05:30
Gautham Goli
5744cd9066 add test for inspecting version 2017-08-15 00:29:58 +05:30
Gautham Goli
cfc423e183 add tests for dependencies 2017-08-15 00:27:09 +05:30
Gautham Goli
d2a7314f53 add test for env mod through system call 2017-08-14 23:32:06 +05:30
Gautham Goli
64a929184a add tests for vendored deps 2017-08-14 23:05:00 +05:30
Gautham Goli
063cbe7acd add tests for formula path shortucut 3 2017-08-14 22:44:28 +05:30
Gautham Goli
9c9c280c8a add tests for formula path string 1 2017-08-14 21:45:01 +05:30
Gautham Goli
65ae6bacd8 add tests for hardcoded compilers in ENV 2017-08-14 20:10:45 +05:30
Gautham Goli
77468fdae3 add tests for hard coded compilers in system calls 2017-08-14 19:58:39 +05:30
Gautham Goli
af5cd1a1da add tests for man+'man[1-8]' 2017-08-14 15:41:03 +05:30
Gautham Goli
76f4eccdce add test for using ARGV to check options 2017-08-14 15:22:44 +05:30
Gautham Goli
dc4d10ff6a add test for build.include? having dashed args 2017-08-14 02:49:52 +05:30
Gautham Goli
3ff8be1216 add test for build.include? 2017-08-14 02:47:29 +05:30
Gautham Goli
5a7cbb762f add test for build.with? "--with-foo" 2017-08-14 02:43:54 +05:30
Gautham Goli
02a1406a2e add test for build.without --without-foo 2017-08-14 02:32:29 +05:30
Gautham Goli
3efba57cd9 Add negated? method to formula cop and add tests for negated build.without? 2017-08-14 02:18:46 +05:30
Gautham Goli
e14fedd1b3 Add test for negated build.with? 2017-08-14 02:14:20 +05:30
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
a3219ca09c Add node pattern methods to handle dependency audits in a better way 2017-08-07 16:02:50 +05:30
Gautham Goli
d9c81901c3 audit: Add tests for rubocop methods in line_cop.rb 2017-08-06 18:36:09 +05:30
Gautham Goli
3edae73cd9 audit: Add tests for audit rules ported from line_problems method to rubocops 2017-08-06 18:36:09 +05:30
Gautham Goli
781da49df8 audit: Add tests for audit rules ported from line_problems method to rubocops 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
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
222af82401 Read rubocop offenses as const from corresponding class in tests 2017-07-13 12:43:08 +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