Skip to content

Sum/Union/Variant Type in Go and Static Check Tool of switch-case handling

License

Notifications You must be signed in to change notification settings

haya14busa/gosum

Repository files navigation

Sum/Union/Variant Type in Go and Static Check Tool of switch-case handling

GoDoc LICENSE

gosumcheck

Installation

$ go get -u github.com/haya14busa/gosum/cmd/gosumcheck

Example

$ gosumcheck go/ast/...
/usr/lib/go/src/go/ast/commentmap.go:233:3: uncovered cases for ast.Node type switch:
        - *ast.ChanType
        - *ast.Ident
        - *ast.SelectorExpr
        - *ast.TypeAssertExpr
        - *ast.CompositeLit
        - *ast.FieldList
        - *ast.Package
        - *ast.ArrayType
        - *ast.ParenExpr
        - *ast.BinaryExpr
        - *ast.UnaryExpr
        - *ast.BadExpr
        - *ast.FuncLit
        - *ast.CommentGroup
        - *ast.IndexExpr
        - *ast.MapType
        - *ast.StructType
        - *ast.BasicLit
        - *ast.Ellipsis
        - *ast.InterfaceType
        - *ast.Comment
        - *ast.FuncType
        - *ast.SliceExpr
        - *ast.StarExpr
        - *ast.CallExpr
        - *ast.KeyValueExpr
/usr/lib/go/src/go/ast/filter.go:158:2: uncovered cases for ast.Spec type switch:
        - *ast.ImportSpec
/usr/lib/go/src/go/ast/filter.go:209:2: uncovered cases for ast.Decl type switch:
        - *ast.BadDecl

See gosumcheck -h and Sum/Union/Variant Type in Go and Static Check Tool of switch-case handling for detail.

About

Sum/Union/Variant Type in Go and Static Check Tool of switch-case handling

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages