Modify ↓
Ticket #202 (closed task: fixed)
Add PHP_CodeSniffer task
| Reported by: | dthomas | Owned by: | dthomas |
|---|---|---|---|
| Priority: | major | Milestone: | 2.3.1 |
| Component: | phing-tasks-ext | Version: | 2.3.0 |
| Keywords: | task code sniffer | Cc: |
Description
Add a task for PHP_CodeSniffer with the following features:
- specify one file or a fileset to check (you can even specify directories and PHP_CodeSniffer will search for the files)
- specify the name of the standard or and absolute path to a custom external stored standard (requires PHP_CodeSniffer 1.0)
- setting of the parameters PHPCodeSniffer has: showWarning, verbosity, tabWidth to replace tabs with spaces, allowedFileExtensions, ignorePatterns, noSubdirectories, configData
- choose between the custom output format implemented in the task itself or one of the formats PHPCodeSniffer provides: xml, checkstyle, csv, report and summary
- generate the docs by setting the output format to doc
- output the list of used Sniffs
- documentation of the task
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

(In [328]) Refs #202 - Added PHP_CodeSniffer task and documentation