Download the PHP package vektah/bugfree-dangerzone without Composer
On this page you can find all versions of the php package vektah/bugfree-dangerzone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bugfree-dangerzone
bugfree-dangerzone
Bugfree Dangerzone is a PHP namespace validator written in PHP. It uses your autoloader to verify that:
- all of the use statements are valid
- that all exception catch blocks and type hints have a valid type
- all doc block types are valid (eg @param Foo $foo)
- all Doctrine annotations can be resolved (eg @FOobar())
- access level validation for constructors and static methods
- Finally that all use statements are actually used.
Getting Started
Add "vektah/bugfree-dangerzone" to your projects composer.json, it should look something like this:
Then of course:
to update your dependencies
then run
If your project has its own autoloader you can use it instead:
XML Output
For use in CI tools like Jenkins some pretty test count output is just not good enough!
To generate machine readable output:
Configuration
Bugfree Dangerzone is rather picky out of the box, but its easy to decrease its verbosity.
from your projects base directory run:
which will build a config file bugfree.json in your current directory:
each of these warning types can be either error, warning, or suppress. For example to ignore all messages about missing namespaces then just change
to
If the configuration gets updated in the future to have more options then running generateConfig again will keep your current settings and add any new defaults.
All versions of bugfree-dangerzone with dependencies
nikic/php-parser Version 3.0.*@beta || ^3.0
symfony/console Version *
doctrine/annotations Version *
vektah/common Version *
vektah/parser-combinator Version *