Skip to content

Upgrading rubocop 0.26 to 0.27

Review needed0.26.1 → 0.27.1New8Changed1Fixed14Other2

Review neededUpgrade verdict

1 changed default.

  • 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 TargetFinder.find_files(_, _)
  • added: method TargetFinder.to_inspect?(_, _, _)
  • added: static method PathUtil.issue_deprecation_warning(_, _, _)
  • removed: method OnMethod.on_def(_)
  • removed: method OnMethod.on_defs(_)
  • removed: module OnMethod
  • added: method AutocorrectAlignment.configured_indentation_width()
  • added: method OnMethodDef.on_def(_)
  • added: method OnMethodDef.on_defs(_)
  • added: method StringLiteralsHelp.autocorrect(_)
  • added: method StringLiteralsHelp.wrong_quotes?(_, _)
  • added: module OnMethodDef
  • added: module StringLiteralsHelp
  • added: static method Cop.cop_name_with_namespace(_, _, _, _)
  • added: static method Util.within_node?(_, _)
  • removed: method DefEndAlignment.on_method(_, _, _, _)
  • removed: method RescueException.autocorrect(_)
  • added: method DefEndAlignment.on_method_def(_, _, _, _)
  • added: class AbcSize < Cop
  • added: const AbcSize.BRANCH_NODES
  • added: const AbcSize.CONDITION_NODES
  • added: const AbcSize.MSG
  • removed: class EmptyLinesAroundBody < Cop
  • removed: const EmptyLinesAroundBody.MSG_BEG
  • removed: const EmptyLinesAroundBody.MSG_END
  • removed: const IndentationWidth.CORRECT_INDENTATION
  • removed: const NonNilCheck.MSG
  • removed: method BlockComments.autocorrect(_)
  • removed: method DefWithParentheses.on_method(_, _, _, _)
  • removed: method EmptyLinesAroundBody.on_class(_)
  • removed: method EmptyLinesAroundBody.on_module(_)
  • removed: method EmptyLinesAroundBody.on_sclass(_)
  • removed: method IndentationWidth.on_method(_, _, _, _)
  • removed: method MethodDefParentheses.on_method(_, _, _, _)
  • removed: method MultilineIfThen.end_position(_)
  • removed: method NonNilCheck.on_def(_)
  • removed: method NonNilCheck.on_defs(_)
  • removed: method RedundantBegin.on_method(_, _, _, _)
  • removed: method RescueModifier.on_method(_, _, _, _)
  • removed: method SpaceAfterMethodName.on_method(_, _, _, _)
  • added: class ElseAlignment < Cop
  • added: class EmptyLinesAroundClassBody < Cop
  • added: class EmptyLinesAroundMethodBody < Cop
  • added: class EmptyLinesAroundModuleBody < Cop
  • added: class MultilineOperationIndentation < Cop
  • added: class StringLiteralsInInterpolation < Cop
  • added: const ColonMethodCall.JAVA_TYPES
  • added: const ColonMethodCall.JAVA_TYPE_NODES
  • added: const ElseAlignment.MSG
  • added: const EmptyLinesAroundBody.MSG_EXTRA
  • added: const EmptyLinesAroundBody.MSG_MISSING
  • added: const EmptyLinesAroundClassBody.KIND
  • added: const EmptyLinesAroundMethodBody.KIND
  • added: const EmptyLinesAroundModuleBody.KIND
  • added: method DefWithParentheses.on_method_def(_, _, _, _)
  • added: method ElseAlignment.on_case(_)
  • added: method ElseAlignment.on_if(_, _ = …)
  • added: method ElseAlignment.on_rescue(_)
  • added: method EmptyLinesAroundClassBody.on_class(_)
  • added: method EmptyLinesAroundClassBody.on_sclass(_)
  • added: method EmptyLinesAroundModuleBody.on_module(_)
  • added: method IndentationWidth.on_method_def(_, _, _, _)
  • added: method MethodDefParentheses.on_method_def(_, _, _, _)
  • added: method MultilineOperationIndentation.on_and(_)
  • added: method MultilineOperationIndentation.on_or(_)
  • added: method MultilineOperationIndentation.on_send(_)
  • added: method RedundantBegin.on_method_def(_, _, _, _)
  • added: method RescueModifier.on_method_def(_, _, _, _)
  • added: method SpaceAfterMethodName.on_method_def(_, _, _, _)
  • added: method StringLiterals.on_dstr(_)
  • added: module EmptyLinesAroundBody
  • removed: method HTMLFormatter.hash_for_file(_, _)
  • removed: method HTMLFormatter.hash_for_location(_)
  • removed: method HTMLFormatter.hash_for_offense(_)
  • removed: method HTMLFormatter.highlight_line(_)
  • removed: method HTMLFormatter.metadata_hash()
  • removed: property HTMLFormatter.output_hash: reader
  • added: const HTMLFormatter.TEMPLATE_PATH
  • added: method HTMLFormatter.render_html()
  • added: module TextUtil
  • added: property HTMLFormatter.files: reader
  • added: property HTMLFormatter.summary: reader
  • added: static method TextUtil.pluralize(_, _, _ = …)
  • added: class Color < Struct.new(:red, :green, :blue, :alpha)
  • added: class ERBContext
  • added: const ERBContext.LOGO_IMAGE_PATH
  • added: const ERBContext.SEVERITY_COLORS
  • added: constructor ERBContext(_, _)
  • added: method Color.fade_out(_)
  • added: method Color.to_s()
  • added: method ERBContext.base64_encoded_logo_image()
  • added: method ERBContext.binding()
  • added: method ERBContext.decorated_message(_)
  • added: method ERBContext.highlighted_source_line(_)
  • added: property ERBContext.files: reader
  • added: property ERBContext.summary: reader