mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
don't print config parsing info logs twice
This commit is contained in:
parent
a24cc87a06
commit
47440bc2cc
10 changed files with 108 additions and 77 deletions
|
@ -89,7 +89,7 @@ func buildTemplateContext() (map[string]interface{}, error) {
|
|||
|
||||
func getLintersListMarkdown(enabled bool) string {
|
||||
var neededLcs []linter.Config
|
||||
lcs := lintersdb.GetAllSupportedLinterConfigs()
|
||||
lcs := lintersdb.NewManager().GetAllSupportedLinterConfigs()
|
||||
for _, lc := range lcs {
|
||||
if lc.EnabledByDefault == enabled {
|
||||
neededLcs = append(neededLcs, lc)
|
||||
|
@ -114,7 +114,7 @@ func getLintersListMarkdown(enabled bool) string {
|
|||
func getThanksList() string {
|
||||
var lines []string
|
||||
addedAuthors := map[string]bool{}
|
||||
for _, lc := range lintersdb.GetAllSupportedLinterConfigs() {
|
||||
for _, lc := range lintersdb.NewManager().GetAllSupportedLinterConfigs() {
|
||||
if lc.OriginalURL == "" {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue