mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
gocritic: fix code to pass newly added gocritic checks
Fix code to pass newly added gocritic checks, mainly pointer receivers and import shadows
This commit is contained in:
parent
21a8185fd2
commit
d9a1bdb831
17 changed files with 78 additions and 76 deletions
|
@ -88,7 +88,7 @@ func buildTemplateContext() (map[string]interface{}, error) {
|
|||
}
|
||||
|
||||
func getLintersListMarkdown(enabled bool) string {
|
||||
var neededLcs []linter.Config
|
||||
var neededLcs []*linter.Config
|
||||
lcs := lintersdb.NewManager().GetAllSupportedLinterConfigs()
|
||||
for _, lc := range lcs {
|
||||
if lc.EnabledByDefault == enabled {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue