Skip to main content
Skip table of contents

PHP CodeSniffer

PHP CodeSniffer supports the report format checkstyle which is supported by Code Review Assistant out of the box.

Example for Bamboo:

CODE
#!/bin/bash
php phpcs.phar --basepath=${bamboo.build.working.directory} \ 
    --report=checkstyle \
    --report-file=phpcodesniffer.xml .
cat phpcodesniffer.xml || echo "No PHP CodeSniffer report generated"

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.