pixijs/pixi-haxe

View on GitHub

Showing 877 of 877 total issues

128 is a magic number
Open

                else _img.position.set(128 * (i - 5), 128);

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

10 is a magic number
Open

        for (i in 0 ... 10) {

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

800 is a magic number
Open

        width = 800;
Severity: Info
Found in samples/src/nape/Main.hx by haxe-checkstyle

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

24 is a magic number
Open

            _reels.height = Browser.window.innerHeight - (24 * _scale);

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

80 is a magic number
Open

        _label2.position.set(0, 80);
Severity: Info
Found in samples/src/text/Main.hx by haxe-checkstyle

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

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

3 is a magic number
Open

        _bunny.scale.set(3);

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

26 is a magic number
Open

        var bunny1 = new Texture(wabbitTexture.baseTexture, new Rectangle(2, 47, 26, 37));

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

26 is a magic number
Open

        var bunny2 = new Texture(wabbitTexture.baseTexture, new Rectangle(2, 86, 26, 37));

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

            bunny.speedY = (Math.random() * 5) - 3;

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

0x003366 is a magic number
Open

        backgroundColor = 0x003366;

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.

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.

0.5 is a magic number
Open

        _littleRobot.filters = [new GlowFilter(15, 2, 1, 0xFF0000, 0.5)];

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

210 is a magic number
Open

        _graphics.moveTo(210, 300);

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

580 is a magic number
Open

        _graphics.lineTo(580, 20);

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

20 is a magic number
Open

        _thing.moveTo(-120 + Math.sin(_count) * 20, -100 + Math.cos(_count) * 20);

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

        _thing.rotation = _count * 0.1;

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

50 is a magic number
Open

        for (i in 0 ... 50) _loader.add("img" + (i + 1), (i + 1) + ".png");

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

800 is a magic number
Open

        _floor.shapes.add(new Polygon(Polygon.rect(0, 595, 800, 1)));
Severity: Info
Found in samples/src/nape/Main.hx by haxe-checkstyle

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

Severity
Category
Status
Source
Language