bykovme/nswallet

View on GitHub
src/NSWallet/NSWallet.Shared/DataAccess/DataAccessLayer.cs

Summary

Maintainability
D
2 days
Test Coverage

File DataAccessLayer.cs has 514 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
Severity: Major
Found in src/NSWallet/NSWallet.Shared/DataAccess/DataAccessLayer.cs - About 1 day to fix

    Class DataAccessLayer has 35 methods (exceeds 20 allowed). Consider refactoring.
    Open

        public partial class DataAccessLayer
        {
            // Static members, everything needed for singleton initialization
            static string DBFile;
            static DataAccessLayer DAL;
    Severity: Minor
    Found in src/NSWallet/NSWallet.Shared/DataAccess/DataAccessLayer.cs - About 4 hrs to fix

      Method ChangePassword has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public bool ChangePassword(string newPassword)
              {
                  try
                  {
                      nswdb.BeginTransaction();
      Severity: Minor
      Found in src/NSWallet/NSWallet.Shared/DataAccess/DataAccessLayer.cs - About 1 hr to fix

        Method CreateLabel has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                public bool CreateLabel(string fieldType, string name, string icon, string valueType, bool system)
        Severity: Minor
        Found in src/NSWallet/NSWallet.Shared/DataAccess/DataAccessLayer.cs - About 35 mins to fix

          Method ResetMemoryData has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  public void ResetMemoryData(bool resetItems, bool resetFields, bool resetLabel, bool resetIcons = false, bool resetGroups = false)
          Severity: Minor
          Found in src/NSWallet/NSWallet.Shared/DataAccess/DataAccessLayer.cs - About 35 mins to fix

            Method UpdateIcon has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    public bool UpdateIcon(string iconID, string name, byte[] blob = null, int groupID = -1, int isCircle = -1)
            Severity: Minor
            Found in src/NSWallet/NSWallet.Shared/DataAccess/DataAccessLayer.cs - About 35 mins to fix

              Method CreateItem has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      public void CreateItem(string itemID, string parentID, string name, string icon, bool folder)
              Severity: Minor
              Found in src/NSWallet/NSWallet.Shared/DataAccess/DataAccessLayer.cs - About 35 mins to fix

                There are no issues that match your filters.

                Category
                Status