Showing 16 of 22 total issues
File local.ts
has 688 lines of code (exceeds 500 allowed). Consider refactoring. Open
Open
import { DatabaseError, Pool } from "pg";
if(! process.env.SPG) throw "Missing SPG!";
export const connection = JSON.parse(process.env.SPG);
PGDB
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export class PGDB extends DB<TransactionPG> {
private _client: PoolClient = {} as PoolClient;
private indexes: string[] = [];
private oidLoad: Record<number, (ids: unknown[]) => Promise<EntryBase[]>> = {};
private pool: Pool;
File local.ts
has 512 lines of code (exceeds 500 allowed). Consider refactoring. Open
Open
import { promises } from "fs";
const { unlink } = promises;
export const connection = "test.json";
Function xref
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def xref(typ, rawtext, text, lineno, inliner, options={}, content=[]):
Avoid deeply nested control flow statements. Open
Open
if(adsrc) dropDefault();
Avoid deeply nested control flow statements. Open
Open
if(this.sync) field.default = defaultValue;
Avoid deeply nested control flow statements. Open
Open
} else if(! adsrc || this.defaultNeq(adsrc, defaultValue)) await setDefault(attnotnull);
Avoid deeply nested control flow statements. Open
Open
if(this.sync) await this._client.query(statement);
Avoid deeply nested control flow statements. Open
Open
if(adsrc) dropDefault();
Avoid too many return
statements within this function. Open
Open
for(const [i, [key, value]] of entriesA.entries()) if(key !== entriesB[i][0] || deepDiff(value, entriesB[i][1])) return true;
Avoid too many return
statements within this function. Open
Open
if(entriesA.length !== entriesB.length) return true;
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
if(! (b instanceof Array)) return true;
Avoid too many return
statements within this function. Open
Open
for(const [i, value] of a.entries()) if(deepDiff(value, b[i])) return true;
Avoid too many return
statements within this function. Open
Open
return true;