Skip to content

Commit ccc83d4

Browse files
wip
1 parent e0dc49f commit ccc83d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ chmod +x phparkitect.phar
4141
./phparkitect.phar check
4242
```
4343

44+
When you run phparkitect as phar and you have custom rules in need of autoloading the project classes you'll need to specify the option `--autoload=[AUTOLOAD_FILE]`.
45+
4446
# Usage
4547

4648
To use this tool you need to launch a command via Bash:
@@ -473,6 +475,7 @@ phparkitect check --config=/project/yourConfigFile.php
473475
* `--target-php-version`: With this parameter, you can specify which PHP version should use the parser. This can be useful to debug problems and to understand if there are problems with a different PHP version.
474476
Supported PHP versions are: 7.4, 8.0, 8.1, 8.2 8.3
475477
* `--stop-on-failure`: With this option the process will end immediately after the first violation.
478+
* `--autoload`: specify the path of an autoload file to be loaded when running phparkitect.
476479

477480
## Run only a specific rule
478481
For some reasons, you might want to run only a specific rule, you can do it using `runOnlyThis` like this:

0 commit comments

Comments
 (0)