Showing 100 of 824 total issues
File load-template.ts
has 6015 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable quotes */
/* eslint-disable max-lines */
import type sharp from "sharp";
import type { Image } from "./image.js";
File costumes.ts
has 2633 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* This file was auto-generated by a frida agent
*
* Generated by:
* /workspaces/tinyburg/packages/insight/dist/src/agents/get-costume-data.js
File missions.ts
has 2502 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* This file was auto-generated by a frida agent
*
* Generated by:
* /workspaces/tinyburg/packages/insight/dist/src/agents/get-mission-data.js
File bitizen.ts
has 1280 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* This file was auto-generated by a frida agent
*
* Generated by:
* /workspaces/tinyburg/packages/insight/dist/src/agents/get-bitizen-data.js
File floors.ts
has 806 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* This file was auto-generated by a frida agent
*
* Generated by:
* /workspaces/tinyburg/packages/insight/dist/src/agents/get-floor-data.js
File roofs.ts
has 464 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* This file was auto-generated by a frida agent
*
* Generated by:
* /workspaces/tinyburg/packages/insight/dist/src/agents/get-roof-data.js
File install-run.js
has 459 lines of code (exceeds 250 allowed). Consider refactoring. Open
// THIS FILE WAS GENERATED BY A TOOL. ANY MANUAL MODIFICATIONS WILL GET OVERWRITTEN WHENEVER RUSH IS UPGRADED.
//
// This script is intended for usage in an automated build environment where a Node tool may not have
// been preinstalled, or may have an unpredictable version. This script will automatically install the specified
// version of the specified tool (if not already installed), and then pass a command-line to it.
Function matchTemplate
has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring. Open
export const matchTemplate = (
searchImage: Image,
templateImage: Image,
mask?: Image,
wantExact: boolean = true,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function parsingSubRoutine
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
export const parsingSubRoutine = function <T extends GenericBlocks, U extends GenericJsonSave<T>>(
nimblebitSave: DecompressedSave,
blocksToUse: T,
log: ILogger = debug
): U {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File route.ts
has 339 lines of code (exceeds 250 allowed). Consider refactoring. Open
const bitLayers = [
"skin",
"eyes",
"hair",
"facialhair",
Function 679877
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "isVariableSetInNpmrcFile": () => (/* binding */ isVariableSetInNpmrcFile),
Function loadFromVersion
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
export const loadFromVersion = async (version: string, force = false, log: ILogger = debug): Promise<IStructs> => {
log.debug("Attempting to load structs for version: %s", version);
// Filter the folders in this directory for ones that match the version
const folders = await fs.readdir(new URL(".", import.meta.url), { withFileTypes: true });
Function WithMouseKeyHandler
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
export const WithMouseKeyHandler: React.FunctionComponent<IWithMouseKeyHandlerProps> = ({
jsep,
emulatorClient,
children,
}) => {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function concatenationSubRoutine
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
export const concatenationSubRoutine = function <T extends GenericBlocks, U extends GenericJsonSave<T>>(
jsonSave: U,
blocksToUse: T,
log: ILogger = debug
): DecompressedSave {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function matchTemplate
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
export const matchTemplate = (
searchImage: Image,
templateImage: Image,
mask?: Image,
wantExact: boolean = true,
Function sort
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public sort(compare: (a: NodeData, b: NodeData) => boolean): DoublyLinkedList<NodeData> {
if (this._head === undefined || this._tail === undefined) {
return this;
}
if (this.length < 2) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function Page
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
export default function Page() {
return (
<div className="flex h-screen bg-black">
<div className="w-screen h-screen flex flex-col justify-center items-center">
<svg
Function parsingSubRoutine
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
export const parsingSubRoutine = function <T extends GenericBlocks, U extends GenericJsonSave<T>>(
nimblebitSave: DecompressedSave,
blocksToUse: T,
log: ILogger = debug
): U {
Function transformToSourceCode
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
public transformToSourceCode() {
// Source code for accessories (maybe move these to costume structs?)
const numberHairAccessoriesSourceTS = `export const numberHairAccessories = ${this.data.numberHairAccessories} as const;\n`;
const numberGlassesSourceTS = `export const numberGlasses = ${this.data.numberGlasses} as const;\n`;
const numberFemaleHatsSourceTS = `export const numberFemaleHats = ${this.data.numberFemaleHats} as const;\n`;
Function readObject
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
export const readObject = (
object: Il2Cpp.Object
): boolean | number | string | NativePointer | unknown[] | undefined => {
switch (object.class.type.typeEnum) {
case Il2Cpp.Type.enum.void: {