mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
Add testifylint
linter (#4103)
This commit is contained in:
parent
823f02dc35
commit
2d5d29f505
7 changed files with 154 additions and 0 deletions
|
@ -133,6 +133,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||
tagalignCfg *config.TagAlignSettings
|
||||
tagliatelleCfg *config.TagliatelleSettings
|
||||
tenvCfg *config.TenvSettings
|
||||
testifylintCfg *config.TestifylintSettings
|
||||
testpackageCfg *config.TestpackageSettings
|
||||
thelperCfg *config.ThelperSettings
|
||||
unparamCfg *config.UnparamSettings
|
||||
|
@ -213,6 +214,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||
tagalignCfg = &m.cfg.LintersSettings.TagAlign
|
||||
tagliatelleCfg = &m.cfg.LintersSettings.Tagliatelle
|
||||
tenvCfg = &m.cfg.LintersSettings.Tenv
|
||||
testifylintCfg = &m.cfg.LintersSettings.Testifylint
|
||||
testpackageCfg = &m.cfg.LintersSettings.Testpackage
|
||||
thelperCfg = &m.cfg.LintersSettings.Thelper
|
||||
unparamCfg = &m.cfg.LintersSettings.Unparam
|
||||
|
@ -788,6 +790,12 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||
WithPresets(linter.PresetTest).
|
||||
WithURL("https://github.com/maratori/testableexamples"),
|
||||
|
||||
linter.NewConfig(golinters.NewTestifylint(testifylintCfg)).
|
||||
WithSince("v1.55.0").
|
||||
WithPresets(linter.PresetTest, linter.PresetBugs).
|
||||
WithLoadForGoAnalysis().
|
||||
WithURL("https://github.com/Antonboom/testifylint"),
|
||||
|
||||
linter.NewConfig(golinters.NewTestpackage(testpackageCfg)).
|
||||
WithSince("v1.25.0").
|
||||
WithPresets(linter.PresetStyle, linter.PresetTest).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue