pixijs/pixi-haxe

View on GitHub
src/pixi/plugins/app/Application.hx

Summary

Maintainability
Test Coverage

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.

0xFFFFFF is a magic number
Open

        backgroundColor = 0xFFFFFF;

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

String px appears 3 times in the file
Open

        canvas.style.width = width + "px";

Checks for multiple occurrences of the same string literal within a single file. Code duplication makes maintenance more difficult, so it's better to replace the multiple occurrences with a constant.

String px appears 4 times in the file
Open

        canvas.style.height = height + "px";

Checks for multiple occurrences of the same string literal within a single file. Code duplication makes maintenance more difficult, so it's better to replace the multiple occurrences with a constant.

Unused import pixi.core.RenderOptions detected
Open

import pixi.core.RenderOptions;

Checks for unused or duplicate imports.

There are no issues that match your filters.

Category
Status