nishanths/exhaustive
Check exhaustiveness of switch statements of enum-like constants in Go source code.
GoBSD-2-Clause
Issues
- 2
- 0
go test ./... takes 35–45 seconds to complete
#75 opened by nishanths - 1
define behavior when both "ignore" and "enforce" comment is present on the same switch/map statement
#49 opened by nishanths - 0
stricter requirements for directive comments
#70 opened by nishanths - 2
- 0
- 0
- 0
- 2
- 5
request a new option enforce-enum-types
#65 opened by fatsheep9146 - 1
support for reading "-ignore-enum-types" and "-ignore-enum-members" values from files
#57 opened by nishanths - 2
Report invalid enforcement comments
#59 opened by ImprintNav - 1
- 1
- 4
Check enum based on struct
#33 opened by maratori - 2
Allow exhaustiveness checks on structs
#40 opened by FastNav - 1
report ineffectual ignore comments
#52 opened by nishanths - 1
- 5
- 1
superfluous type conversion in case clause results in a false positive report
#42 opened by nishanths - 3
missing diagnostics for switch statements that switch on a value whose type is a type parameter
#31 opened by nishanths - 9
- 0
in printed diagnostic, sort the missing constant names by AST order (not lexicographical order)
#41 opened by nishanths - 3
- 1
- 1
False positive if dot import is used
#32 opened by maratori - 6
- 0
analyzeCaseClauseExpr may not correctly handle "." import enum members in case clause
#27 opened by nishanths - 0
- 1
support exhaustiveness checks for non package-level enum types (e.g. enum types defined inside a function)
#11 opened by nishanths - 0
- 4
bug: duplicate case is reported
#3 opened by flisky - 5
- 1
add support for new flags to golangci-lint
#20 opened by nishanths - 3
rename and deprecate '-ignore-pattern' flag
#14 opened by nishanths - 1
switch the project's CI to GitHub's built-in CI
#16 opened by nishanths - 1
consider making the '-fix' flag a no-op
#18 opened by nishanths - 3
- 5
Support type aliasing
#7 opened by Antonboom - 3
Panic in latest release
#10 opened by angadn - 2
- 2
What if I have include some cases in default?
#6 opened by mooxiu - 3
"_" should be excluded
#2 opened by sni - 1
handle "default" case
#1 opened by dcu