gometalinter-linter
gometalinter-linter copied to clipboard
A Linter For Atom That Runs gometalinter
gometalinter-linter

Aggregate and normalise the output of a whole bunch of Go linters.
gometalinter-linter
is a Linter provider that runs gometalinter
on your file(s). It depends on the following packages:
-
go-config
-
go-get
- A consumer of the linter service that this package provides:
-
linter
(Recommended) -
nuclide-diagnostics
-
Which Linters Does This Package Run?
Rather than list all the linters that gometalinter
runs here (and let the list get out of date), head over to the gometalinter
repository to find out the current state (it's pretty awesome!):
https://github.com/alecthomas/gometalinter
Configuration
gometalinter
has many flags that can be used for customization. You can use flags to enable or disable specific linters. The --json
flag will always be added if it is missing. The defaults used for this package are:
When Viewed In The Package Settings Dialog
This is helpful if you would like to copy-paste the settings in as a starting point for further customization.
--vendor, --disable-all, --enable=vet, --enable=vetshadow, --enable=golint, --enable=ineffassign, --enable=goconst, --tests, --json, .
When You Open Your Atom Config File (config.cson
/ config.json
)
config.cson
"gometalinter-linter":
args: [
"--vendor"
"--disable-all"
"--enable=vet"
"--enable=vetshadow"
"--enable=golint"
"--enable=ineffassign"
"--enable=goconst"
"--tests"
"--json"
"."
]
config.json
"gometalinter-linter": {
"args": [
"--vendor",
"--disable-all",
"--enable=vet",
"--enable=vetshadow",
"--enable=golint",
"--enable=ineffassign",
"--enable=goconst",
"--tests",
"--json",
"."
]
}