pixijs/pixi-haxe

View on GitHub
samples/src/filters/colormatrix/Main.hx

Summary

Maintainability
Test Coverage

0.5 is a magic number
Open

        _light1.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.5 is a magic number
Open

        _light2.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.01 is a magic number
Open

        _bg.rotation += 0.01;

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

0.01 is a magic number
Open

        _bgFront.rotation -= 0.01;

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

0.01 is a magic number
Open

        _light2.rotation += 0.01;

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

        _count += 0.1;

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

0.5 is a magic number
Open

        _panda.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.

5 is a magic number
Open

        _colorMatrix[5] = Math.sin(_count / 2);

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

0x00FF66 is a magic number
Open

        backgroundColor = 0x00FF66;

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

0.01 is a magic number
Open

        _count += 0.01;

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

0.02 is a magic number
Open

        _light1.rotation += 0.02;

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

3 is a magic number
Open

        _colorMatrix[3] = Math.cos(_count) * 1.5;

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

0.5 is a magic number
Open

        _bg.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.04 is a magic number
Open

        _panda.scale.x = 1 + Math.sin(_count) * 0.04;

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

1.5 is a magic number
Open

        _colorMatrix[3] = Math.cos(_count) * 1.5;

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

6 is a magic number
Open

        _colorMatrix[6] = Math.sin(_count / 4);

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

        var style:DefaultStyle = {fontSize: "12", fontFamily:"Arial", fontWeight: "bold", fill: 0xFFFFFF};

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

3 is a magic number
Open

        _colorMatrix[1] = Math.sin(_count) * 3;

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

0.5 is a magic number
Open

        _bgFront.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.04 is a magic number
Open

        _panda.scale.y = 1 + Math.cos(_count) * 0.04;

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

3 is a magic number
Open

        _colorMatrix[4] = Math.sin(_count / 3) * 2;

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