Skip to content

Conversation

@Antonboom
Copy link
Contributor

Closes #3555

@Antonboom Antonboom requested a review from ldez March 18, 2023 07:22
gomodguardCfg *config.GoModGuardSettings
gosecCfg *config.GoSecSettings
gosimpleCfg *config.StaticCheckSettings
gosimpleCfg config.StaticCheckGoSimpleSettings
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it doesn't make sense to use pointers here (for other settings too).
Not big memory win, but code is complicated a lot

DotImportWhitelist: scconfig.DefaultConfig.DotImportWhitelist,
HTTPStatusCodeWhitelist: scconfig.DefaultConfig.HTTPStatusCodeWhitelist,
}
func staticCheckConfig(settings interface{ ChecksList() []string }) *scconfig.Config {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I tried use generics, but the solution turned out to be less elegant

@ldez
Copy link
Member

ldez commented Mar 18, 2023

#3555 is about a problem during the generation of the doc, this PR doesn't fix the problem.

the deprecated configuration must be kept.

@ldez ldez closed this Mar 18, 2023
@ldez ldez added the declined label Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: unused configuration broken link

2 participants