Add config for gometalinter 52/185552/23
authorAlexander Mazuruk <a.mazuruk@samsung.com>
Tue, 31 Jul 2018 12:47:52 +0000 (14:47 +0200)
committerAlexander Mazuruk <a.mazuruk@samsung.com>
Thu, 6 Sep 2018 15:18:44 +0000 (17:18 +0200)
commit10f1267f3773144b9b9c6bc248ce82b402a1cfaa
treedce0a4c5432ee07effe95649e0386d210d60e351
parentd37ae9cde0ddd8c04769f360370b7267f392c1f0
Add config for gometalinter

As there are differences between Boruta and Weles (e.g. usage of
vendoring) we need different sets of linter policies.

Tool:
https://github.com/alecthomas/gometalinter

Install:
$ go get -u gopkg.in/alecthomas/gometalinter.v2

Using gometalinter in Weles repository root will use this config by
default.

Config file documentation:
https://github.com/alecthomas/gometalinter#configuration-file

Format of the config file is determined by Config struct:
https://github.com/alecthomas/gometalinter/blob/master/config.go

There is an issue with gas installation currently:
https://github.com/alecthomas/gometalinter/issues/508

Currently there is a pull request to add support for ignoring generated
files:
https://github.com/walle/lll/pull/4

In current patchset generated files are excluded manually (by pkg or
filename)

Change-Id: Ib750066370392d44555aa5b5d4f342acc06c9b36
Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
.gometalinter.json [new file with mode: 0644]