swisnl/php-cs-fixer-bitbucket

PHP CS Fixer reporter for Bitbucket Pipeline Reports

Installs: 692

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 1

Type:php-cs-fixer-extension

0.2.0 2024-01-23 10:30 UTC

This package is auto-updated.

Last update: 2024-11-23 12:24:15 UTC


README

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 security@swis.nl 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.