aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
AgeCommit message (Collapse)Author
2016-11-16Merge pull request #1522 from MikeMcQuaid/audit-one-previous-commit1.1.1Mike McQuaid
audit: only check previous formula version.
2016-11-16audit: only check previous formula version.Mike McQuaid
For calculating the stable/devel versions this should be sufficient as it's looking at `origin/master` so for a e.g. unmerged pull request this will stop complaining about mistakes outside the pull request itself. This will silence all warnings for historic version mistakes (i.e. before these audit checks were all enabled) which is normally a bad thing but as this case would rely on modifying history to complete is a good one.
2016-11-16audit: check that there are any stable revisions.Mike McQuaid
Fixes the exception if `revision_map[formula.stable.version]` is `nil`.
2016-11-15audit: fix "version should not decrease" (again).Mike McQuaid
- output the max version and current version to make the message more obvious. - Don't compare the development spec version to the formula version and then complain the formula version is lower (it should always be!)
2016-11-13audit: fix "version should not decrease" check.Mike McQuaid
Fix the "version should not decrease" check so it correctly handles `version_scheme`s. Fixes #1489.
2016-11-03audit: Escape interpolated string in regexpBaptiste Fontaine
This avoids issues with names containing special characters like e.g. [ Fixes #1431
2016-11-03Correct a few typosMandar Gokhale
...and update man pages where applicable
2016-11-02Merge pull request #1424 from MikeMcQuaid/audit-more-test-systemMike McQuaid
audit: check more unscoped test calls.
2016-11-02audit: restore check that was lost in #927Steven Peters
This audit check ensures that certain build dependencies are explicitly marked either as `:build` or `:run`. It seems to have been lost in #927. It was also adjusted in #1290.
2016-11-02audit: stricter test system calls check.Mike McQuaid
Ensure that the name is suffixed with whitespace or quotes.
2016-11-02audit: check more unscoped test calls.Mike McQuaid
Also check `def test`, `shell_output`, `pipe_output` and method calls using parentheses.
2016-10-30audit: don't check new formulae revision/versions.Baptiste Fontaine
2016-10-30audit: check the version does not decrease.Mike McQuaid
This will prevent brew upgrade from working correctly.
2016-10-30Merge pull request #1402 from MikeMcQuaid/audit-system-testMike McQuaid
audit: check test system calls are fully scoped.
2016-10-30Merge pull request #1367 from MikeMcQuaid/audit-check-master-branchMike McQuaid
audit: check for master branch tar/zipballs.
2016-10-30Revert "audit: check the version does not decrease."Mike McQuaid
2016-10-29audit: check test system calls are fully scoped.Mike McQuaid
This doesn't matter for everything but it does for the binaries that are installed. Have a limited name/alias check when not installed and a better one that iterates bin/sbin if installed.
2016-10-29audit: check for master branch tar/zipballs.Mike McQuaid
These have unstable checksums and aren't the tagged, stable releases we require.
2016-10-29Merge pull request #1366 from MikeMcQuaid/audit-check-version-decreaseMike McQuaid
audit: check the version does not decrease.
2016-10-25Merge pull request #1365 from MikeMcQuaid/audit-stable-url-betaMike McQuaid
audit: check for alpha/beta/rc usage in URLs.
2016-10-24Don’t use bare percent literals.Markus Reiter
2016-10-24audit: check for alpha/beta/rc usage in URLs.Mike McQuaid
Stable URLs should not use unstable versions.
2016-10-24audit: check the version does not decrease.Mike McQuaid
This will prevent `brew upgrade` from working correctly.
2016-10-22Update Rubocop style.Mike McQuaid
Another look at the current Rubocop rules and how they fit with our existing and desired future style. Almost all of these changes were automatic. Split some rules between formulae/brew where brew doesn't have millions of cases that need fixed.
2016-10-18audit: don't complain about trailing whitespace.Mike McQuaid
This is handled by `brew style` now.
2016-10-15Fix when clause ordering.Max Nordlund
2016-10-14Fix wrong ordering on when clauses in audit.rbMax Nordlund
It looks like a rebase/merge conflict remmenet.
2016-10-12Deprecate apr requirement.Mike McQuaid
It's not used on enough configurations now that there's little point in keeping it around. See e.g. `:autoconf` for prior art.
2016-10-05audit: forbid `deprecated_option` in new formulaeJonathan Chang
2016-10-02Use `module_function` for commands.Markus Reiter
2016-09-25RuboCop: Style/IfUnlessModifierMarkus Reiter
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-23Fix Style/GuardClause.Markus Reiter
2016-09-23Fix Performance/FixedSize.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-11dev-cmd/audit: fix Rubocop warnings.Mike McQuaid
2016-09-08Move developer-focused commands to dev-cmd.Mike McQuaid