pixijs/pixi-haxe

View on GitHub

Showing 877 of 877 total issues

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

        _armatureDisplay2.x = renderer.width * 0.5;

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

        _graphics.lineStyle(10, 0xFF0000, 0.8);

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

570 is a magic number
Open

        _graphics.lineTo(570, 350);

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.

250 is a magic number
Open

        _graphics.drawRect(50, 250, 100, 100);

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

        _graphics.lineStyle(20, 0x33FF00);

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.

-100 is a magic number
Open

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

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

120 is a magic number
Open

        _thing.lineTo(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.

-120 is a magic number
Open

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

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

600 is a magic number
Open

        height = 600;
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.

3 is a magic number
Open

        else return 3;

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

-918 is a magic number
Open

        strip.x = -918 / 2;
Severity: Info
Found in samples/src/rope/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.

8 is a magic number
Open

        if (_scale2 > 8) _scale2 = 8;

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

0xF78181 is a magic number
Open

        style.fill = 0xF78181;

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

0.2 is a magic number
Open

        _spine.stateData.setMix("walk", "jump", 0.2);
Severity: Info
Found in samples/src/spine/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.

0x003366 is a magic number
Open

        options.backgroundColor = 0x003366;

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

16 is a magic number
Open

        _context.drawImage(_videoElement, 0, 384, 400, 16, 0, 0, 400, 16);

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

550 is a magic number
Open

        _target.x = Math.floor(Math.random() * 550);

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