Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 2.92 KB

README.md

File metadata and controls

79 lines (51 loc) · 2.92 KB

PHP CS Fixer Bitbucket error reporter

Latest Version on Packagist Software License Buy us a tree Total Downloads Maintained by SWIS

This PHP CS Fixer reporter will add annotations in Bitbucket, for example in pull requests, similar to the built-in GitLab formatting.

Installation

Via Composer

composer require --dev swisnl/php-cs-fixer-bitbucket

Usage

To use this custom reporter you need to run PHP CS Fixer with the GitLab format and pipe the results to this package. For example:

php-cs-fixer check --format=gitlab | phpcsf2bb

Line numbers

PHP CS Fixer doesn't keep track of line numbers, so all annotations are at the top of the file. You can add (approximate) line numbers based on the diff, by using the --diff argument for PHP CS Fixer. For example:

php-cs-fixer check --format=gitlab --diff | phpcsf2bb

Screenshots

Annotations Report

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

SWIS ❤️ Open Source

SWIS is a web agency from Leiden, the Netherlands. We love working with open source software.