Nakedret: Finds naked returns in functions greater than a specified function length Misspell: Finds commonly misspelled English words in comments Maligned: Tool to detect Go structs that would take less memory if their fields were sorted ![]() Interfacer: Linter that suggests narrower interface types Gosec (gas ): Inspects source code for security problems ![]() Gofmt reformats Go source code, whereas golint prints out style mistakes Goimports: Goimports does everything that gofmt does. By default this tool runs with -s option to check for code simplification Gofmt: Gofmt checks whether code was gofmt-ed. Gocyclo: Computes and checks the cyclomatic complexity of functions Gocritic: The most opinionated Go source code linter Goconst: Finds repeated strings that could be replaced by a constant Gochecknoinits: Checks that no init functions are present in Go code Gochecknoglobals: Checks that no globals are present in Go code Varcheck: Finds unused global variables and constants ĭepguard: Go linter that checks if package imports are in a list of acceptable packages ĭupl: Tool for code clone detection Unused: Checks Go code for unused constants, variables, functions and types Typecheck: Like the front-end of a Go compiler, parses and type-checks Go code Structcheck: Finds an unused struct fields Staticcheck: Staticcheck is a go vet on steroids, applying a ton of static analysis checks Ineffassign: Detects when assignments to existing variables are not used Govet (vet, vetshadow ): Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string Gosimple: Linter for Go source code that specializes in simplifying a code These unchecked errors can be critical bugs in some cases ![]() Deadcode: Finds unused code Įrrcheck: Errcheck is a program for checking for unchecked errors in go programs.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |