Download the PHP package noximo/easycodingstandard-fileoutput without Composer
On this page you can find all versions of the php package noximo/easycodingstandard-fileoutput. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download noximo/easycodingstandard-fileoutput
More information about noximo/easycodingstandard-fileoutput
Files in noximo/easycodingstandard-fileoutput
Package easycodingstandard-fileoutput
Short Description An error formatter for Easy Coding Standard that exports analysis result into HTML file
License MIT
Informations about the package easycodingstandard-fileoutput
Easy Coding Standard FileOutput
An error formatter for Easy Coding Standard that exports analysis result into HTML file
Installation
Setup
Edit or create your ecs.ym file and register new output formatter.
-
$outputFile - path to file where analysis will be outputted (required)
-
$defaultFormatter - specifies which other formatter will be used with FileOutput formatter running silently in the background. You can leave it unsetted if you wish to only work with FileOutput-generated files. (optional)
- $customTemplate - this argument sets custom output template. See table.phtml for implementation details and data structure. (optional)
At the time of writing of this readme these formatters were available by default in ecs:
- ,
Check Easy Coding Standard repository for possible updates.
Usage
simply change --output-format argument to file:
Output
FileOutput will generate HTML file (assuming default template) with hyperlinks directly into PHP files where errors were encountered. If you want to leverage clickable links, set up your enviromenent according to this article: https://tracy.nette.org/en/open-files-in-ide
Note: When you fix an error, file structure and line numbers can no longer correspond to line number at the time of analysis. You'll need to re-run ecs to regenerate output file. Errors are outputed in descending order (line-number wise) so there's bigger chance that you won't lines out of their current positions.
All versions of easycodingstandard-fileoutput with dependencies
symplify/easy-coding-standard Version ^7
nette/utils Version ^3
webmozart/path-util Version ^2
thecodingmachine/safe Version ^1