-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# arcanist-external-json-linter | ||
|
||
This is an Arcanist extension providing a mechanism for implementing external | ||
Linter tools. The extension allows linter tools to emit JSON-serialized | ||
violation messages to standard output. | ||
|
||
## Installation | ||
|
||
First add this repository as a submodule of the project, | ||
|
||
``` | ||
$ git submodule add https://github.com/tagview/arcanist-extensions.git .arcanist-external-json-linter | ||
$ git submodule update --init | ||
``` | ||
|
||
Then load the extension in `.arcconfig`, | ||
``` | ||
{ | ||
"project_id": "my-awesome-project", | ||
"conduit_uri": "https://example.org", | ||
"load": [ | ||
".arcanist-external-json-linter" | ||
] | ||
} | ||
``` | ||
|
||
## Usage | ||
|
||
Add a linter to `.arclint`, | ||
``` | ||
{ | ||
"linters": { | ||
"my-linter": { | ||
"type": "external-json", | ||
"external-json.script": "python .arc-linters/check-binaries.py $1" | ||
} | ||
} | ||
} | ||
``` |