Skip to content

swisnl/phpstan-bitbucket

 
 

Repository files navigation

PHPStan Bitbucket error formatter

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 [email protected] 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.

Packages

No packages published

Languages

  • PHP 100.0%