aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/style.rb
AgeCommit message (Collapse)Author
2018-02-01docs: add more missing option descriptionsEricFromCanada
and improve wording or formatting where necessary.
2018-01-15rubocop 0.52.1Mike McQuaid
2018-01-07Use parser 2.4.0.0Mike McQuaid
This matches the version that supports Ruby 2.3.3 syntax (which is the version we use).
2017-10-10Set RuboCop maximum to current maximum.Markus Reiter
2017-10-08Clean up code style and remove `.rubocop_todo.yml`.Markus Reiter
2017-09-20audit: Use version pinned by brew while executing rubocop cliGautham Goli
2017-07-18Add a rubocop config file to control cops' execution in audit and styleGautham Goli
2017-07-15style: disable NewFormulaAudit cops' execution by default unless specifiedGautham Goli
2017-07-07Merge pull request #2853 from GauthamGoli/disable-strict-cops-brew-styleMike McQuaid
style: Don't run FormulaAuditStrict cops when `brew style foo` cmd is executed
2017-07-03style: Don't run FormulaAuditStrict cops when `brew style some_formula` cmd ↵Gautham Goli
is executed
2017-06-30audit: Don't run audit methods when `--only-cops` is passedGautham Goli
2017-06-12Autocorrect Rubocop Style/SpecialGlobalVars.Mike McQuaid
2017-06-03Fix `rubocop` in `brew audit`.Markus Reiter
2017-05-29Use parallel RuboCopMike McQuaid
This requires updating to Rubocop 0.49.0 which will require some fixes to rules, in Homebrew/brew and Homebrew/homebrew-core but opening this for now so I remember.
2017-05-29Use `XDG_CACHE_HOME` for RuboCop.Markus Reiter
2017-05-08Remove `to_s` from some `Pathname`s.Markus Reiter
2017-05-07Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"Mike McQuaid
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07Vendor all Homebrew's gems.Mike McQuaid
Homebrew's actually ended up using a fair few gems. While we want to avoid Bundler at runtime (and this PR still does that, in fact uses Bundler even less at runtime than it did before) writing our own version to use at build-time seems redundant.
2017-05-03style: fix audit --onlineMike McQuaid
This passed a symbol to `:except_cops` which caused a :boom:.
2017-05-03style: don't require rubocop until installed.Mike McQuaid
This avoids an error when RuboCop installed installed yet. CC @GauthamGoli FYI.
2017-05-03Add `--only-cops`,`--except-cops` options for brew style and simplify cop namesGautham Goli
2017-05-02Add `--only-cops`,`--except-cops` options for brew auditGautham Goli
Also refactor audit cops into two "departments" - FormulaAudit - FormulaAuditStrict
2017-05-02Let cops run without --strict flagGautham Goli
2017-03-08style: improve Rubocop error handling.Mike McQuaid
- Check if the JSON is definitely invalid (< 2 characters) - Output the arguments that were passed to Rubocop
2017-02-12Use constants for RuboCop version.Markus Reiter
2017-01-27style: update rubocop to 0.47.1Dominyk Tiller
2016-11-20Replace Utils::JSON with corelib JSON calls.William Woodruff
2016-11-13Update RuboCop to 0.45.0.Markus Reiter
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-02Use `module_function` for commands.Markus Reiter
2016-10-01Fix JSON output handling.Mike McQuaid
2016-10-01Use Library/.rubocop.yml file.Mike McQuaid
This allows having a shared style that’s use for Homebrew/brew and taps which can be overridden by Homebrew/brew.
2016-09-29`cd` to `HOMEBREW_LIBRARY` is not needed anymore for RuboCop.Markus Reiter
2016-09-29Use separate `.rubocop.yml` in `Library/Taps` and `Library/Homebrew`.Markus Reiter
2016-09-29Use separate RuboCop configs for formulae and core code.Markus Reiter
2016-09-23RuboCop has to be run inside `HOMEBREW_LIBRARY`.Markus Reiter
2016-09-23Update `rubocop` dependency to `0.43.0`.Markus Reiter
2016-09-19style: no args default to Library/Homebrew.Mike McQuaid
2016-09-19style: don't require HOMEBREW_DEVELOPER to fix.Mike McQuaid
2016-09-19style: allow passing taps as arguments.Mike McQuaid
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-07-16audit: prevent crash from nil exitstatus (#532)Margaret Lewicka
If rubocop invocation from brew audit exits with nil exitstatus, brew audit fails with 'undefined method `>' for nil:NilClass'.
2016-07-12style: use RuboCop 0.41.2, adjust defaults (#489)Martin Afanasjew
Changes to our style configuration: - Consolidate all rules related to Ruby 1.8 compatibility in one place. - Codify our de-facto preference for `alias_method` over `alias` (drops offense count by 54 after turning this on). - Drop `Style/SignalException` as `only_raise` has been the new default for quite a while (since RuboCop 0.37.0).
2016-07-04style: use RuboCop 0.41.1 (#433)Martin Afanasjew
Tweak `Style/NumericLiteralPrefix` cop settings as we're using octal literals a lot (both in formulae and the package manager) for file permissions and aren't ready just yet to transition them to the more beginner-friendly `0o` prefix (instead of the more obscure `0` prefix).
2016-06-01style: use RuboCop 0.40Martin Afanasjew
2016-04-21brew-audit: pull style checks in to main audit outputAndrew Janke
This collects all violations for each formula in a single place, instead of doing `brew style` outputs for all formulae first, and then the other audit checks. Closes #112. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-14style: use rubocop 0.39Dominyk Tiller
(#85)
2016-02-13style: update rubocop to 0.37.2Dominyk Tiller
Closes Homebrew/homebrew#49084. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-17Rubocop: upgrade to version 0.36.0Bob W. Hogg
Stop using Style/TrailingComma as it is no longer recognized and start using Style/TrailingCommaInArguments and Style/TrailingCommaInLiteral instead. Closes Homebrew/homebrew#48144. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-10rubocop: update to 0.35.1Dominyk Tiller