pixijs/pixi-haxe

View on GitHub
samples/src/events/Main.hx

Summary

Maintainability
Test Coverage

0.5 is a magic number
Open

        _img.anchor.set(0.5);

Checks that there are no magic numbers. By default, -1, 0, 1, and 2 are not considered to be magic numbers.

0.1 is a magic number
Open

            _img.rotation += 0.1;

Checks that there are no magic numbers. By default, -1, 0, 1, and 2 are not considered to be magic numbers.

12 is a magic number
Open

        style.fontSize = 12;

Checks that there are no magic numbers. By default, -1, 0, 1, and 2 are not considered to be magic numbers.

400 is a magic number
Open

        _img.position.set(400, 300);

Checks that there are no magic numbers. By default, -1, 0, 1, and 2 are not considered to be magic numbers.

0xFFFFFF is a magic number
Open

        backgroundColor = 0xFFFFFF;

Checks that there are no magic numbers. By default, -1, 0, 1, and 2 are not considered to be magic numbers.

300 is a magic number
Open

        _img.position.set(400, 300);

Checks that there are no magic numbers. By default, -1, 0, 1, and 2 are not considered to be magic numbers.

Invalid method name signature: main (name should be ~/^_[a-z][a-zA-Z0-9]*$/)
Open

    static function main() {
        new Main();
    }

Checks that method names conform to a format specified by the format property.

There are no issues that match your filters.

Category
Status