{"record":{"id":"99cdbbdb4184e62c","repo":"golangci/golangci-lint","slug":"unknown-group-s","errorCode":null,"errorMessage":"unknown group: %s","messagePattern":"unknown group: (.+?)","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/lint/lintersdb/manager.go","lineNumber":170,"sourceCode":"\t\t\tselected = append(selected, lc)\n\t\t}\n\n\t\tresultLintersSet = linterConfigsToMap(selected)\n\n\tcase config.GroupStandard:\n\t\tvar selected []*linter.Config\n\t\tfor _, lc := range m.linters {\n\t\t\tif !lc.FromGroup(config.GroupStandard) {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tselected = append(selected, lc)\n\t\t}\n\n\t\tresultLintersSet = linterConfigsToMap(selected)\n\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"unknown group: %s\", groupName)\n\t}\n\n\tfor _, name := range slices.Concat(m.cfg.Linters.Enable, m.cfg.Formatters.Enable) {\n\t\tfor _, lc := range m.GetLinterConfigs(name) {\n\t\t\t// it's important to use lc.Name() nor name because name can be alias\n\t\t\tresultLintersSet[lc.Name()] = lc\n\t\t}\n\t}\n\n\tfor _, name := range m.cfg.Linters.Disable {\n\t\tfor _, lc := range m.GetLinterConfigs(name) {\n\t\t\t// it's important to use lc.Name() nor name because name can be alias\n\t\t\tdelete(resultLintersSet, lc.Name())\n\t\t}\n\t}\n\n\tif m.cfg.Linters.FastOnly {\n\t\tfor lc := range maps.Values(resultLintersSet) {","sourceCodeStart":152,"sourceCodeEnd":188,"githubUrl":"https://github.com/golangci/golangci-lint/blob/ed7a235d2d771152056fdc142a9855567c5796a9/pkg/lint/lintersdb/manager.go#L152-L188","documentation":"Default-branch guard in Manager.build (used by GetEnabledLintersMap/GetOptimizedLinters): the configured linter group name (presets/group selection) matched none of the known groups, so the switch fell through to default. Indicates an invalid group value in the configuration — an internal/config-level error, not a linter-level one.","triggerScenarios":"Thrown at pkg/lint/lintersdb/manager.go:170 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported group names (e.g. 'standard') in the configuration","Check for typos in the group/preset setting","Verify the golangci-lint version supports the configured group"],"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"}