pixijs/pixi-haxe

View on GitHub

Showing 877 of 877 total issues

Parameter definition of skin masks member of same name
Open

    public function sortPathConstraintAttachment(skin: Skin, slotIndex: Float, slotBone: Bone): Void;

Checks that a local variable or a parameter does not shadow a field that is defined in the same class.

Parameter definition of name masks member of same name
Open

    function addAttachment(slotIndex:Int, name:String, attachment:Attachment):Void;

Checks that a local variable or a parameter does not shadow a field that is defined in the same class.

Parameter definition of name masks member of same name
Open

    function getAttachment(slotIndex:Int, name:String):Attachment;

Checks that a local variable or a parameter does not shadow a field that is defined in the same class.

Parameter definition of bones masks member of same name
Open

    public function sortReset(bones: Array<Bone>): Void;

Checks that a local variable or a parameter does not shadow a field that is defined in the same class.

Too many parameters for function: addRect (> 7)
Open

    function addRect(u:Float, v:Float, x:Float, y:Float, tileWidth:Int, tileHeight:Int, animX:Float, animY:Float):Void;

Checks the number of parameters of a method.

5 is a magic number
Open

        bunnyType %= 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

                    bunny.speedX = Math.random() * 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

        bunny.alpha = 0.5;

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.

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.

0xFF0000 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.

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

0.5 is a magic number
Open

        _thing.beginFill(0xFF0000, 0.5);

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

128 is a magic number
Open

            if (i < 6) _img.position.set(128 * i, 0);

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

0x6699FF is a magic number
Open

        backgroundColor = 0x6699FF;
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.

0.3 is a magic number
Open

            _points[i].x = i * _length + Math.cos(i * 0.3 + _count) * 20;
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.

0.4 is a magic number
Open

        _spine.stateData.setMix("jump", "walk", 0.4);
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.

5 is a magic number
Open

            if (_ex < 5) _ex++;

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