aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
AgeCommit message (Collapse)Author
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
2011-06-06brew audit: also check for spaces in Amazon formulaeAdam Vandenberg
2011-05-31brew-audit: do not abort after first brew with errorsAdam Vandenberg
2011-05-27audit exits with status 1 if there are problemsJack Nagel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-23Fix audit for new universal handlingAdam Vandenberg
2011-04-04brew audit: --strict warning for using $ in caveatsAdam Vandenberg
For multiple lines of commands to enter at a prompt, don't use $ as a prompt marker to make it easier to copy/paste.
2011-04-01Fix brew-audit Fortran checkCharlie Sharpsteen
The Fortran regex only allowed for trailing whitespace after: depends_on 'gfortran' This missed conditional dependencies, such as: depends_on 'gfortran' if something? Such a dependency was present in the NetCDF formula. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-28reword auditAdam Vandenberg
2011-03-21update manpage for brew audit --strictAdam Vandenberg
This removes the single use of 'brew audit --warn' and changes it to --strict as well.
2011-03-21brew audit: add strict check for <Formula spacingAdam Vandenberg
2011-03-21Add audit for xcodebuild.Adam Vandenberg
xcodebuild should be passed an explicit SYMROOT, since the user can override this. Also added --strict, so certain audits can be ignored in most cases (including this one.)
2011-03-15brew audit: check that homepage includes the protocolAdam Vandenberg
2011-03-12brew audit: check for missing depsAdam Vandenberg
2011-03-12brew audit - check for depends_on 'gfortran'Charlie Sharpsteen
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12audit - check formula permissionsAdam Vandenberg
2011-03-12Some CleanupMax Howell
2011-03-12Move brew-audit to cmdsAdam Vandenberg