relnotes/v0.48.0.md
TargetRailsVersion configuration parameter can be used to specify which version of Rails the inspected code is intended to run on. (@maxbeizer)prefix and postfix styles to Style/NegatedIf. (@brandonweiss)NumberOfEmptyLines for Style/EmptyLineBetweenDefs. (@dorian)Strict for Style/NumericLiteral to make the change to this cop in 0.47.0 configurable. (@iGEL)AllCops/EnabledByDefault option. (@betesh)IncludeActiveSupportAliases, to Performance/DoubleStartEndWith. This configuration will check for ActiveSupport's starts_with? and ends_with?. (@rrosenblum)Style/EmptyLineAfterMagicComment cop. (@backus)Style/EndOfLine configurable with lf, crlf, and native (default) styles. (@jonas054)Style/MixinGrouping cop. (@drenmi)Rails/RelativeDateConstant cop. (@sinsoku)Style/EmptyLinesAroundBeginBody cop. (@pocke)Style/EmptyLinesAroundExceptionHandlingKeywords cop. (@pocke)Style/MultilineMemoization cop. (@pocke)Lint/EmptyEnsure cop. (@pocke)Style/IndentHeredoc cop. (@pocke)Lint/AmbiguousBlockAssociation cop. (@smakagon)Style/InverseMethods cop. (@rrosenblum)default key in the Style/PercentLiteralDelimiters cop config to set all preferred delimiters. (@kddeisz)IgnoreMacros option to Style/MethodCallWithArgsParentheses. (@drenmi)Rails/ActiveSupportAliases cop. (@tdeo)Rails/Blank cop. (@rrosenblum)Rails/Present cop. (@rrosenblum)update_attributes. (@andriymosin)Style/EmptyLineBetweenDefs doesn't allow more than one empty line between method definitions by default (see NumberOfEmptyLines). (@dorian)foo[:bar] as not complex in Style/TernaryParentheses cop with require_parentheses_when_complex style. (@onk)Lint/SafeNavigationChain cop. (@pocke)Style/RaiseArgs cop. (@mikegee)Performance/DoubleStartEndWith. (@rrosenblum)Rails/Date cop to register an offence for a string without timezone. (@sinsoku)new_cop.rake suggested path. (@dabroz)Metrics/ParameterLists cop. (@pocke)Marshal.load if argument is a Marshal.dump in Security/MarshalLoad cop. (@droptheplot)Style/SymbolArray cop to enable by default. (@pocke)Style/MultilineMethodCallIndentation indented_relative_to_receiver to indent relative to the receiver and not relative to the caller. (@jfelchner)IndentationWidth by regex. (@jfelchner)Rails/SkipsModelValidations for methods that don't accept arguments. (@dorian)Bundler/OrderedGems. (@mikegee)Lint/NonLocalExitFromIterator aware of method definitions. (@drenmi)MagicComment. (@mikegee)Style/MutableConstant. (@mikegee)Performance/RegexpMatch with English module. (@pocke)Errno::ENOENT during cache cleanup from File.mtime too. (@mikegee)Style/SpaceInsideHashLiteralBraces doesn't add and offence when checking an hash where a value is a left brace string (e.g. { k: '{' }). (@nodo)Style/WhileUntilModifier from breaking on a multiline modifier. (@drenmi)Style/WordArray's WordRegex configuration value to be an instance of String. (@mikegee)Style/RedundantSelf when assigning to same local variable. (@bankair)find_zone and find_zone! methods in Rails/TimeZone. (@attilahorvath)Lint/ShadowedException when an exception is shadowed and there is an implicit begin. (@rrosenblum)Include/Exclude paths in all files beginning with .rubocop be relative to the configuration file's directory and not to the current directory. (@jonas054)Style/EmptyLiteral cop. (@ota42y)Style/StringLiterals, Style/UnneededCapitalW and Style/UnneededPercentQ cops. (@pocke)Style/SelfAssignment cop. (@pocke)Style/BracesAroundHashParameters cop. (@musialik)Style/TernaryParentheses cop. (@musialik)Security/JSONLoad, Security/MarshalLoad and Security/YAMLLoad cops patterns not matching ::Const. (@musialik)# rubocop:disable all and # rubocop:disable SomeCop. (@jonas054)Style/SymbolArray cop. (@pocke)Style/CaseIndentation cop from registering offenses on single-line case statements. (@drenmi)Style/IdenticalConditionalBranches from registering offenses when a case statement has an empty when. (@dpostorivo)