All Versions
151
Latest Version
Avg Release Cycle
7 days
Latest Release
1564 days ago
Changelog History
Page 15
Changelog History
Page 15
-
v0.9.0 Changes
July 01, 2013๐ New features
- Introduced formatter feature, enables custom formatted output and multiple outputs.
- โ Added progress formatter and now it's the default. (
--format progress
). - โ Added JSON formatter. (
--format json
). - โ Added clang style formatter showing the offending source. code. (
--format clang
). Theclang
formatter marks a whole range rather than just the starting position, to indicate more clearly where the problem is. - โ Added
-f
/--format
option to specify formatter. - โ Added
-o
/--out
option to specify output file for each formatter. - โ Added
-r/--require
option to inject external Ruby code into RuboCop. - โ Added
-V/--verbose-version
option that displays Parser version and Ruby version as well. - โ Added
-R/--rails
option that enables extra Rails-specific cops. - โ Added support for auto-correction of some offences with
-a
/--auto-correct
. - ๐ New cop
CaseEquality
checks for explicit use of===
. - ๐ New cop
AssignmentInCondition
checks for assignment in conditions. - ๐ New cop
EndAlignment
tracks misalignedend
keywords. - ๐ New cop
Void
tracks uses of literals/variables/operators in possibly void context. - ๐ New cop
Documentation
checks for top level class/module doc comments. - ๐ New cop
UnreachableCode
tracks unreachable code segments. - ๐ New cop
MethodCallParentheses
tracks unwanted braces in method calls. - ๐ New cop
UnusedLocalVariable
tracks unused local variables for each scope. - ๐ New cop
ShadowingOuterLocalVariable
tracks use of the same name as outer local variables for block arguments or block local variables. - ๐ New cop
WhileUntilDo
tracks uses ofdo
with multi-linewhile/until
. - ๐ New cop
CharacterLiteral
tracks uses of character literals (?x
). - ๐ New cop
EndInMethod
tracks uses ofEND
in method definitions. - ๐ New cop
LiteralInCondition
tracks uses of literals in the conditions ofif/while/until
. - ๐ New cop
BeginBlock
tracks uses ofBEGIN
blocks. - ๐ New cop
EndBlock
tracks uses ofEND
blocks. - ๐ New cop
DotPosition
tracks the dot position in multi-line method calls. - ๐ New cop
Attr
tracks uses ofModule#attr
. - โ Add support for auto-correction of some offences with
-a
/--auto-correct
.
๐ Changes
- ๐ Deprecated
-e
/--emacs
option. (Use--format emacs
instead). - 0๏ธโฃ Made
progress
formatter the default. - ๐จ Most formatters (
progress
,simple
andclang
) now print relative file paths if the paths are under the current working directory. - ๐
Migrate all cops to new namespaces.
Rubocop::Cop::Lint
is for cops that emit warnings.Rubocop::Cop::Style
is for cops that do not belong in other namespaces. - ๐ง Merge
FavorPercentR
andPercentR
into one cop calledRegexpLiteral
, and add configuration parameterMaxSlashes
. - โ Add
CountKeywordArgs
configuration option toParameterLists
cop.
๐ Bugs fixed
- ๐ #239: Fixed double quotes false positives.
- #233: Report syntax cop offences.
- ๐ Fix off-by-one error in favor_modifier.
- #229: Recognize a line with CR+LF as a blank line in AccessControl cop.
- #235: Handle multiple constant assignment in ConstantName cop.
- #246: Correct handling of unicode escapes within double quotes.
- ๐ Fix crashes in Blocks, CaseEquality, CaseIndentation, ClassAndModuleCamelCase, ClassMethods, CollectionMethods, and ColonMethodCall.
- #263: Do not check for space around operators called with method syntax.
- #271: Always allow line breaks inside hash literal braces.
- ๐ #270: Fixed a false positive in ParenthesesAroundCondition.
- #288: Get config parameter AllCops/Excludes from highest config file in path.
- #276: Let columns start at 1 instead of 0 in all output of column numbers.
- #292: Don't check non-regular files (like sockets, etc).
- ๐ Fix crashes in WordArray on arrays of character literals such as
[?\r, ?\n]
. - ๐ Fix crashes in Documentation on empty modules.
-
v0.8.3 Changes
June 18, 2013๐ Bug fixes
- ๐ Lock Parser dependency to version 2.0.0.beta5.
-
v0.8.2 Changes
June 05, 2013๐ New features
- ๐ New cop
BlockNesting
checks for excessive block nesting.
๐ Bug fixes
- Correct calculation of whether a modifier version of a conditional statement will fit.
- ๐ Fix an error in
MultilineIfThen
cop that occurred in some special cases. - #231: Fix a false positive for modifier if.
- ๐ New cop
-
v0.8.1 Changes
May 30, 2013๐ New features
- ๐ New cop
Proc
tracks uses ofProc.new
.
๐ Changes
- ๐ Renamed
NewLambdaLiteral
toLambda
. - ๐
Aligned the
Lambda
cop more closely to the style guide - it now allows the use oflambda
for multi-line blocks.
๐ Bugs fixed
- #210: Fix a false positive for double quotes in regexp literals.
- #211: Fix a false positive for
initialize
method looking like a trivial writer. - ๐ #215: Fixed a lot of modifier
if/unless/while/until
issues. - ๐ง #213: Make sure even disabled cops get their configuration set.
- #214: Fix SpaceInsideHashLiteralBraces to handle string interpolation right.
- ๐ New cop
-
v0.8.0 Changes
May 28, 2013๐ Changes
- Folded
ArrayLiteral
andHashLiteral
intoEmptyLiteral
cop. - ๐ง The maximum number of params
ParameterLists
accepts in now configurable. - 0๏ธโฃ Reworked
SymbolSnakeCase
intoSymbolName
, which has an optionAllowCamelCase
enabled by default. - ๐ Migrated from
Ripper
to the portable Parser.
๐ New features
- New cop
ConstantName
checks for constant which are not usingSCREAMING_SNAKE_CASE
. - ๐ New cop
AccessControl
checks private/protected indentation and surrounding blank lines. - ๐ New cop
Loop
checks forbegin/end/while(until)
and suggests the use ofKernel#loop
.
- Folded
-
v0.7.2 Changes
May 13, 2013๐ Bugs fixed
- #155: 'Do not use semicolons to terminate expressions.' is not implemented correctly.
OpMethod
now handles definition of unary operators without crashing.SymbolSnakeCase
now handles aliasing of operators without crashing.RescueException
now handles the splat operator*
in arescue
clause without crashing.- #159: AvoidFor cop misses many violations.
-
v0.7.1 Changes
May 11, 2013๐ Bugs fixed
- โ Added missing files to the gemspec.
-
v0.7.0 Changes
May 11, 2013๐ New features
- โ Added ability to include or exclude files/directories through
.rubocop.yml
. - โ Added option --only for running a single cop.
- ๐ Relax semicolon rule for one line methods, classes and modules.
- ๐ง Configuration files, such as
.rubocop.yml
, can now include configuration from other files through theinherit_from
directive. All configuration files implicitly inherit fromconfig/default.yml
. - ๐ New cop
ClassMethods
checks for uses for class/module names in definitions of class/module methods. - ๐ New cop
SingleLineMethods
checks for methods implemented on a single line. - ๐ New cop
FavorJoin
checks for usages ofArray#*
with a string argument. - ๐ New cop
BlockComments
tracks uses of block comments(=begin/=end
comments). - ๐ New cop
EmptyLines
tracks consecutive blank lines. - ๐ New cop
WordArray
tracks arrays of words. - ๐
#108: New cop
SpaceInsideHashLiteralBraces
checks for spaces inside hash literal braces - style is configurable. - ๐ New cop
LineContinuation
tracks uses of the line continuation character (\
). - ๐ New cop
SymbolArray
tracks arrays of symbols. - ๐ง Print warnings for unrecognized names in configuration files.
- ๐ New cop
TrivialAccessors
tracks method definitions that could be automatically generated withattr_*
methods. - ๐ New cop
LeadingCommentSpace
checks for missing space after#
in comments. - ๐ New cop
ColonMethodCall
tracks uses of::
for method calls. - ๐ New cop
AvoidGlobalVars
tracks uses of non built-in global variables. - ๐ New cop
SpaceAfterControlKeyword
tracks missing spaces afterif/elsif/case/when/until/unless/while
. - ๐ New cop
Not
tracks uses of thenot
keyword. - ๐ New cop
Eval
tracks uses of theeval
function.
๐ Bugs fixed
- 0๏ธโฃ #101:
SpaceAroundEqualsInParameterDefault
doesn't work properly with empty string. - ๐ Fix
BraceAfterPercent
for%W
,%i
and%I
and added more tests. - ๐ Fix a false positive in the
Alias
cop.:alias
is no longer treated as keyword. ArrayLiteral
now properly detectsArray.new
.HashLiteral
now properly detectsHash.new
.VariableInterpolation
now detects regexp back references and doesn't crash.- Don't generate pathnames like some/project//some.rb.
- โ #151: Don't print the unrecognized cop warning several times for the same
.rubocop.yml
.
Misc
- ๐ Renamed
Indentation
cop toCaseIndentation
to avoid confusion. - ๐ Renamed
EmptyLines
cop toEmptyLineBetweenDefs
to avoid confusion.
- โ Added ability to include or exclude files/directories through
-
v0.6.1 Changes
April 28, 2013๐ New features
- Split
AsciiIdentifiersAndComments
cop in two separate cops.
๐ Bugs fixed
- #90: Two cops crash when scanning code using
super
. - #93: Issue with
whitespace?': undefined method
. - ๐ #97: Build fails.
- #100:
OpMethod
cop doesn't work if method arg is not in braces. - ๐
SymbolSnakeCase
now tracks Ruby 1.9 hash labels as well as regular symbols.
Misc
- #88: Abort gracefully when interrupted with Ctrl-C.
- No longer crashes on bugs within cops. Now problematic checks are skipped and a message is displayed.
- Replaced
Term::ANSIColor
withRainbow
. - โ Add an option to disable colors in the output.
- Cop names are now displayed alongside messages when
-d/--debug
is passed.
- Split
-
v0.6.0 Changes
April 23, 2013๐ New features
- ๐ New cop
ReduceArguments
tracks argument names in reduce calls. - ๐ New cop
MethodLength
tracks number of LOC (lines of code) in methods. - ๐ New cop
RescueModifier
tracks uses ofrescue
in modifier form. - ๐ New cop
PercentLiterals
tracks uses of%q
,%Q
,%s
and%x
. - ๐ New cop
BraceAfterPercent
tracks uses of % literals with delimiters other than (). - ๐ Support for disabling cops locally in a file with rubocop:disable comments.
- ๐ New cop
EnsureReturn
tracks usages ofreturn
inensure
blocks. - ๐ New cop
HandleExceptions
tracks suppressed exceptions. - ๐ New cop
AsciiIdentifiersAndComments
tracks uses of non-ascii characters in identifiers and comments. - ๐ New cop
RescueException
tracks uses of rescuing theException
class. - ๐ New cop
ArrayLiteral
tracks uses of Array.new. - ๐ New cop
HashLiteral
tracks uses of Hash.new. - ๐ New cop
OpMethod
tracks the argument name in operator methods. - ๐ New cop
PercentR
tracks uses of %r literals with zero or one slash in the regexp. - ๐ New cop
FavorPercentR
tracks uses of // literals with more than one slash in the regexp.
๐ Bugs fixed
- #62: Config files in ancestor directories are ignored if another exists in home directory.
- #65: Suggests to convert symbols
:==
,:<=>
and the like to snake_case. - ๐ #66: Does not crash on unreadable or unparseable files.
- ๐ #70: Support
alias
with bareword arguments. - ๐ #64: Performance issue with Bundler.
- #75: Make it clear that some global variables require the use of the English library.
- #79: Ternary operator missing whitespace detection.
Misc
- ๐ Dropped Jeweler for gem release management since it's no longer actively maintained.
- ๐ Handle pluralization properly in the final summary.
- ๐ New cop