diff options
author | Dan Duvall <dduvall@wikimedia.org> | 2017-07-06 11:30:03 -0700 |
---|---|---|
committer | Dan Duvall <dduvall@wikimedia.org> | 2017-07-11 09:44:18 -0700 |
commit | 86071eec3deceb42b248cddbecce75cdb7f9e6f9 (patch) | |
tree | 674cc1806d4400a605d05d9eb299fbd29f6d3688 | |
parent | 3ad2c475d96303b856939ff82772f32750f5aaf6 (diff) | |
download | blubber-86071eec3deceb42b248cddbecce75cdb7f9e6f9.tar.gz |
Configure arcanist, linters, and unit engine
Summary:
Import `arcanist-go` into `vendor` to provide a unit engine and
`gofmt`/`govet` linters.
Lint with `golint`, `gofmt`, and `govet`.
Test Plan:
Run `arc lint --everything` and revel at the given advice.
Run `arc unit --everything` and hopefully nothing will explode.
Reviewers: thcipriani, mmodell, hashar, Jrbranaa, #release-engineering-team
Reviewed By: mmodell, #release-engineering-team
Tags: #release-engineering-team
Differential Revision: https://phabricator.wikimedia.org/D704
-rw-r--r-- | .arcconfig | 8 | ||||
-rw-r--r-- | .arclint | 17 | ||||
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | vendor/arcanist-go | 0 |
4 files changed, 28 insertions, 0 deletions
diff --git a/.arcconfig b/.arcconfig new file mode 100644 index 0000000..edadd18 --- /dev/null +++ b/.arcconfig @@ -0,0 +1,8 @@ +{ + "phabricator.uri" : "https://phabricator.wikimedia.org/", + "repository.callsign" : "GBLBR", + "unit.engine": "GoTestEngine", + "load" : [ + "vendor/arcanist-go" + ] +} diff --git a/.arclint b/.arclint new file mode 100644 index 0000000..a112053 --- /dev/null +++ b/.arclint @@ -0,0 +1,17 @@ +{ + "exclude": "(^vendor/)", + "linters": { + "golint": { + "type": "golint", + "include": "(\\.go$)" + }, + "govet": { + "type": "govet", + "include": "(\\.go$)" + }, + "gofmt": { + "type": "gofmt", + "include": "(\\.go$)" + } + } +} diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..04d9a68 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vendor/arcanist-go"] + path = vendor/arcanist-go + url = https://github.com/kalbasit/arcanist-go.git diff --git a/vendor/arcanist-go b/vendor/arcanist-go new file mode 160000 +Subproject b669eaa4075690ce58cc9c79aa830db8bb3ccbb |