aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
AgeCommit message (Collapse)Author
2012-03-10Add specialty formulase to inheritance checkAdam Vandenberg
2012-03-01audit: check for gfotran in Formula#deps insteadJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-28audit: automake, autoconf, and libtool are build-time depsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-21audit: flag imake as a build depAdam Vandenberg
2012-02-18audit: use a heredoc for this long lineJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-18audit: tighten xcodebuild SYMROOT checkJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-16audit: warn about ARGV.include? '--devel'Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-16audit: make checksum warnings more clearJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-16audit: add problem countsAdam Vandenberg
2012-02-15audit: warn about correct empty checksum typeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-15audit: only look for empty checksums onceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-15more stringent auditing of checksumsTrevor Wennblom
Closes Homebrew/homebrew#10213. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-13Boost-jam is now part of boost-buildJack Nagel
So remove it, and add/update the appropriate aliases. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-28audit: make boost-jam a build-time dependencyAdam Vandenberg
2012-01-25audit: reorganize some checksJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25audit: make devel check more specificJack Nagel
There are a few false positives where the string 'devel' occurs in other contexts. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25Add `devel` to the DSL, + stable and bottle blocksMisty De Meo
This commit adds a `devel` entry to the DSL, allowing formulae to specify an unstable branch. `devel` takes a block, which should contain standard `url` and `md5` fields (and `version`, if necessary). This must come after the standard DSL fields. This commit also migrates over all formulae currently using `devel` to the new syntax, as well as formulae which used `head` for non-VCS urls. The new syntax is also available for `stable` and `bottle`. `stable` is an option alongside the old syntax. `bottle` replaces the old syntax. Note that the @stable ivar in Formula has been renamed to @standard, and the @bottle ivar has been renamed to @bottle_url. Closes Homebrew/homebrew#9735. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-17audit: check for mercurial dependencyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-02audit: do not complain about --32-bitAdam Vandenberg
2011-12-31audit: check for trailing newlineJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-21audit: remove --strictAdam Vandenberg
2011-12-18Audit: warn about head-only formulaeAdam Vandenberg
2011-12-15audit: hard wrap dep warningJack Nagel
The warning is lengthy, and usually wraps on 80-column terminals. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-08audit: check for hard-coded compilersJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-30audit: only perform GNU URL check on primary URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-30audit: disable GNU url checkJack Nagel
It needs to be reworked to only check the primary URLs, as we are now using ftp.gnu.org as a mirror. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-29audit: smake is also a build toolAdam Vandenberg
2011-11-29audit: check for DB deps tooAdam Vandenberg
2011-11-29audit: warn about more "forbidden" dependenciesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-29audit: check for build-time dependenciesJack Nagel
This can be made more robust in the future when we stop throwing away the ':build' type flag in Formula#depends_on. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-27audit: remove --strictAdam Vandenberg
2011-11-23audit: check for MacPorts patches from trunkJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-21audit.rb: Check version strings by defaultCharlie Sharpsteen
Tired of telling people that version numbers are redundant. Just check it by default since the `--strict` flag to `brew audit` is not well advertised.
2011-11-18audit: check for ARGV.flag? in formulaeJack Nagel
We don't want single letter options like '-v' or '-d' to unintentionally trigger formula-specific options. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-15audit: don't check duplicate URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-02audit: check for build_universal? calls if --universal unusedOleg Oshmyan
Closes Homebrew/homebrew#8123. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-02audit: check for empty sha256 checksumsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-22Remove debian mirror check; it is just noiseAdam Vandenberg
2011-10-18audit: complain more about tabsAdam Vandenberg
2011-10-15audit: check mirror URLsJack Nagel
This will actually throw some possibly unwanted warnings, e.g. whining about using mirrors.kernel.org for Debian software; we might only want that warning for the default URL. Perhaps mirrors deserve their own audit_formula_mirrors, but rather than duplicate code, let's just check them against the standard criteria for now. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-02audit: improve SF 'use_mirror' detectionJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-28audit: match #{prefix}/libexec and prefix+'libexec'Jack Nagel
These were being picked up as just "#{prefix}/lib" and prefix+'lib' due to the eagerness of the regex. Reordering "lib" and "libexec" will take care of it; I couldn't think of a more clever solution. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-21audit: recognize options used with 'ARGV.flag?'Jack Nagel
A few formula use ARGV.flag? instead of ARGV.include?. This made `audit` recognize a few undocumented instances of a '--devel' option, but we can just ignore that like '--HEAD' for now, and change the behavior if we decide they need to be documented explicitly in each formula. cf. Homebrew/homebrew#7456. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-13audit: improve GNU url checkJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-13audit: correctly match SourceForge https URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-12audit: check GNU urlsJack Nagel
We now prefer "ftpmirror.gnu.org" over the main FTP site. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-07-29audit: make version checks strict onlyAdam Vandenberg
2011-06-16be more ruby-likeAdam Vandenberg
2011-06-16audit: check for redundant 'version'Adam Vandenberg
2011-06-13brew audit: check for git://github.com/ urls and warnAdam Vandenberg