You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some are obviously no go for now (for example containedctx which I use to remove context from structs) but maybe there are some which we can toggle with benefits?
I think protogetter, intrange(?), usestdlibvars, prefsprint and mirror might be of some interest initially.
also linter we use now supports formatting which we could use? I didn't dig into it so far but there might be something interesting there.
Screenshots
No response
The text was updated successfully, but these errors were encountered:
intrange: well, not sure whether it really brings benefit, just like use switch instead of if, personally I do not like it because I'd like to write for i:=0;i<n;i++ or if-else freely ....
usestdlibvars: does it work with non-http package? Our case is: ctx.HTML(theCode, ...)
Feature Description
more of a RFC than a gitea feature.
Are there any more linters which might be of interest?
https://golangci-lint.run/usage/linters/
Some are obviously no go for now (for example containedctx which I use to remove context from structs) but maybe there are some which we can toggle with benefits?
I think
protogetter
,intrange
(?),usestdlibvars
,prefsprint
andmirror
might be of some interest initially.also linter we use now supports formatting which we could use? I didn't dig into it so far but there might be something interesting there.
Screenshots
No response
The text was updated successfully, but these errors were encountered: