wangkirin / arcanist-go

Phabricator's Arcanist Golang support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phabricator's Arcanist Golang support.

This library provide Go support for Arcanist. Initially, these were submitted as D12120, D12620 and D12621. Releasing as a repository until those revisions are reviewed.

Usage

Clone this repository and add it to the .arcconfig file of your project and configure the linters through .arclint.

Example:

$ cat .arcconfig
{
    "load": [
        "../../github.com/kalbasit/arcanist-go"
    ],
    "phabricator.uri": "http://phabricator.nasreddine.com/",
    "repository.callsign": "GOACD",
    "unit.engine": "GoTestEngine"
}


$ cat .arclint
{
    "exclude": [
        "(^Godeps/)",
        "(^\\.arc/__*)",
        "(^\\.arc/.*)",
        "(^\\.gitmodules$)"
    ],
    "linters": {
        "chmod": {
            "type": "chmod"
        },
        "filename": {
            "type": "filename"
        },
        "gofmt": {
            "include": [
                "(\\.go$)"
            ],
            "type": "gofmt"
        },
        "golint": {
            "include": [
                "(\\.go$)"
            ],
            "type": "golint"
        },
        "govet": {
            "include": [
                "(\\.go$)"
            ],
            "type": "govet"
        },
        "json": {
            "include": [
                "(^\\.arcconfig$)",
                "(^\\.arclint$)",
                "(\\.json$)"
            ],
            "type": "json"
        },
        "merge-conflict": {
            "type": "merge-conflict"
        },
        "spelling": {
            "type": "spelling"
        },
        "text": {
            "exclude": [
                "(\\.go$)",
                "(^Makefile$)",
                "(^.travis.yml$)"
            ],
            "type": "text"
        }
    }
}

About

Phabricator's Arcanist Golang support.


Languages

Language:PHP 100.0%