grafana/pkg/cmd/grafana-cli
Oleg Gaidarenko 04b3afcd15
Chore: Implement revive (#16200)
Since we do not like some of the default golint rules,
this commit proposes to use https://github.com/mgechev/revive.

And potential revive speed-up should't hurt :).

Right now, presented config (./conf/revive.toml) is permissive,
we might improve it over time however. Fixes for found revive
issues in the code are very limited so it wouldn't be large to review.

Also in this commit:

* Add annotations for makefile commands and declare phony targets

* Rename "gometalinter" script and CI command to "lint"
  since we are doing there a bit more then using gometalinter package

* Add Makefile rules to .editorconfig

* Documentation which mentioned "golint" replaced with revive

Fixes #16109
Ref #16160
2019-03-27 17:53:49 +01:00
..
commands Chore: Implement revive (#16200) 2019-03-27 17:53:49 +01:00
logger tech(cli): rename log to logger to separate from server logger 2016-06-03 12:22:30 +02:00
models Revert "removes dependencies install for plugins" 2018-02-16 09:49:29 +01:00
services use pluginName consistently when upgrading plugins 2018-09-13 17:19:51 -04:00
utils Return correct path for OpenBSD in cli's returnOsDefault (#13089) 2018-08-30 11:56:52 +02:00
main.go Always verify TLS unless explicitly told otherwise 2017-10-06 17:09:27 +01:00