pixijs/pixi-haxe

View on GitHub

Showing 877 of 877 total issues

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

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

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 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 name masks member of same name
Open

    function removeBoneMask(name:String, ?recursive:Bool):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 getBone(name:String):BoneData;

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 animationConfig masks member of same name
Open

    function playConfig(animationConfig:AnimationConfig):AnimationState;

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

Variable definition of renderer masks member of same name
Open

            var renderer = switch (rendererType) {

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

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

    function drawSegment(context:CanvasRenderingContext2D, textureSource:Dynamic, w:Float, h:Float, x1:Float, y1:Float, x2:Float, y2:Float):Void;

Checks the number of parameters of a method.

Parameter definition of name masks member of same name
Open

    function getArmature(name:String):ArmatureData;

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