pixijs/pixi-haxe

View on GitHub

Showing 877 of 877 total issues

Method _replaceDisplay length is 74 lines (max allowed is 50)
Open

    function _replaceDisplay() {
        _displayIndex = (_displayIndex + 1) % _replaceDisplays.length;

        var replaceDisplayName = _replaceDisplays[_displayIndex];

Severity: Critical
Found in samples/src/dragonbones/Main.hx by haxe-checkstyle

Checks for long methods. If a method becomes very long it is hard to understand. Therefore long methods should usually be refactored into several individual methods that focus on a specific task.

Method _setup length is 55 lines (max allowed is 50)
Open

    function _setup() {
        renderer.view.style.transform = "translatez(0)";
        maxX = Browser.window.innerWidth;
        maxY = Browser.window.innerHeight;

Severity: Critical
Found in samples/src/bunnymark/Main.hx by haxe-checkstyle

Checks for long methods. If a method becomes very long it is hard to understand. Therefore long methods should usually be refactored into several individual methods that focus on a specific task.

Method _init length is 54 lines (max allowed is 50)
Open

    function _init() {
        position = "fixed";
        backgroundColor = 0x003366;
        antialias = true;
        onUpdate = _onUpdate;
Severity: Critical
Found in samples/src/graphics/Main.hx by haxe-checkstyle

Checks for long methods. If a method becomes very long it is hard to understand. Therefore long methods should usually be refactored into several individual methods that focus on a specific task.

Method _draw length is 55 lines (max allowed is 50)
Open

    function _draw() {
        if (_videoElement.paused || _videoElement.ended) return;
        //_context.drawImage(_videoElement, 0, 200, 480, 50, 0, 0, 480, 50);

        _context.drawImage(_videoElement, 0, 384, 400, 16, 0, 0, 400, 16);
Severity: Critical
Found in samples/src/stream/Main.hx by haxe-checkstyle

Checks for long methods. If a method becomes very long it is hard to understand. Therefore long methods should usually be refactored into several individual methods that focus on a specific task.

Parameter definition of height masks member of same name
Open

    function resize(width:Float, height:Float):Void;

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

Parameter definition of position masks member of same name
Open

    function toLocal(position:Point, ?frm:DisplayObject, ?point:Point):Point;

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: new (> 7)
Open

    function new(lineWidth:Float, lineColor:Int, lineAlpha:Float, fillColor:Int, fillAlpha:Float, fill:Bool, nativeLines:Bool, shape:Dynamic);

Checks the number of parameters of a method.

Parameter definition of position masks member of same name
Open

    function toGlobal(position:Point, ?point:Point, ?skipUpdate:Bool):Point;

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

Parameter definition of x masks member of same name
Open

    override function contains(x:Float, y:Float):Bool;

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: setTransform (> 7)
Open

    function setTransform(?x:Float, ?y:Float, ?scaleX:Float, ?scaleY:Float, ?rotation:Float, ?skewX:Float, ?skewY:Float, ?pivotX:Float, ?pivotY:Float):DisplayObject;

Checks the number of parameters of a method.

Parameter definition of width masks member of same name
Open

    function resize(width:Float, height:Float):Void;

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

Parameter definition of y masks member of same name
Open

    override function contains(x:Float, y:Float):Bool;

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

Parameter definition of rect masks member of same name
Open

    function getRectangle(rect:Rectangle):Rectangle;

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

Parameter definition of shape masks member of same name
Open

    function addHole(shape:Dynamic):Void;

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

Parameter definition of resolution masks member of same name
Open

    function generateTexture(displayObject:DisplayObject, scaleMode:ScaleModes, resolution:Float, ?region:Rectangle):Texture;

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

Parameter definition of height masks member of same name
Open

    function resize(width:Float, height:Float):Void;

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

Parameter definition of width masks member of same name
Open

    function resize(width:Float, height:Float):Void;

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

Parameter definition of sourceFrame masks member of same name
Open

    function calculateProjection(destinationFrame:Rectangle, sourceFrame:Rectangle):Void;

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

Parameter definition of imageUrl masks member of same name
Open

    static function fromImage(imageUrl:String, ?crossorigin:Bool, ?scaleMode:ScaleModes):BaseTexture;

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

Parameter definition of source masks member of same name
Open

    function loadSource(source:String):Void;

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

Severity
Category
Status
Source
Language