{"record":{"id":"c5d9a535692ecadd","repo":"standardrb/standard","slug":"error-message","errorCode":null,"errorMessage":"error.message","messagePattern":"error\\.message","errorType":"validation","errorClass":"Standard::Lsp::StdinRubocopRunner::ConfigurationError","httpStatus":null,"severity":"error","filePath":"lib/standard/lsp/stdin_rubocop_runner.rb","lineNumber":51,"sourceCode":"      end\n\n      def run(path, contents)\n        @errors = []\n        @warnings = []\n        @offenses = []\n        @options[:stdin] = contents\n\n        super([path])\n\n        raise Interrupt if aborting?\n      rescue ::RuboCop::Runner::InfiniteCorrectionLoop => error\n        if defined?(::RubyLsp::Requests::Formatting::Error)\n          raise ::RubyLsp::Requests::Formatting::Error, error.message\n        else\n          raise error\n        end\n      rescue ::RuboCop::ValidationError => error\n        raise ConfigurationError, error.message\n      rescue => error\n        if defined?(::RubyLsp::Requests::Formatting::Error)\n          raise ::RubyLsp::Requests::Support::InternalRuboCopError, error\n        else\n          raise error\n        end\n      end\n\n      def formatted_source\n        @options[:stdin]\n      end\n\n      private\n\n      def file_finished(_file, offenses)\n        @offenses = offenses\n      end\n    end","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/standardrb/standard/blob/c93189e2b31bb84cf5b365ccc244196f487f226f/lib/standard/lsp/stdin_rubocop_runner.rb#L33-L69","documentation":"Error \"error.message\" thrown in standardrb/standard.","triggerScenarios":"Thrown at lib/standard/lsp/stdin_rubocop_runner.rb:51 when the library encounters an invalid state.","commonSituations":"Defense: standardrb's LSP formatting path rescues RuboCop::ValidationError and re-raises it as ConfigurationError. Occurs when RuboCop validates the merged config and finds an unknown cop name, an invalid parameter value, or an obsolete configuration key. Check your .standard.yml and any plugin-supplied config for cop names or settings that the installed rubocop/rubocop-ast versions no longer recognize; run `standardrb` directly (not via the editor LSP) to see the full validation error and offending key.","solutions":["Fix the invalid RuboCop configuration that raised the RuboCop::ValidationError: check .rubocop.yml and .standard.yml for unknown cops, bad values, or misspelled keys, then re-run StandardRB.","Run rubocop or standardrb directly to surface the underlying validation error with its full context.","If a plugin defines custom cops, ensure the plugin gem is loaded and its config validates against the installed RuboCop version."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c93189e2b31bb84cf5b365ccc244196f487f226f","analyzedAt":"2026-08-23T15:18:21.970Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}