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:
David López 2019-01-03 11:33:05 +01:00 committed by Isaev Denis
parent 21a8185fd2
commit d9a1bdb831
17 changed files with 78 additions and 76 deletions

View file

@ -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 {