# frozen_string_literal: true module RuboCop module Cop module Layout # Bare access modifiers (those not applying to specific methods) should be # indented as deep as method definitions, or as deep as the class/module # keyword, depending on configuration. # # @example EnforcedStyle: indent (default) # # bad # class Plumbus # private # def smooth; end # end # # # good # class Plumbus # private # def smooth; end # end # # @example EnforcedStyle: outdent # # bad # class Plumbus # private # def smooth; end # end # # # good # class Plumbus # private # def smooth; end # end class AccessModifierIndentation < Base include Alignment include ConfigurableEnforcedStyle include RangeHelp extend AutoCorrector MSG = '%