Showing 136 of 308 total issues
Entity
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export class Entity {
/**
* The entity's type.
* In classes extending Entity this is usually overridden by the class annotation `@DatabaseEntity('NewEntity')`.
* The type needs to be used as routing path in lower case. The routing path can be defined in the configuration file.
File ability.service.spec.ts
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { fakeAsync, TestBed, tick, waitForAsync } from "@angular/core/testing";
import { AbilityService } from "./ability.service";
import { BehaviorSubject, Subject } from "rxjs";
import { Child } from "../../../child-dev-project/children/model/child";
Function generate
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async generate<T extends Entity>(
filterConfigs: FilterConfig[],
entityConstructor: EntityConstructor<T>,
data: T[],
onlyShowUsedOptions = false,
BasicAutocompleteComponent
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
@Component({
selector: "app-basic-autocomplete",
templateUrl: "basic-autocomplete.component.html",
styleUrls: ["./basic-autocomplete.component.scss"],
providers: [
File entities-table.component.ts
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
EventEmitter,
Input,
Output,
File admin-entity-field.component.ts
has 274 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Inject,
Input,
OnChanges,
File entity-actions.service.spec.ts
has 271 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { fakeAsync, TestBed, tick } from "@angular/core/testing";
import { EntityActionsService } from "./entity-actions.service";
import { EntityMapperService } from "../entity-mapper/entity-mapper.service";
import {
MatSnackBar,
PouchDatabase
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
@Injectable()
export class PouchDatabase extends Database {
/**
* Small helper function which creates a database with in-memory PouchDB initialized
*/
Function delete
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async delete<E extends Entity>(
entityParam: E | E[],
navigate: boolean = false,
): Promise<boolean> {
let textForDeleteEntity = "";
CustomFormControlDirective
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
@Directive()
export abstract class CustomFormControlDirective<T>
implements ControlValueAccessor, MatFormFieldControl<T>, OnDestroy, DoCheck
{
static nextId = 0;
File entity-list.component.ts
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
EventEmitter,
Input,
OnChanges,
Function anonymize
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async anonymize<E extends Entity>(entityParam: E | E[]) {
let entities = Array.isArray(entityParam) ? entityParam : [entityParam];
let textForAnonymizeEntity = "";
if (entities.length > 1) {
EntitiesTableComponent
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
@UntilDestroy()
@Component({
selector: "app-entities-table",
standalone: true,
imports: [
QueryService
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
@Injectable({
providedIn: "root",
})
export class QueryService {
private entities: { [type: string]: { [id: string]: Entity } } = {};
File session-manager.service.spec.ts
has 252 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* This file is part of ndb-core.
*
* ndb-core is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
File attendance.service.ts
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { Injectable } from "@angular/core";
import { EntityMapperService } from "../../core/entity/entity-mapper/entity-mapper.service";
import moment from "moment";
import { RecurringActivity } from "./model/recurring-activity";
import { ActivityAttendance } from "./model/activity-attendance";
File pouch-database.ts
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* This file is part of ndb-core.
*
* ndb-core is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Function generateFormFieldStory
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function generateFormFieldStory<T>(
editComponent,
defaultValue,
withTooltip = true,
additionalSchema = {},
Function createNotesIndex
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async createNotesIndex(): Promise<any> {
const designDoc = {
_id: "_design/notes_index",
views: {
note_child_by_date: {
Function calculateAggregations
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private calculateAggregations(
aggregations: Aggregation[] = [],
data?: any[],
additionalValues: GroupByDescription[] = [],
): ReportRow[] {