src/payees/controllers/index.ts
Function deletePayee
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public deletePayee(index: number): void {
// Check if the payee can be deleted
this.payeeModel
.find(Number(this.payees[index].id))
.then((payee: Payee): void => {
Function constructor
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public constructor(
$scope: angular.IScope,
$transitions: angular.ui.IStateParamsService,
private readonly $uibModal: angular.ui.bootstrap.IModalService,
private readonly $timeout: angular.ITimeoutService,
Function editPayee
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public editPayee(index?: number): void {
// Helper function to sort by payee name
function byName(a: Payee, b: Payee): number {
return a.name.localeCompare(b.name);
}