src/pixi/plugins/app/Application.hx
Variable definition of renderer
masks member of same name Open
Open
var renderer = switch (rendererType) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
backgroundColor = 0xFFFFFF;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
canvas.style.width = width + "px";
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
canvas.style.height = height + "px";
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
Open
import pixi.core.RenderOptions;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Checks for unused or duplicate imports.