IBM/scc-node-sdk

View on GitHub

Showing 50 of 159 total issues

Function updateSettings has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public updateSettings(
    params?: SecurityAndComplianceCenterApiV3.UpdateSettingsParams
  ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Settings>> {
    const _params = { ...params };
    const _requiredParams = [];
Severity: Minor
Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

    Function listRules has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      public listRules(
        params?: SecurityAndComplianceCenterApiV3.ListRulesParams
      ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.RulesPageBase>> {
        const _params = { ...params };
        const _requiredParams = [];
    Severity: Minor
    Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

      Function listControlLibraries has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        public listControlLibraries(
          params?: SecurityAndComplianceCenterApiV3.ListControlLibrariesParams
        ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ControlLibraryCollection>> {
          const _params = { ...params };
          const _requiredParams = [];
      Severity: Minor
      Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

        Function listProfiles has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          public listProfiles(
            params?: SecurityAndComplianceCenterApiV3.ListProfilesParams
          ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ProfileCollection>> {
            const _params = { ...params };
            const _requiredParams = [];
        Severity: Minor
        Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

          Function getProfileAttachment has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            public getProfileAttachment(
              params: SecurityAndComplianceCenterApiV3.GetProfileAttachmentParams
            ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.AttachmentItem>> {
              const _params = { ...params };
              const _requiredParams = ['attachmentId', 'profilesId'];
          Severity: Minor
          Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

            Function listAttachmentsAccount has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              public listAttachmentsAccount(
                params?: SecurityAndComplianceCenterApiV3.ListAttachmentsAccountParams
              ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.AttachmentCollection>> {
                const _params = { ...params };
                const _requiredParams = [];
            Severity: Minor
            Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

              Function getReportRule has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                public getReportRule(
                  params: SecurityAndComplianceCenterApiV3.GetReportRuleParams
                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.RuleInfo>> {
                  const _params = { ...params };
                  const _requiredParams = ['reportId', 'ruleId'];
              Severity: Minor
              Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

                Function getProviderTypeInstance has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  public getProviderTypeInstance(
                    params: SecurityAndComplianceCenterApiV3.GetProviderTypeInstanceParams
                  ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ProviderTypeInstanceItem>> {
                    const _params = { ...params };
                    const _requiredParams = ['providerTypeId', 'providerTypeInstanceId'];
                Severity: Minor
                Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

                  Function createScan has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    public createScan(
                      params: SecurityAndComplianceCenterApiV3.CreateScanParams
                    ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Scan>> {
                      const _params = { ...params };
                      const _requiredParams = ['attachmentId'];
                  Severity: Minor
                  Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

                    Function deleteProfileAttachment has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      public deleteProfileAttachment(
                        params: SecurityAndComplianceCenterApiV3.DeleteProfileAttachmentParams
                      ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.AttachmentItem>> {
                        const _params = { ...params };
                        const _requiredParams = ['attachmentId', 'profilesId'];
                    Severity: Minor
                    Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

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

                        public getRule(
                          params: SecurityAndComplianceCenterApiV3.GetRuleParams
                        ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Rule>> {
                          const _params = { ...params };
                          const _requiredParams = ['ruleId'];
                      Severity: Minor
                      Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

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

                          public getLatestReports(
                            params?: SecurityAndComplianceCenterApiV3.GetLatestReportsParams
                          ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ReportLatest>> {
                            const _params = { ...params };
                            const _requiredParams = [];
                        Severity: Minor
                        Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

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

                            public getReportSummary(
                              params: SecurityAndComplianceCenterApiV3.GetReportSummaryParams
                            ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ReportSummary>> {
                              const _params = { ...params };
                              const _requiredParams = ['reportId'];
                          Severity: Minor
                          Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

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

                              public getReport(
                                params: SecurityAndComplianceCenterApiV3.GetReportParams
                              ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Report>> {
                                const _params = { ...params };
                                const _requiredParams = ['reportId'];
                            Severity: Minor
                            Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

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

                                public listProviderTypeInstances(
                                  params: SecurityAndComplianceCenterApiV3.ListProviderTypeInstancesParams
                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ProviderTypeInstancesResponse>> {
                                  const _params = { ...params };
                                  const _requiredParams = ['providerTypeId'];
                              Severity: Minor
                              Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

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

                                  public getControlLibrary(
                                    params: SecurityAndComplianceCenterApiV3.GetControlLibraryParams
                                  ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ControlLibrary>> {
                                    const _params = { ...params };
                                    const _requiredParams = ['controlLibrariesId'];
                                Severity: Minor
                                Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

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

                                    public deleteProviderTypeInstance(
                                      params: SecurityAndComplianceCenterApiV3.DeleteProviderTypeInstanceParams
                                    ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.EmptyObject>> {
                                      const _params = { ...params };
                                      const _requiredParams = ['providerTypeId', 'providerTypeInstanceId'];
                                  Severity: Minor
                                  Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

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

                                      public deleteCustomControlLibrary(
                                        params: SecurityAndComplianceCenterApiV3.DeleteCustomControlLibraryParams
                                      ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ControlLibraryDelete>> {
                                        const _params = { ...params };
                                        const _requiredParams = ['controlLibrariesId'];
                                    Severity: Minor
                                    Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

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

                                        public getReportTags(
                                          params: SecurityAndComplianceCenterApiV3.GetReportTagsParams
                                        ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ReportTags>> {
                                          const _params = { ...params };
                                          const _requiredParams = ['reportId'];
                                      Severity: Minor
                                      Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

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

                                          public getProfile(
                                            params: SecurityAndComplianceCenterApiV3.GetProfileParams
                                          ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Profile>> {
                                            const _params = { ...params };
                                            const _requiredParams = ['profilesId'];
                                        Severity: Minor
                                        Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language