scottohara/loot

View on GitHub
src/transactions/directives/flag.ts

Summary

Maintainability
A
3 hrs
Test Coverage
A
100%

Function constructor has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public constructor(
        $sce: angular.ISCEService,
        $uibModal: angular.ui.bootstrap.IModalService,
        ogTableNavigableService: OgTableNavigableService,
        ogModalErrorService: OgModalErrorService,
Severity: Minor
Found in src/transactions/directives/flag.ts - About 1 hr to fix

    Function link has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    link(scope: TransactionFlagScope, iElement: JQuery<Element>): void {
                        function setTooltip(): void {
                            scope.tooltip = $sce.trustAsHtml(
                                scope.transaction.flag_type
                                    ? `<strong class="${scope.transaction.flag_type}">${
    Severity: Minor
    Found in src/transactions/directives/flag.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status