You can make the linter available globally for multiple projects using one of two methods:
Method 1: Directory Proximity
Clone the clang-format-linter repository into the same directory where arcanist and libphutil are located. Arcanist automatically searches for modules in the directory one level up from itself.
Directory Structure:
> ls
arcanist
clang-format-linter
libphutil
.arcconfig configuration:
{
"load": [
"clang-format-linter"
]
// ...
}
Method 2: Absolute Path
Clone the repository to a fixed location (e.g., ~/.dev-tools) and reference that absolute path in your .arcconfig.
cd ~/.dev-tools
git clone https://github.com/vhbit/clang-format-linter
{
"load": [
"~/.dev-tools/clang-format-linter"
]
// ...
}