{"record":{"id":"1e8c59ab84953b75","repo":"golangci/golangci-lint","slug":"no-linters-enabled","errorCode":null,"errorMessage":"no linters enabled","messagePattern":"no linters enabled","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/lint/runner.go","lineNumber":64,"sourceCode":"\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tenabledLinters, err := dbManager.GetEnabledLintersMap()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to get enabled linters: %w\", err)\n\t}\n\n\tvar enabledFormatters []string\n\tfor name := range maps.Keys(enabledLinters) {\n\t\tif goformatters.IsFormatter(name) {\n\t\t\tenabledFormatters = append(enabledFormatters, name)\n\t\t}\n\t}\n\n\tswitch len(enabledLinters) {\n\tcase 0:\n\t\treturn nil, errors.New(\"no linters enabled\")\n\tcase 1:\n\t\tif _, ok := enabledLinters[\"typecheck\"]; ok {\n\t\t\treturn nil, errors.New(\"no linters enabled\")\n\t\t}\n\t}\n\n\tformattersCfg := &config.Formatters{\n\t\tEnable:   enabledFormatters,\n\t\tSettings: cfg.Linters.Settings.FormatterSettings,\n\t}\n\n\tmetaFormatter, err := goformatters.NewMetaFormatter(log, formattersCfg, &cfg.Run)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create meta-formatter: %w\", err)\n\t}\n\n\treturn &Runner{\n\t\tProcessors: []processors.Processor{","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/golangci/golangci-lint/blob/ed7a235d2d771152056fdc142a9855567c5796a9/pkg/lint/runner.go#L46-L82","documentation":"Fired in NewRunner after resolving the enabled-linters map: either zero linters matched the config/CLI selection, or the only enabled linter was the internal 'typecheck' pseudo-linter, which cannot run alone. golangci-lint refuses to start a run that would produce no linting.","triggerScenarios":"Thrown at pkg/lint/runner.go:64 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable linters via linters.enable in config or the -E flag","Check that fast-only/presets/filters (e.g. --fast, exclusions) are not filtering out all enabled linters","Verify linter names are spelled correctly; unknown names may be silently skipped depending on version"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ed7a235d2d771152056fdc142a9855567c5796a9","analyzedAt":"2026-09-02T18:47:33.865Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}