pixijs/pixi-haxe

View on GitHub
samples/src/nape/Main.hx

Summary

Maintainability
Test Coverage

60 is a magic number
Open

        _space.step(1 / 60);
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.

10 is a magic number
Open

        pball.shapes.add(new Circle(10));
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.

800 is a magic number
Open

        pball.position.setxy(Std.random(800), 0);
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.

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.

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.

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

0.5 is a magic number
Open

        ball.anchor.set(0.5, 0.5);
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.

600 is a magic number
Open

        var gravity = Vec2.weak(0, 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.

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.

0.5 is a magic number
Open

        ball.anchor.set(0.5, 0.5);
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.

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.

Invalid method name signature: main (name should be ~/^_[a-z][a-zA-Z0-9]*$/)
Open

    static function main() {
        new Main();
    }
Severity: Info
Found in samples/src/nape/Main.hx by haxe-checkstyle

Checks that method names conform to a format specified by the format property.

There are no issues that match your filters.

Category
Status