bykovme/nswallet

View on GitHub

Showing 226 of 488 total issues

Avoid deeply nested control flow statements.
Open

                            if (Password.Length >= GConsts.MASTER_PASSWORD_RESTRICTION || CheckPassword.Length >= GConsts.MASTER_PASSWORD_RESTRICTION) {
                                if (string.Compare(Password, CheckPassword) == 0) {
                                    BL.CreateOnlyRootItem(Password);
                                    BL.CreateSampleItems();
                                    Settings.ChangePasswordUnicodeIOSBug = true;
Severity: Major
Found in src/NSWallet/NSWallet/ViewModel/LoginScreen/LoginScreenViewModel.cs - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if (name.ToLower().Contains(loweredText)) {
                                    itemList.Title = item.Title;
                                    itemList.Add(new ItemModel {
                                        Icon = innerItem.Icon,
                                        Name = innerItem.Name,

      Method AddSettingButton has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              void AddSettingButton(StackLayout stack, string modelCommand, string menuName, string menuIcon, string chosenSelectionProperty = null, bool isPremium = false)
      Severity: Minor
      Found in src/NSWallet/NSWallet/Views/SettingsScreen/SettingsScreenView.cs - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                                if (e.Text != null) {
                                                    checkBackupPassword(e.Text, tempZip, pathTo);
                                                }
        Severity: Major
        Found in src/NSWallet/NSWallet/Helpers/Backups/BackupManager.cs - About 45 mins to fix

          Method AddMenu has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  void AddMenu(StackLayout stack, string modelCommand, string menuName, string menuIcon, string automationId, bool newFeature = false)
          Severity: Minor
          Found in src/NSWallet/NSWallet/Views/MainScreen/MainMenuView.cs - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if (counter == 20) {
                                            PDFDoc.FinishPage(page);
                                            xPosMatrix = 20;
                                            yPosMatrix = 10;
                                            xPosText = 270;
            Severity: Major
            Found in src/NSWallet/Droid/Interfaces/ExportService.cs - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                              if (TR.Tr(field.FieldType) == field.FieldType) {
                                                  fieldType = field.Label;
                                              } else {
                                                  fieldType = TR.Tr(field.FieldType);
                                              }
              Severity: Major
              Found in src/NSWallet/NSWallet.Mac/Interfaces/ExportService.cs - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                            if (icon.Name.En != null)
                                                name = icon.Name.En;
                                            else if (icon.Name.Ru != null)
                                                name = icon.Name.Ru;
                Severity: Major
                Found in src/NSWallet/NSWallet.Shared/Upgrades/UpgradeTo02.cs - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                  if (TR.Tr(field.FieldType) == field.FieldType) {
                                                      fieldType = field.Label;
                                                  } else {
                                                      fieldType = TR.Tr(field.FieldType);
                                                  }
                  Severity: Major
                  Found in src/NSWallet/Droid/Interfaces/ExportService.cs - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                    if(TR.Tr(field.FieldType) == field.FieldType) {
                                                        fieldType = field.Label;
                                                    } else {
                                                        fieldType = TR.Tr(field.FieldType);
                                                    }
                    Severity: Major
                    Found in src/NSWallet/iOS/Interfaces/ExportService.cs - About 45 mins to fix

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

                              public static void LaunchMessageBox(string name, string message, string accept, string cancel, Action<Task<bool>> action = null)
                      Severity: Minor
                      Found in src/NSWallet/NSWallet/Helpers/UI/Popups/PopupUIController.cs - About 35 mins to fix

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

                                public static NavigationPage AddLabelScreen(string labelName, string labelType, string fieldType = null, string actionType = null, Command command = null)
                        Severity: Minor
                        Found in src/NSWallet/NSWallet/Views/Pages.cs - About 35 mins to fix

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

                                  public static void LaunchSheet(string name, string cancel, string destruction, string[] buttons, Action<Task<string>> action = null)
                          Severity: Minor
                          Found in src/NSWallet/NSWallet/Helpers/UI/Popups/PopupUIController.cs - About 35 mins to fix

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

                                    public static void ShareFile(string filePath, string extraText, string mimeType, string popupText, Action action)
                            Severity: Minor
                            Found in src/NSWallet/NSWallet/Helpers/PlatformSpecific.cs - About 35 mins to fix

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

                                      public static void UpdateField(INavigation navigation, bool isEdit, NSWItem nswItem, string fieldID, string fieldValue)
                              Severity: Minor
                              Found in src/NSWallet/NSWallet/Views/Pages.cs - About 35 mins to fix

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

                                        public static void TermsOfUse(INavigation navigation, string title, string htmlSource, Action<bool> action, bool buttons = true)
                                Severity: Minor
                                Found in src/NSWallet/NSWallet/Views/Pages.cs - About 35 mins to fix

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

                                          bool OpenEmail(string popupName, List<string> to, string subject, string body, string attachmentPath = null);
                                  Severity: Minor
                                  Found in src/NSWallet/NSWallet/Interfaces/IEmailService.cs - About 35 mins to fix

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

                                            public static void PrivacyPolicy(INavigation navigation, string title, string htmlSource, Action<bool> action, bool buttons = true)
                                    Severity: Minor
                                    Found in src/NSWallet/NSWallet/Views/Pages.cs - About 35 mins to fix

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

                                              void ShareFile(string fileName, string extraText, string mimeType, string popupText, Action action);
                                      Severity: Minor
                                      Found in src/NSWallet/NSWallet/Interfaces/IShare.cs - About 35 mins to fix

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

                                                public bool OpenEmail(string popupName, List<string> to, string subject, string body, string attachmentPath = null)
                                        Severity: Minor
                                        Found in src/NSWallet/Droid/Helpers/EmailService.cs - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language