Skip to content

Upgrading rubocop 0.45 to 0.46

Review needed0.45.0 → 0.46.0New8Changed6Fixed8

Review neededUpgrade verdict

6 changed defaults.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published Ruby source. Not mixed with prose notes.

  • added: method CopHelper.inspect_gemfile(_, _)
  • removed: method Config.add_missing_namespaces()
  • added: static method ConfigLoader.add_missing_namespaces(_, _)
  • removed: const AccessModifierNode.MODULE_FUNCTION_NODE
  • removed: const AccessModifierNode.PRIVATE_NODE
  • removed: const AccessModifierNode.PROTECTED_NODE
  • removed: const AccessModifierNode.PUBLIC_NODE
  • changed: method ConfigurableNumbering.valid_name?(_, _) → method ConfigurableNumbering.valid_name?(_, _, _)
  • added: module Bundler
  • added: class DuplicatedGem < Cop
  • added: class OrderedGems < Cop
  • added: const DuplicatedGem.MSG
  • added: const OrderedGems.MSG
  • added: method DuplicatedGem.investigate(_)
  • added: method OrderedGems.consecutive_lines(_, _)
  • added: method OrderedGems.investigate(_)
  • added: method OrderedGems.register_offense(_, _)
  • added: method Debugger.binding_irb?(_)
  • removed: class SortWithBlock < Cop
  • removed: const Count.COUNTERS
  • removed: const Count.SELECTORS
  • removed: const Detect.DANGEROUS_METHODS
  • removed: const Detect.SELECT_METHODS
  • removed: const FlatMap.FLATTEN_METHODS
  • removed: const FlatMap.MAP_METHODS
  • removed: const SortWithBlock.MSG
  • removed: const StringReplacement.DETERMINISTIC_TYPES
  • removed: const StringReplacement.GSUB_METHODS
  • removed: const StringReplacement.REGEXP_CONSTRUCTOR_METHODS
  • removed: method SortWithBlock.autocorrect(_)
  • removed: method SortWithBlock.on_block(_)
  • added: class CompareWithBlock < Cop
  • added: const CompareWithBlock.MSG
  • added: method CompareWithBlock.autocorrect(_)
  • added: method CompareWithBlock.on_block(_)
  • removed: class ShuffleAnalyzer
  • removed: constructor ShuffleAnalyzer(_)
  • removed: method ShuffleAnalyzer.autocorrect()
  • removed: method ShuffleAnalyzer.message()
  • removed: method ShuffleAnalyzer.offensive?()
  • removed: method ShuffleAnalyzer.source_range()
  • removed: const Output.BLACKLIST
  • added: class EnumUniqueness < Cop
  • added: const EnumUniqueness.MSG
  • added: method EnumUniqueness.on_send(_)
  • removed: const ColonMethodCall.JAVA_TYPES
  • removed: const ColonMethodCall.JAVA_TYPE_NODES
  • removed: const EmptyLiteral.ARRAY_NODE
  • removed: const EmptyLiteral.HASH_NODE
  • removed: const EmptyLiteral.STR_NODE
  • removed: const EvenOdd.EQUALITY_OPERATORS
  • removed: const EvenOdd.ONE
  • removed: const EvenOdd.TWO
  • removed: const EvenOdd.ZERO
  • removed: const Lambda.TARGET
  • removed: const ModuleFunction.EXTEND_SELF_NODE
  • removed: const ModuleFunction.MODULE_FUNCTION_NODE
  • removed: const NilComparison.NIL_NODE
  • removed: const NilComparison.OPS
  • removed: const NonNilCheck.NIL_NODE
  • removed: const OpMethod.TARGET_ARGS
  • removed: const Proc.TARGET
  • removed: const SymbolProc.PROC_NODE
  • added: class EmptyMethod < Cop
  • added: const EmptyLinesAroundBody.MSG_DEFERRED
  • added: const EmptyMethod.MSG_COMPACT
  • added: const EmptyMethod.MSG_EXPANDED
  • added: const SymbolProc.SUPER_TYPES
  • added: const TernaryParentheses.MSG_COMPLEX
  • added: constructor HashSyntax(*)
  • added: method EmptyMethod.on_def(_)
  • removed: property GenericCorrector.correction: reader
  • removed: property GenericCorrector.correction_range: reader
  • added: constructor Locatable(*)
  • added: constructor FuubarStyleFormatter(*)