Changeset View
Changeset View
Standalone View
Standalone View
src/docs/user/userguide/arcanist_lint_unit.diviner
Show All 32 Lines | make this work, you need to do three things: | ||||
- add the library where the class exists to your `.arcconfig`; | - add the library where the class exists to your `.arcconfig`; | ||||
- add the class name to your `.arcconfig` as the **lint.engine**, | - add the class name to your `.arcconfig` as the **lint.engine**, | ||||
**unit.engine**, or **arcanist_configuration**. | **unit.engine**, or **arcanist_configuration**. | ||||
= Create a libphutil Library = | = Create a libphutil Library = | ||||
If you haven't created a library for the class to live in yet, you need to do | If you haven't created a library for the class to live in yet, you need to do | ||||
that first. Follow the instructions in | that first. Follow the instructions in | ||||
@{article@phabcontrib:Adding New Classes}, then make the library loadable by | @{article@contrib:Adding New Classes}, then make the library loadable by | ||||
adding it to your `.arcconfig` like this: | adding it to your `.arcconfig` like this: | ||||
{ | { | ||||
// ... | // ... | ||||
"load" : [ | "load" : [ | ||||
// ... | // ... | ||||
"/path/to/my/library", // Absolute path | "/path/to/my/library", // Absolute path | ||||
"support/arcanist", // Relative path in this project | "support/arcanist", // Relative path in this project | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0