Follow up of #5003.
This commit is a small change of document.
Define the default of style provided by Layout/IndentArray cop in example name.
Before submitting the PR make sure the following are checked:
…
Maybe we cannot memorize correctly cop names.
if an incorrect cop name is given with --only or --except options on CLI option,
it just only raises exception. I think it's not friendly.
So I've added its error message to correc…
This is a workaround patch to Travis CI.
This change attempts to resolve the following error.
$ gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.7.3.gem (100%)
Successfully installed rubygems-up...
Follow up of
https://github.com/bbatsov/rubocop/pull/4880#issuecomment-338499947.
This commit is a change of document format for Rails/RequestReferer cop.
Before submitting the PR make sure the following are…
Fixes #5293.
This commit changed the existing test codes and fixed the regression by #5235.
Before submitting the PR make sure the following are checked:
Follow up of https://github.com/bbatsov/rubocop/pull/4880#issuecomment-338499947.
This commit is a change of document format for Rails/Date cop.
Before submitting the PR make sure the following are checked:
…
See https://github.com/bbatsov/rubocop/issues/5273
I forgot an abs. 🙇
Before submitting the PR make sure the following are checked:
Fixes #5261.
Correspondence to use case for include belonging to module was insufficient. This PR added a reproduction test and fixed it.
Before submitting the PR make sure the following are checked:
I would like to use the cop generator in rubocop-rspec. However, the task does not work well on the project now.
This change will make the generator to work on rubocop-rspec.
It changes the following things.
See #5245
regexp node has str node. So the cop should ignore regexp node also.
$ ruby-parse -e /%u/
(regexp
(str "%u")
(regopt))
Before submitting the PR make sure the following…
Command execution methods, such as system, capture3, receive environments variables as a Hash.
And the hash keys should be strings.
Open3.capture3({'FOO' => 'a'}, 'ls') # ok
Open3.capture3({:FOO => 'a'}, 'ls') # TypeErr...
This PR should fix Rails/Presence cop when #present? on #blank? is used in if or unless modifier.
Before submitting the PR make sure the following are checked:
Fixes #5234.
Since there was no test case using class_name option in with_options
block, this PR added it as a reproduction test and fixed it.
Before submitting the PR make sure the following are checked:
…
Style/ExtendSelf was introduced by #5108, but the cop duplicates with Style/ModuleFunction.
So this change reverts the commit (da69b88).
Before submitting the PR make sure the following are checked:
Follow up of https://github.com/bbatsov/rubocop/pull/4880#issuecomment-338499947.
This commit is a change of document format for Rails/ActionFilter cop.
Before submitting the PR make sure the following are ch…
Follow up for https://github.com/bbatsov/rubocop/commit/818104f73e1a987eb3acf8306da90de4ca8f1b57#diff-2fd929361da19daeec655fc29166b32b.
This commit is a change of document for Lint/EndAlignment cop.
I forgot to remove redundant bad e…
Follow up of https://github.com/bbatsov/rubocop/pull/4880#issuecomment-338499947.
This commit is a change of document format for Style/RescueStandardError cop.
Before submitting the PR make sure the following…
JRuby 9.1.15.0 has been released.
http://jruby.org/2017/12/07/jruby-9-1-15-0.html
See #5198
We can fix the problem by using RuboCop::AST::Builder.
Before submitting the PR make sure the following are checked:
Currently, rake parallel and rake default generate rubocop-rspec's documentation. Because the generation task runs after internal investigation, and internal investigation task load rubocop-rspec.
This change fixes the problem. I …
Follow up of https://github.com/bbatsov/rubocop/pull/4880#issuecomment-338499947.
This commit is a change of document format for Style/EmptyElse cop.
Before submitting the PR make sure the following are check…
Follow up of https://github.com/bbatsov/rubocop/pull/4880#issuecomment-338499947.
This commit is a change of document format for Style/ClassAndModuleChildren cop
Before submitting the PR make sure the followi…