pixijs/pixi-haxe

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

Summary

Maintainability
Test Coverage

1100 is a magic number
Open

        snakeContainer.scale.x = width / 1100;
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.1 is a magic number
Open

        _count += 0.1;
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.

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

918 is a magic number
Open

        _length = 918 / 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.

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

0xFFFFFF is a magic number
Open

        backgroundColor = 0xFFFFFF;
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.5 is a magic number
Open

            _points[i].y = Math.sin(i * 0.5 + _count) * 30;
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.

30 is a magic number
Open

            _points[i].y = Math.sin(i * 0.5 + _count) * 30;
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.

20 is a magic number
Open

        _length = 918 / 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.

20 is a magic number
Open

        for (i in 0 ... 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.

Duplicate import pixi.plugins.app.Application detected
Open

import pixi.plugins.app.Application;
Severity: Info
Found in samples/src/rope/Main.hx by haxe-checkstyle

Checks for unused or duplicate imports.

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/rope/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