ARO-RP/vendor/github.com/tetafro/godot
Jim Minter 44e1c425d7
vendor
2020-11-19 08:09:58 -06:00
..
.gitignore vendor 2020-11-19 08:09:58 -06:00
.golangci.yml vendor 2020-11-19 08:09:58 -06:00
.goreleaser.yml vendor 2020-11-19 08:09:58 -06:00
LICENSE vendor 2020-11-19 08:09:58 -06:00
Makefile vendor 2020-11-19 08:09:58 -06:00
README.md vendor 2020-11-19 08:09:58 -06:00
go.mod vendor 2020-11-19 08:09:58 -06:00
godot.go vendor 2020-11-19 08:09:58 -06:00

README.md

godot

License Github CI Go Report Codecov

Linter that checks if all top-level comments contain a period at the end of the last sentence if needed.

CodeReviewComments quote:

Comments should begin with the name of the thing being described and end in a period

Install

NOTE: Godot is available as a part of GolangCI Lint (disabled by default).

Build from source

go get -u github.com/tetafro/godot/cmd/godot

or download binary from releases page.

Run

godot ./myproject

Autofix flags are also available

godot -f ./myproject # fix issues and print the result
godot -w ./myproject # fix issues and replace the original file

Examples

Code

package math

// Sum sums two integers
func Sum(a, b int) int {
    return a + b // result
}

Output

Top level comment should end in a period: math/math.go:3:1

See more examples in test files: