swisnl/phpstan-bitbucket

PHPStan error formatter for Bitbucket Pipeline Reports

Installs: 11 770

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 1

Type:phpstan-extension

0.3.0 2023-12-22 07:28 UTC

This package is auto-updated.

Last update: 2024-03-24 13:56:54 UTC


README

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

This PHPStan error formatter will add annotations in Bitbucket, for example in pull requests, similar to the built-in GitHub formatting.

Installation

Via Composer

composer require --dev swisnl/phpstan-bitbucket

If you also have phpstan/extension-installer installed, then you're all set!

Manual installation

If you don't want to use phpstan/extension-installer, include extension.neon in your project's PHPStan config:

includes:
    - vendor/swisnl/phpstan-bitbucket/extension.neon

Usage

To use this custom error formatter you need to run PHPStan with --error-format=bitbucket option. For example:

vendor/bin/phpstan analyse src -l8 --error-format=bitbucket

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

This package is a fork of alxt/phpstan-bitbucket with some updates.

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.