Showing 124 of 297 total issues
Function constructor
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public constructor(
transactionMockProvider: TransactionMockProvider,
transactionBatchMockProvider: TransactionBatchMockProvider,
$qMockProvider: QMockProvider,
) {
Function checkRowMatches
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function checkRowMatches(
expectedValues: Transaction | TransactionEdit,
): void {
const {
transactionDate,
Method children
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def children
# Get the child transactions
transactions =
::TransactionSplit
.select(
Function constructor
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public constructor(
$sce: angular.ISCEService,
$uibModal: angular.ui.bootstrap.IModalService,
ogTableNavigableService: OgTableNavigableService,
ogModalErrorService: OgModalErrorService,
Function commonBehaviour
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function commonBehaviour(
targetRow: string,
targetRowAfter: string,
isSubcategory = false,
hasChildren = false,
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 deleteSecurity
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public deleteSecurity(index: number): void {
// Check if the security can be deleted
this.securityModel
.find(Number(this.securities[index].id))
.then((security: Security): void => {
Function deleteAccount
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public deleteAccount(accountType: string, index: number): void {
// Check if the account can be deleted
this.accountModel
.find(Number(this.accounts[accountType].accounts[index].id))
.then((account: Account): void => {
Function constructor
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public constructor(numberFilter: angular.IFilterNumber) {
const directive: angular.IDirective = {
restrict: "A",
priority: 1,
require: "ngModel",
Function updateInvestmentDetails
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public updateInvestmentDetails(): void {
const QUANTITY_DECIMAL_PLACES = 4,
PRICE_DECIMAL_PLACES = 3,
AMOUNT_DECIMAL_PLACES = 2;
Function editSecurity
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public editSecurity(index?: number): void {
// Helper function to sort by security current holding and name
function byHoldingAndName(a: Security, b: Security): number {
let x: boolean, y: boolean;
Function updateInvestmentDetails
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public updateInvestmentDetails(): void {
const QUANTITY_DECIMAL_PLACES = 4,
PRICE_DECIMAL_PLACES = 3,
AMOUNT_DECIMAL_PLACES = 2;
Function editAccount
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public editAccount(accountType?: string, index?: number): void {
// Helper function to sort by account name
function byName(a: Account, b: Account): number {
return a.name.localeCompare(b.name);
}
Function link
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link(scope: TransactionStatusScope, iElement: JQuery<Element>): void {
// Set the current status & icon, calculate the next status
function setCurrentStatus(status: TransactionStatus): void {
scope.currentStatus =
null === status || "" === status ? "Unreconciled" : status;
Function reconcile
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public reconcile(): void {
if (!this.reconciling) {
// Disable navigation on the table
this.ogTableNavigableService.enabled = false;
Function calculateNextDue
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private calculateNextDue(): void {
const WEEK = 1,
FORTNIGHT = 2,
MONTH = 1,
BIMONTH = 2,
Function constructor
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public constructor(
accountMockProvider: AccountMockProvider,
accountsMockProvider: AccountsMockProvider,
accountsWithBalancesMockProvider: AccountsWithBalancesMockProvider,
$qMockProvider: QMockProvider,
Function constructor
has 41 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 constructor
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public constructor(
categoryMockProvider: CategoryMockProvider,
categoriesMockProvider: CategoriesMockProvider,
$qMockProvider: QMockProvider,
) {
Function constructor
has 40 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,