mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
feat: add the gosmopolitan linter (#3458)
This commit is contained in:
parent
b29a4f6dc0
commit
553d7df585
16 changed files with 223 additions and 0 deletions
|
@ -135,6 +135,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||
gomodguardCfg *config.GoModGuardSettings
|
||||
gosecCfg *config.GoSecSettings
|
||||
gosimpleCfg *config.StaticCheckSettings
|
||||
gosmopolitanCfg *config.GosmopolitanSettings
|
||||
govetCfg *config.GovetSettings
|
||||
grouperCfg *config.GrouperSettings
|
||||
ifshortCfg *config.IfshortSettings
|
||||
|
@ -213,6 +214,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||
gomodguardCfg = &m.cfg.LintersSettings.Gomodguard
|
||||
gosecCfg = &m.cfg.LintersSettings.Gosec
|
||||
gosimpleCfg = &m.cfg.LintersSettings.Gosimple
|
||||
gosmopolitanCfg = &m.cfg.LintersSettings.Gosmopolitan
|
||||
govetCfg = &m.cfg.LintersSettings.Govet
|
||||
grouperCfg = &m.cfg.LintersSettings.Grouper
|
||||
ifshortCfg = &m.cfg.LintersSettings.Ifshort
|
||||
|
@ -558,6 +560,12 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||
WithAlternativeNames(megacheckName).
|
||||
WithURL("https://github.com/dominikh/go-tools/tree/master/simple"),
|
||||
|
||||
linter.NewConfig(golinters.NewGosmopolitan(gosmopolitanCfg)).
|
||||
WithSince("v1.53.0").
|
||||
WithLoadForGoAnalysis().
|
||||
WithPresets(linter.PresetBugs).
|
||||
WithURL("https://github.com/xen0n/gosmopolitan"),
|
||||
|
||||
linter.NewConfig(golinters.NewGovet(govetCfg)).
|
||||
WithSince("v1.0.0").
|
||||
WithLoadForGoAnalysis().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue