{"record":{"id":"883a866ad482ff14","repo":"standardrb/standard","slug":"configuration-file-resolved-config-expand-path","errorCode":null,"errorMessage":"Configuration file \"#{resolved_config.expand_path}\" not found.","messagePattern":"Configuration file \"#(.+?)\" not found\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/standard/resolves_yaml_option.rb","lineNumber":18,"sourceCode":"require \"pathname\"\n\nmodule Standard\n  class ResolvesYamlOption\n    def call(argv, search_path, option_name, default_file)\n      search_argv(argv, option_name) || FileFinder.new.call(default_file, search_path)\n    end\n\n    private\n\n    def search_argv(argv, option_name)\n      return unless (config_file = argv_value_for(argv, option_name))\n\n      resolved_config = Pathname.new(config_file)\n      if resolved_config.exist?\n        resolved_config.expand_path\n      else\n        raise \"Configuration file \\\"#{resolved_config.expand_path}\\\" not found.\"\n      end\n    end\n\n    def argv_value_for(argv, option_name)\n      return unless (index = argv.index(option_name))\n\n      argv[index + 1]\n    end\n  end\nend\n","sourceCodeStart":1,"sourceCodeEnd":29,"githubUrl":"https://github.com/standardrb/standard/blob/c93189e2b31bb84cf5b365ccc244196f487f226f/lib/standard/resolves_yaml_option.rb#L1-L29","documentation":"Error \"Configuration file \"#{resolved_config.expand_path}\" not found.\" thrown in standardrb/standard.","triggerScenarios":"Thrown at lib/standard/resolves_yaml_option.rb:18 when the library encounters an invalid state.","commonSituations":"Defense: raised when the value passed to a --config-style CLI option points to a file that does not exist. Check for typos in the path, verify the path is correct relative to the directory where you invoked standardrb (relative paths are resolved against the current working directory, not the project root), and confirm the file was not deleted, renamed, or excluded by a sparse checkout.","solutions":["Check the path passed to --config for typos and confirm the file exists on disk.","Use an absolute path or a path relative to the current working directory where you invoke standardrb.","Omit the --config flag entirely to let StandardRB find the default .standard.yml via its upward file search."],"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"}