{"record":{"id":"e22ee1a59c9b8b6c","repo":"rubocop/rubocop","slug":"the-layout-multilinemethodcallindentation-cop-on","errorCode":null,"errorMessage":"The `Layout/MultilineMethodCallIndentation` cop only accepts an `IndentationWidth` configuration parameter when `EnforcedStyle` is `indented`.","messagePattern":"The `Layout/MultilineMethodCallIndentation` cop only accepts an `IndentationWidth` configuration parameter when `EnforcedStyle` is `indented`\\.","errorType":"exception","errorClass":"RuboCop::ValidationError","httpStatus":null,"severity":"error","filePath":"lib/rubocop/cop/layout/multiline_method_call_indentation.rb","lineNumber":60,"sourceCode":"      #   end\n      #\n      #   # good\n      #   myvariable = Thing\n      #                  .a\n      #                  .b\n      #                  .c\n      #\n      class MultilineMethodCallIndentation < Base # rubocop:disable Metrics/ClassLength\n        include ConfigurableEnforcedStyle\n        include Alignment\n        include MultilineExpressionIndentation\n        include RangeHelp\n        extend AutoCorrector\n\n        def validate_config\n          return unless style == :aligned && cop_config['IndentationWidth']\n\n          raise ValidationError,\n                'The `Layout/MultilineMethodCallIndentation` ' \\\n                'cop only accepts an `IndentationWidth` ' \\\n                'configuration parameter when ' \\\n                '`EnforcedStyle` is `indented`.'\n        end\n\n        private\n\n        def find_base_receiver(node)\n          base_receiver = node\n          base_receiver = base_receiver.receiver while base_receiver.receiver\n          base_receiver\n        end\n\n        def find_pair_ancestor(node)\n          node.each_ancestor do |ancestor|\n            return ancestor if ancestor.pair_type?\n            break if grouped_expression?(ancestor) || inside_arg_list_parentheses?(node, ancestor)","sourceCodeStart":42,"sourceCodeEnd":78,"githubUrl":"https://github.com/rubocop/rubocop/blob/ea712edf2b1b14cb9b3f748bb1003a6141c95c5e/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#L42-L78","documentation":"Error \"The `Layout/MultilineMethodCallIndentation` cop only accepts an `IndentationWidth` configuration parameter when `EnforcedStyle` is `indented`.\" thrown in rubocop/rubocop.","triggerScenarios":"Thrown at lib/rubocop/cop/layout/multiline_method_call_indentation.rb:60 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ea712edf2b1b14cb9b3f748bb1003a6141c95c5e","analyzedAt":"2026-08-21T16:16:18.930Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}