grandom-library/grandom-js

View on GitHub

Showing 4 of 4 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

private _parseRange (value: string): void {
const result = _bigintRangePattern.exec(value)
 
if (result !== null) {
const [, start, stop] = result
Severity: Major
Found in packages/individual/bigint/src/BigIntFilter/index.ts and 1 other location - About 3 hrs to fix
packages/individual/number/src/integer/IntegerFilter/index.ts on lines 79..97

Similar blocks of code found in 2 locations. Consider refactoring.
Open

private _parseRange (value: string): void {
const result = _integerRangePattern.exec(value)
 
if (result !== null) {
const [, start, stop] = result
packages/individual/bigint/src/BigIntFilter/index.ts on lines 82..100

Similar blocks of code found in 2 locations. Consider refactoring.
Open

matches (value: number): boolean {
for (const entry of this._filterEntries) {
if (entry.number === value) {
return true
} else if ('range' in entry) {
Severity: Minor
Found in packages/individual/number/src/integer/IntegerFilter/index.ts and 1 other location - About 55 mins to fix
packages/individual/bigint/src/BigIntFilter/index.ts on lines 36..49

Similar blocks of code found in 2 locations. Consider refactoring.
Open

matches (value: bigint): boolean {
for (const entry of this._filterEntries) {
if (entry.bigint === value) {
return true
} else if ('range' in entry) {
Severity: Minor
Found in packages/individual/bigint/src/BigIntFilter/index.ts and 1 other location - About 55 mins to fix
packages/individual/number/src/integer/IntegerFilter/index.ts on lines 36..49
Severity
Category
Status
Source
Language