2017 © Pedro Peláez
 

type-verifier bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

image

vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  • Monday, November 14, 2016
  • by Vektah
  • Repository
  • 1 Watchers
  • 17 Stars
  • 28,417 Installations
  • PHP
  • 28 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 28 Versions
  • 1 % Grown

The README.md

bugfree-dangerzone Build Status

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., (*1)

Getting Started

Add "vektah/bugfree-dangerzone" to your projects composer.json, it should look something like this:, (*2)

    "require-dev": {
        "vektah/bugfree-dangerzone": "0.2.0"
    },

Then of course:, (*3)

composer.phar update

to update your dependencies, (*4)

then run, (*5)

./vendor/bin/bugfree lint src

If your project has its own autoloader you can use it instead:, (*6)

./vendor/bin/bugfree lint --bootstrap yourautoloader.php src

XML Output

For use in CI tools like Jenkins some pretty test count output is just not good enough!, (*7)

To generate machine readable output:, (*8)

./vendor/bin/bugfree lint src --junitXml junit_results.xml --checkstyleXml checkstyle_results.xml

Configuration

Bugfree Dangerzone is rather picky out of the box, but its easy to decrease its verbosity., (*9)

from your projects base directory run:, (*10)

./vendor/bin/bugfree generateConfig

which will build a config file bugfree.json in your current directory:, (*11)

{
    "emitLevel": {
        "unableToResolveType": "error",
        "unableToResolveTypeInComment": "error",
        "unableToResolveUse": "error",
        "useOfUnqualifiedType": "warning",
        "useOfUnqualifiedTypeInComment": "warning",
        "duplicateAlias": "error",
        "malformedUse": "error",
        "multiStatementUse": "warning",
        "missingNamespace": "error",
        "unusedUse": "warning"
    }
}

each of these warning types can be either error, warning, or suppress. For example to ignore all messages about missing namespaces then just change, (*12)

"missingNamespace": "error",

to, (*13)

"missingNamespace": "suppress",

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., (*14)

The Versions

14/11 2016

dev-master

9999999-dev https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

14/11 2016

0.4.3

0.4.3.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

22/01 2016

0.4.2

0.4.2.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

01/07 2015

0.4.1

0.4.1.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

17/06 2015

0.4.0

0.4.0.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

09/04 2014

0.3.9

0.3.9.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

07/04 2014

0.3.8

0.3.8.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

01/04 2014

0.3.7

0.3.7.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

10/03 2014

0.3.6

0.3.6.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

24/01 2014

0.3.5

0.3.5.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

24/01 2014

0.3.4

0.3.4.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

21/01 2014

0.3.3

0.3.3.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

17/01 2014

0.3.2

0.3.2.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

16/01 2014

0.3.1

0.3.1.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

13/01 2014

dev-concurrent

dev-concurrent https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

13/01 2014

0.3.0

0.3.0.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

10/01 2014

0.2.9

0.2.9.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

10/12 2013

0.2.8

0.2.8.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

03/10 2013

0.2.7

0.2.7.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

07/08 2013

0.2.6

0.2.6.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

25/07 2013

0.2.5

0.2.5.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

24/07 2013

0.2.4

0.2.4.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

23/07 2013

0.2.3

0.2.3.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

23/07 2013

0.2.2

0.2.2.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

22/07 2013

0.2.1

0.2.1.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

20/07 2013

0.2.0

0.2.0.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

08/07 2013

v0.1.1

0.1.1.0 https://github.com/Vektah/bugfree-dangerzone

Type verification for php source. Ensures uses and all types within a file verify against the projects auto loader.

  Sources   Download

The Requires

 

The Development Requires

testing ci type typehint

08/07 2013