New
Unclaimed project
Are you a maintainer of rubocop? Claim this project to take control of your public changelog and roadmap.
Changelog
A Ruby static code analyzer and formatter, based on the community Ruby style guide.
Last updated 5 days ago
Style/ModuleMemberExistenceCheck. (@lovro-bikic)Lint/LiteralAsCondition when there are literals in multiple branches. (@viralpraxis)rake rubocop:auto_correct task. (@koic)Lint/RedundantSplatExpansion when splatting a single literal. (@earlopain)Layout/RescueEnsureAlignment when using self class definition. (@koic)Lint/NoReturnInBeginEndBlocks when assigning instance variable, class variable, global variable, or constant. (@koic)Layout/EmptyLineAfterGuardClause when a guard clause follows a multiline heredoc in a parenthesized method call. (@koic)Layout/EndAlignment when a conditional assignment is used on the same line and the end with a safe navigation method call is aligned. (@koic)Layout/EndAlignment when a conditional assignment is used on the same line and the end with a numbered block or it block method call is aligned. (@koic)Lint/RedundantSafeNavigation when the receiver is used outside the singleton method definition scope. (@koic)Style/EndlessMethod when multiline or xstring heredoc is used in method body. (@koic)Style/TrailingCommaInArguments when EnforcedStyleForMultiline is set to consistent_comma and a multiline braced hash argument appears after another argument. (@koic)OptionParser errors when running rubocop with input that causes an error. (@dvandersluis)Layout/LineLength is disabled. (@koic)Style/ClassAndModuleChildren to skip compact style definitions inside another class or module when EnforcedStyle: nested. (@rscq)Layout/EndAlignment with EnforcedStyleAlignWith: variable to handle conditionals inside begin nodes properly. (@dvandersluis)Lint/UselessOr. (@r7kamura)Severity from configuration parameters. (@r7kamura)Style/CaseEquality allow regexp case equality where the receiver is a regexp literal. (@koic)Lint/CircularArgumentReference to detect offenses within long assignment chains. (@viralpraxis)Gemspec/RubyVersionGlobalsUsage aware of Ruby::VERSION. (@koic)Layout/EmptyLineAfterMagicComment aware of # rbs_inline magic comment. (@koic)Lint/ElseLayout allow a single-line else body in then single-line conditional. (@koic)Lint/RedundantRequireStatement aware of pathname when analyzing Ruby 4.0. (@koic)Lint/UnreachableCode aware of singleton method redefinition. (@koic)Style/RedundantArgument aware of to_i. (@koic)IgnoreCopDirectives to AllowCopDirectives in Layout/LineLength. (@koic)