Showing 114 of 365 total issues
File japanese.ts
has 2048 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable max-lines */
/** @deprecated use @scure/bip39 instead */
export const wordlist: string[] = `あいこくしん
あいさつ
あいだ
File simplified-chinese.ts
has 2048 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable max-lines */
/** @deprecated use @scure/bip39 instead */
export const wordlist: string[] = `的
一
是
File english.ts
has 2048 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable max-lines */
/** @deprecated use @scure/bip39 instead */
export const wordlist: string[] = `abandon
ability
able
File french.ts
has 2048 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable max-lines */
/** @deprecated use @scure/bip39 instead */
export const wordlist: string[] = `abaisser
abandon
abdiquer
File italian.ts
has 2048 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable max-lines */
/** @deprecated use @scure/bip39 instead */
export const wordlist: string[] = `abaco
abbaglio
abbinato
File czech.ts
has 2048 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable max-lines */
/** @deprecated use @scure/bip39 instead */
export const wordlist: string[] = `abdikace
abeceda
adresa
File spanish.ts
has 2048 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable max-lines */
/** @deprecated use @scure/bip39 instead */
export const wordlist: string[] = `ábaco
abdomen
abeja
File traditional-chinese.ts
has 2048 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable max-lines */
/** @deprecated use @scure/bip39 instead */
export const wordlist: string[] = `的
一
是
File korean.ts
has 2048 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* eslint-disable max-lines */
/** @deprecated use @scure/bip39 instead */
export const wordlist: string[] = `가격
가끔
가난
Function resolveHandler
has a Cognitive Complexity of 62 (exceeds 5 allowed). Consider refactoring. Open
async resolveHandler<T extends ModuleInstance = ModuleInstance>(
idOrFilter: ModuleFilter<T> | ModuleIdentifier = '*',
options: ModuleFilterOptions<T> = {},
): Promise<T[]> {
const mutatedOptions = { ...options, maxDepth: options?.maxDepth ?? CompositeModuleResolver.defaultMaxDepth }
- 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 resolve
has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring. Open
async resolve<T extends ModuleInstance = ModuleInstance>(
idOrFilter: ModuleFilter<T> | ModuleIdentifier = '*',
options?: ModuleFilterOptions<T>,
): Promise<T | T[] | undefined> {
// console.log(`childAddressMap: ${toJsonString(this.childAddressMap, 10)}`)
- 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 resolve
has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring. Open
static async resolve<T extends ModuleInstance = ModuleInstance>(
config: ResolveHelperConfig,
idOrFilter: ModuleFilter<T> | ModuleIdentifier = '*',
{
maxDepth = 3, required = 'log', ...options
- 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
ModuleWrapper
has 54 functions (exceeds 20 allowed). Consider refactoring. Open
@constructableModuleWrapper()
export class ModuleWrapper<TWrappedModule extends Module = Module>
extends Base<Exclude<Omit<TWrappedModule['params'], 'config'> & { config: Exclude<TWrappedModule['params']['config'], undefined> }, undefined>>
implements AttachableModuleInstance<TWrappedModule['params'], TWrappedModule['eventData']> {
static instanceIdentityCheck: InstanceTypeCheck = isModuleInstance
Function resolveHandler
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
resolveHandler<T extends ModuleInstance = ModuleInstance>(
idOrFilter: ModuleFilter<T> | string = '*',
options?: ModuleFilterOptions<T>,
): Promisable<T[]> {
const unfiltered = (() => {
- 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 ModuleWrapper.ts
has 390 lines of code (exceeds 250 allowed). Consider refactoring. Open
import { assertEx } from '@xylabs/assert'
import { exists } from '@xylabs/exists'
import { Address } from '@xylabs/hex'
import { Logger } from '@xylabs/logger'
import { Base } from '@xylabs/object'
Quadkey
has 37 functions (exceeds 20 allowed). Consider refactoring. Open
export class Quadkey {
static Zero = Quadkey.from(0, 0n)
static root = new Quadkey()
static type = 'Quadkey'
Function resolveHandler
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
async resolveHandler<T extends ModuleInstance = ModuleInstance>(
idOrFilter: ModuleFilter<T> | ModuleIdentifier = '*',
options: ModuleFilterOptions<T> = {},
): Promise<T[]> {
const mutatedOptions = { ...options, maxDepth: options?.maxDepth ?? CompositeModuleResolver.defaultMaxDepth }
Function findPayload
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
export const findPayload = async (
archivist: ArchivistInstance,
boundWitnessDiviner: BoundWitnessDiviner,
payloadDiviner: PayloadDiviner,
pointer: PointerPayload,
- 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 Events.ts
has 303 lines of code (exceeds 250 allowed). Consider refactoring. Open
import { assertEx } from '@xylabs/assert'
import { handleError } from '@xylabs/error'
import { forget } from '@xylabs/forget'
import type { BaseParams } from '@xylabs/object'
import { Base } from '@xylabs/object'
Function resolve
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
static async resolve<T extends ModuleInstance = ModuleInstance>(
config: ResolveHelperConfig,
idOrFilter: ModuleFilter<T> | ModuleIdentifier = '*',
{
maxDepth = 3, required = 'log', ...options