Skip to content

haskellformac/arcanist-external-json-linter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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. See Phabricator T9827 for the original motivation behind this extension.

Installation

First add this repository as a submodule of the project,

$ git submodule add https://github.com/bgamari/arcanist-external-json-linter.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"
    }
  }
}