v3.0.0
Applications upgrading from 2.x should expect a materially different default lint surface. In particular, many layout and style cops that were enabled in 2.x are now disabled, while a focused set of lint and newer style cops is enabled. Run RuboCop with the 3.0.0 configuration before upgrading CI, and review newly reported offenses and any local overrides.
Newly enabled cops
Gemspec/AttributeAssignmentGemspec/DevelopmentDependenciesLint/AmbiguousAssignmentLint/ConstantReassignmentLint/CopDirectiveSyntaxLint/DataDefineOverrideLint/DisjunctiveAssignmentInConstructorLint/DuplicateCaseConditionLint/DuplicateElsifConditionLint/DuplicateRegexpCharacterClassElementLint/DuplicateRequireLint/DuplicateRescueExceptionLint/DuplicateSetElementLint/EmptyExpressionLint/InterpolationCheckLint/MultipleComparisonLint/NestedPercentLiteralLint/NoReturnInMemoizationLint/NumericOperationWithConstantResultLint/OrAssignmentToConstantLint/RedundantWithIndexLint/RedundantWithObjectLint/RegexpAsConditionLint/ReturnInVoidContextLint/SelfAssignmentLint/SendWithMixinArgumentLint/TrailingCommaInAttributeDeclarationLint/TripleQuotesLint/UnreachablePatternBranchLint/UselessDefaultValueArgumentLint/UselessOrMigration/DepartmentNameNaming/BlockParameterNameNaming/HeredocDelimiterCaseNaming/MethodParameterNameStyle/AmbiguousEndlessMethodDefinitionStyle/ArrayCoercionStyle/ColonMethodDefinitionStyle/CombinableDefinedStyle/DigChainStyle/MapJoinStyle/ModuleMemberExistenceCheckStyle/MutableConstantStyle/NegativeArrayIndexStyle/ReduceToHashStyle/RedundantArrayFlattenStyle/RedundantMinMaxByStyle/ReverseFindStyle/SelectByKindStyle/SelectByRangeStyle/TallyMethodStyle/TrailingBodyOnMethodDefinitionStyle/TrailingMethodEndStatement
Newly disabled cops
Gemspec/OrderedDependenciesLayout/ArrayAlignmentLayout/AssignmentIndentationLayout/BeginEndAlignmentLayout/BlockAlignmentLayout/BlockEndNewlineLayout/CaseIndentationLayout/ClosingHeredocIndentationLayout/EmptyCommentLayout/EmptyLineAfterGuardClauseLayout/EmptyLinesLayout/EndAlignmentLayout/ExtraSpacingLayout/FirstArgumentIndentationLayout/FirstArrayElementIndentationLayout/FirstArrayElementLineBreakLayout/FirstHashElementIndentationLayout/FirstHashElementLineBreakLayout/FirstMethodArgumentLineBreakLayout/FirstParameterIndentationLayout/HashAlignmentLayout/HeredocIndentationLayout/LineEndStringConcatenationIndentationLayout/MultilineArrayBraceLayoutLayout/MultilineArrayLineBreaksLayout/MultilineHashBraceLayoutLayout/MultilineHashKeyLineBreaksLayout/MultilineMethodArgumentLineBreaksLayout/MultilineMethodCallBraceLayoutLayout/MultilineMethodCallIndentationLayout/MultilineMethodDefinitionBraceLayoutLayout/MultilineOperationIndentationLayout/ParameterAlignmentLayout/RescueEnsureAlignmentLint/AmbiguousRegexpLiteralLint/AssignmentInConditionLint/FlipFlopLint/FloatOutOfRangeLint/FormatParameterMismatchLint/InheritExceptionLint/ItWithoutArgumentsInBlockLint/LiteralAssignmentInConditionLint/LoopLint/MissingSuperLint/NoReturnInBeginEndBlocksLint/NonLocalExitFromIteratorLint/OrderedMagicCommentsLint/PercentStringArrayLint/PercentSymbolArrayLint/RandOneLint/RedundantRegexpQuantifiersLint/RedundantSplatExpansionLint/RequireParenthesesLint/RequireRangeParenthesesLint/RequireRelativeSelfPathLint/RescueExceptionLint/ShadowedExceptionLint/SuppressedExceptionLint/UnderscorePrefixedVariableNameLint/UnifiedIntegerLint/UnreachableCodeLint/UnusedBlockArgumentLint/UselessAccessModifierLint/UselessAssignmentLint/UselessElseWithoutRescueLint/UselessRescueLint/UselessRuby2KeywordsLint/UselessSetterCallMetrics/BlockNestingMetrics/CollectionLiteralLengthMetrics/ParameterListsNaming/AccessorMethodNameNaming/AsciiIdentifiersNaming/BinaryOperatorParameterNameNaming/FileNameSecurity/EvalSecurity/IoMethodsSecurity/JSONLoadSecurity/OpenStyle/AliasStyle/ArrayIntersectStyle/ArrayJoinStyle/BarePercentLiteralsStyle/BeginBlockStyle/BlockDelimitersStyle/CaseEqualityStyle/ClassAndModuleChildrenStyle/ClassCheckStyle/CommandLiteralStyle/CommentAnnotationStyle/ComparableClampStyle/ConcatArrayLiteralsStyle/ConditionalAssignmentStyle/DataInheritanceStyle/DateTimeStyle/DirEmptyStyle/EachForSimpleLoopStyle/EachWithObjectStyle/EmptyCaseConditionStyle/EmptyElseStyle/EmptyHeredocStyle/EmptyLiteralStyle/EndBlockStyle/EvenOddStyle/ExactRegexpMatchStyle/ExplicitBlockArgumentStyle/FileEmptyStyle/ForStyle/FormatStringStyle/GlobalStdStreamStyle/IdenticalConditionalBranchesStyle/IfInsideElseStyle/IfUnlessModifierOfIfUnlessStyle/IfWithBooleanLiteralBranchesStyle/IfWithSemicolonStyle/InPatternThenStyle/InfiniteLoopStyle/InvertibleUnlessConditionStyle/LambdaCallStyle/LineEndConcatenationStyle/MethodCallWithArgsParenthesesStyle/MethodCallWithoutArgsParenthesesStyle/MinMaxComparisonStyle/MissingRespondToMissingStyle/ModuleFunctionStyle/MultilineIfThenStyle/MultilineMemoizationStyle/MultilineTernaryOperatorStyle/NegatedIfStyle/NegatedWhileStyle/NestedFileDirnameStyle/NestedModifierStyle/NestedParenthesizedCallsStyle/NestedTernaryOperatorStyle/NilComparisonStyle/NonNilCheckStyle/NotStyle/NumericLiteralPrefixStyle/OneLineConditionalStyle/OperatorMethodCallStyle/OptionalArgumentsStyle/ParallelAssignmentStyle/ParenthesesAroundConditionStyle/PercentQLiteralsStyle/PerlBackrefsStyle/PreferredHashMethodsStyle/ProcStyle/QuotedSymbolsStyle/RaiseArgsStyle/RedundantArrayConstructorStyle/RedundantCapitalWStyle/RedundantConstantBaseStyle/RedundantCurrentDirectoryInPathStyle/RedundantDoubleSplatHashBracesStyle/RedundantEachStyle/RedundantExceptionStyle/RedundantFilterChainStyle/RedundantFreezeStyle/RedundantHeredocDelimiterQuotesStyle/RedundantInterpolationStyle/RedundantLineContinuationStyle/RedundantParenthesesStyle/RedundantPercentQStyle/RedundantRegexpArgumentStyle/RedundantRegexpConstructorStyle/RedundantSelfStyle/RedundantSortByStyle/RedundantStringEscapeStyle/RegexpLiteralStyle/RescueModifierStyle/ReturnNilStyle/ReturnNilInPredicateMethodDefinitionStyle/SafeNavigationStyle/SampleStyle/SelfAssignmentStyle/SignalExceptionStyle/SingleLineDoEndBlockStyle/SingleLineMethodsStyle/SpecialGlobalVarsStyle/StabbyLambdaParenthesesStyle/StringLiteralsStyle/StringLiteralsInInterpolationStyle/StripStyle/SuperWithArgsParenthesesStyle/SymbolArrayStyle/SymbolProcStyle/TernaryParenthesesStyle/TrailingCommaInArgumentsStyle/TrailingCommaInArrayLiteralStyle/TrailingCommaInHashLiteralStyle/TrivialAccessorsStyle/WhenThenStyle/WhileUntilDoStyle/WhileUntilModifierStyle/WordArrayStyle/YAMLFileRead- `Style/ZeroLengthPredicate``