Changeset View
Changeset View
Standalone View
Standalone View
src/docs/user/userguide/arcanist_lint_unit.diviner
| Show All 31 Lines | make this work, you need to do three things: | ||||
| - actually write the class; | - actually write the class; | ||||
| - 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 @{article:libphutil Libraries User Guide}, | that first. Follow the instructions in | ||||
| then make the library loadable by adding it to your ##.arcconfig## like this: | @{article:libphutil Libraries User Guide}, then make the library loadable by | ||||
| 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 42 Lines • Show Last 20 Lines | |||||