You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,8 @@ Options:
77
77
-s, --max-size[=MAX-SIZE] Sets max size of php file. If file is larger, it will be skipped. [default: "1mb"]
78
78
--file-extensions[=FILE-EXTENSIONS] Sets file extensions to be parsed. [default: "php, php5, phtml"]
79
79
--skip-checks[=SKIP-CHECKS] Skip all checks containing any of the given values. Pass a comma-separated list for multiple values.
80
-
--output-json[=OUTPUT-JSON] Path to store json-file with analyze results. If '-' passed, json will be printed on stdout.
80
+
--output[=OUTPUT] The output type required. Options: stdout, json, junit. Defaults to stdout.
81
+
--output-file[=OUTPUT-FILE] File path to store results where output is not stdout.
81
82
-h, --help Display help for the given command. When no command is given display help for the scan command
82
83
-q, --quiet Do not output any message
83
84
-V, --version Display this application version
@@ -91,7 +92,7 @@ Options:
91
92
- By providing `--exclude` option you can exclude specific folders or files from analyze. For example, `--exclude vendor` will prevent checking third-party libraries.
92
93
- By providing `--skip-checks` option you can exclude specific checks from analyze.
93
94
- If your files has unusual extension, you can specify all exts by `--file-extensions` option. By default, it uses `php`, `phtml` and `php5`.
94
-
- If you need to generate machine-readable analyze result, use `--output-json` option to specify path to store json or `--output-json=-` to print json to stdout.
95
+
- If you need to generate machine-readable analyze result, use the `--output-file` option to specify path to store the output file as specified on `--output` (json or junit).
Also, you can store analyze result in json format for automatic check. Pass `--output-json=FILENAME` to write result to **FILENAME** file or `--output-json=-` to output to *stdout*.
126
+
Also, you can store analyze result in json format for automatic check. Pass `--output-file=FILENAME` to write result to **FILENAME** file or do not set to output to *stdout*.
127
+
128
+
## Junit report format
129
+
Also, you can store analyze result in junit format for automatic check. Pass `--output-file=FILENAME` to write result to **FILENAME** file or do not set to output to *stdout*.
126
130
127
131
**Format of json** - dictionary with items:
128
132
- InfoMessage[]**info_messages** - list of information messages about analyzing process.
@@ -139,6 +143,7 @@ Items description:
139
143
- string **file** - relative path to file in which issue found (*like src/ProblemClass.php*)
140
144
- string **path** - absolute path to file in which issue found (*like /var/www/html/project/src/ProblemClass.php*)
141
145
- int **line** - line in file in which issue found
146
+
- int **column** - column in line in which issue found
142
147
- string **category** - issue category - any of (changed | removed | violation)
143
148
- string **type** - concrete issue type (*like "constant" or "identifier"*)
144
149
- string **checker** - concrete issue object which may cause problem (*like `magic_quotes_runtime` or `preg_replace() (@preg_replace_e_modifier)`*)
0 commit comments