IBM/scc-node-sdk

View on GitHub
security-and-compliance-center-api/v3.ts

Summary

Maintainability
F
2 mos
Test Coverage
A
96%

File v3.ts has 3368 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * (C) Copyright IBM Corp. 2023.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
Severity: Major
Found in security-and-compliance-center-api/v3.ts - About 1 wk to fix

    SecurityAndComplianceCenterApiV3 has 47 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class SecurityAndComplianceCenterApiV3 extends BaseService {
      static DEFAULT_SERVICE_URL: string = 'https://us-south.compliance.cloud.ibm.com/instances/instance_id/v3';
    
      static DEFAULT_SERVICE_NAME: string = 'security_and_compliance_center_api';
    
    
    Severity: Minor
    Found in security-and-compliance-center-api/v3.ts - About 6 hrs to fix

      Function replaceProfileAttachment has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Function replaceCustomControlLibrary has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          public replaceCustomControlLibrary(
            params: SecurityAndComplianceCenterApiV3.ReplaceCustomControlLibraryParams
          ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ControlLibrary>> {
            const _params = { ...params };
            const _requiredParams = ['controlLibrariesId'];
        Severity: Major
        Found in security-and-compliance-center-api/v3.ts - About 2 hrs to fix

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

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

            Function listReportResources has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Function listReportEvaluations has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function replaceProfile has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  public replaceProfile(
                    params: SecurityAndComplianceCenterApiV3.ReplaceProfileParams
                  ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Profile>> {
                    const _params = { ...params };
                    const _requiredParams = ['profilesId', 'profileName', 'profileDescription', 'profileType', 'controls', 'defaultParameters'];
                Severity: Minor
                Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

                  Function getReportControls has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

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

                    Function createCustomControlLibrary has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Function updateProviderTypeInstance has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        public updateProviderTypeInstance(
                          params: SecurityAndComplianceCenterApiV3.UpdateProviderTypeInstanceParams
                        ): 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 createRule has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Function createProviderTypeInstance has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Function listReports has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

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

                              Function createAttachment has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Function listAttachments has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

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

                                  Function getReportEvaluation has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

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

                                    Function createProfile has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      public createProfile(
                                        params: SecurityAndComplianceCenterApiV3.CreateProfileParams
                                      ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Profile>> {
                                        const _params = { ...params };
                                        const _requiredParams = ['profileName', 'profileDescription', 'profileType', 'controls', 'defaultParameters'];
                                    Severity: Minor
                                    Found in security-and-compliance-center-api/v3.ts - About 1 hr to fix

                                      Function getReportViolationsDrift has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

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

                                        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

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

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

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

                                                                                    public deleteCustomProfile(
                                                                                      params: SecurityAndComplianceCenterApiV3.DeleteCustomProfileParams
                                                                                    ): 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

                                                                                    Function deleteRule has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

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

                                                                                      Function postTestEvent has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

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

                                                                                        Function listProviderTypes has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

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

                                                                                          Function getSettings has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                            public getSettings(
                                                                                              params?: SecurityAndComplianceCenterApiV3.GetSettingsParams
                                                                                            ): 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 getProviderTypesInstances has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

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

                                                                                              Function getNext has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  public async getNext(): Promise<SecurityAndComplianceCenterApiV3.Report[]> {
                                                                                                    if (!this.hasNext()) {
                                                                                                      throw new Error('No more results available');
                                                                                                    }
                                                                                              
                                                                                              
                                                                                              Severity: Minor
                                                                                              Found in security-and-compliance-center-api/v3.ts - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Function getNext has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  public async getNext(): Promise<SecurityAndComplianceCenterApiV3.Evaluation[]> {
                                                                                                    if (!this.hasNext()) {
                                                                                                      throw new Error('No more results available');
                                                                                                    }
                                                                                              
                                                                                              
                                                                                              Severity: Minor
                                                                                              Found in security-and-compliance-center-api/v3.ts - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Function getNext has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  public async getNext(): Promise<SecurityAndComplianceCenterApiV3.Resource[]> {
                                                                                                    if (!this.hasNext()) {
                                                                                                      throw new Error('No more results available');
                                                                                                    }
                                                                                              
                                                                                              
                                                                                              Severity: Minor
                                                                                              Found in security-and-compliance-center-api/v3.ts - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export class ReportEvaluationsPager {
                                                                                                  protected _hasNext: boolean;
                                                                                                  protected pageContext: any;
                                                                                              
                                                                                                  protected client: SecurityAndComplianceCenterApiV3;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 3 days to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 6027..6105

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 528.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export class ReportsPager {
                                                                                                  protected _hasNext: boolean;
                                                                                                  protected pageContext: any;
                                                                                              
                                                                                                  protected client: SecurityAndComplianceCenterApiV3;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 3 days to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 6110..6188

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 528.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                export class AttachmentsAccountPager {
                                                                                                  protected _hasNext: boolean;
                                                                                                  protected pageContext: any;
                                                                                              
                                                                                                  protected client: SecurityAndComplianceCenterApiV3;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 2 other locations - About 2 days to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 5784..5860
                                                                                              security-and-compliance-center-api/v3.ts on lines 5865..5941

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 508.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                export class ProfilesPager {
                                                                                                  protected _hasNext: boolean;
                                                                                                  protected pageContext: any;
                                                                                              
                                                                                                  protected client: SecurityAndComplianceCenterApiV3;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 2 other locations - About 2 days to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 5865..5941
                                                                                              security-and-compliance-center-api/v3.ts on lines 5946..6022

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 508.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                export class AttachmentsPager {
                                                                                                  protected _hasNext: boolean;
                                                                                                  protected pageContext: any;
                                                                                              
                                                                                                  protected client: SecurityAndComplianceCenterApiV3;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 2 other locations - About 2 days to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 5784..5860
                                                                                              security-and-compliance-center-api/v3.ts on lines 5946..6022

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 508.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                public listControlLibraries(
                                                                                                  params?: SecurityAndComplianceCenterApiV3.ListControlLibrariesParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ControlLibraryCollection>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = [];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 2 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 741..785
                                                                                              security-and-compliance-center-api/v3.ts on lines 1094..1138

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 264.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                public listRules(
                                                                                                  params?: SecurityAndComplianceCenterApiV3.ListRulesParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.RulesPageBase>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = [];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 2 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 345..389
                                                                                              security-and-compliance-center-api/v3.ts on lines 741..785

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 264.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                public listProfiles(
                                                                                                  params?: SecurityAndComplianceCenterApiV3.ListProfilesParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ProfileCollection>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = [];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 2 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 345..389
                                                                                              security-and-compliance-center-api/v3.ts on lines 1094..1138

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 264.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                public getProviderTypeInstance(
                                                                                                  params: SecurityAndComplianceCenterApiV3.GetProviderTypeInstanceParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ProviderTypeInstanceItem>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['providerTypeId', 'providerTypeInstanceId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1602..1645
                                                                                              security-and-compliance-center-api/v3.ts on lines 1668..1711
                                                                                              security-and-compliance-center-api/v3.ts on lines 2390..2433

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 255.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                public getReportRule(
                                                                                                  params: SecurityAndComplianceCenterApiV3.GetReportRuleParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.RuleInfo>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['reportId', 'ruleId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1602..1645
                                                                                              security-and-compliance-center-api/v3.ts on lines 1668..1711
                                                                                              security-and-compliance-center-api/v3.ts on lines 3080..3123

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 255.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                public deleteProfileAttachment(
                                                                                                  params: SecurityAndComplianceCenterApiV3.DeleteProfileAttachmentParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.AttachmentItem>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['attachmentId', 'profilesId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1668..1711
                                                                                              security-and-compliance-center-api/v3.ts on lines 2390..2433
                                                                                              security-and-compliance-center-api/v3.ts on lines 3080..3123

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 255.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                public getProfileAttachment(
                                                                                                  params: SecurityAndComplianceCenterApiV3.GetProfileAttachmentParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.AttachmentItem>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['attachmentId', 'profilesId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1602..1645
                                                                                              security-and-compliance-center-api/v3.ts on lines 2390..2433
                                                                                              security-and-compliance-center-api/v3.ts on lines 3080..3123

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 255.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                              Open

                                                                                                public getReport(
                                                                                                  params: SecurityAndComplianceCenterApiV3.GetReportParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Report>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['reportId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 7 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 498..540
                                                                                              security-and-compliance-center-api/v3.ts on lines 567..609
                                                                                              security-and-compliance-center-api/v3.ts on lines 880..922
                                                                                              security-and-compliance-center-api/v3.ts on lines 944..986
                                                                                              security-and-compliance-center-api/v3.ts on lines 1298..1340
                                                                                              security-and-compliance-center-api/v3.ts on lines 2176..2218
                                                                                              security-and-compliance-center-api/v3.ts on lines 2621..2663

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 244.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                              Open

                                                                                                public getReportSummary(
                                                                                                  params: SecurityAndComplianceCenterApiV3.GetReportSummaryParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ReportSummary>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['reportId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 7 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 498..540
                                                                                              security-and-compliance-center-api/v3.ts on lines 567..609
                                                                                              security-and-compliance-center-api/v3.ts on lines 880..922
                                                                                              security-and-compliance-center-api/v3.ts on lines 944..986
                                                                                              security-and-compliance-center-api/v3.ts on lines 1298..1340
                                                                                              security-and-compliance-center-api/v3.ts on lines 2113..2155
                                                                                              security-and-compliance-center-api/v3.ts on lines 2621..2663

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 244.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                              Open

                                                                                                public getControlLibrary(
                                                                                                  params: SecurityAndComplianceCenterApiV3.GetControlLibraryParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ControlLibrary>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['controlLibrariesId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 7 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 498..540
                                                                                              security-and-compliance-center-api/v3.ts on lines 880..922
                                                                                              security-and-compliance-center-api/v3.ts on lines 944..986
                                                                                              security-and-compliance-center-api/v3.ts on lines 1298..1340
                                                                                              security-and-compliance-center-api/v3.ts on lines 2113..2155
                                                                                              security-and-compliance-center-api/v3.ts on lines 2176..2218
                                                                                              security-and-compliance-center-api/v3.ts on lines 2621..2663

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 244.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                              Open

                                                                                                public getRule(
                                                                                                  params: SecurityAndComplianceCenterApiV3.GetRuleParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Rule>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['ruleId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 7 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 498..540
                                                                                              security-and-compliance-center-api/v3.ts on lines 567..609
                                                                                              security-and-compliance-center-api/v3.ts on lines 880..922
                                                                                              security-and-compliance-center-api/v3.ts on lines 944..986
                                                                                              security-and-compliance-center-api/v3.ts on lines 2113..2155
                                                                                              security-and-compliance-center-api/v3.ts on lines 2176..2218
                                                                                              security-and-compliance-center-api/v3.ts on lines 2621..2663

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 244.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                              Open

                                                                                                public getReportTags(
                                                                                                  params: SecurityAndComplianceCenterApiV3.GetReportTagsParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ReportTags>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['reportId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 7 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 498..540
                                                                                              security-and-compliance-center-api/v3.ts on lines 567..609
                                                                                              security-and-compliance-center-api/v3.ts on lines 880..922
                                                                                              security-and-compliance-center-api/v3.ts on lines 944..986
                                                                                              security-and-compliance-center-api/v3.ts on lines 1298..1340
                                                                                              security-and-compliance-center-api/v3.ts on lines 2113..2155
                                                                                              security-and-compliance-center-api/v3.ts on lines 2176..2218

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 244.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                              Open

                                                                                                public getProfile(
                                                                                                  params: SecurityAndComplianceCenterApiV3.GetProfileParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Profile>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['profilesId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 7 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 498..540
                                                                                              security-and-compliance-center-api/v3.ts on lines 567..609
                                                                                              security-and-compliance-center-api/v3.ts on lines 880..922
                                                                                              security-and-compliance-center-api/v3.ts on lines 1298..1340
                                                                                              security-and-compliance-center-api/v3.ts on lines 2113..2155
                                                                                              security-and-compliance-center-api/v3.ts on lines 2176..2218
                                                                                              security-and-compliance-center-api/v3.ts on lines 2621..2663

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 244.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                              Open

                                                                                                public deleteCustomControlLibrary(
                                                                                                  params: SecurityAndComplianceCenterApiV3.DeleteCustomControlLibraryParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ControlLibraryDelete>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['controlLibrariesId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 7 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 567..609
                                                                                              security-and-compliance-center-api/v3.ts on lines 880..922
                                                                                              security-and-compliance-center-api/v3.ts on lines 944..986
                                                                                              security-and-compliance-center-api/v3.ts on lines 1298..1340
                                                                                              security-and-compliance-center-api/v3.ts on lines 2113..2155
                                                                                              security-and-compliance-center-api/v3.ts on lines 2176..2218
                                                                                              security-and-compliance-center-api/v3.ts on lines 2621..2663

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 244.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 8 locations. Consider refactoring.
                                                                                              Open

                                                                                                public deleteCustomProfile(
                                                                                                  params: SecurityAndComplianceCenterApiV3.DeleteCustomProfileParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Profile>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = ['profilesId'];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 7 other locations - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 498..540
                                                                                              security-and-compliance-center-api/v3.ts on lines 567..609
                                                                                              security-and-compliance-center-api/v3.ts on lines 944..986
                                                                                              security-and-compliance-center-api/v3.ts on lines 1298..1340
                                                                                              security-and-compliance-center-api/v3.ts on lines 2113..2155
                                                                                              security-and-compliance-center-api/v3.ts on lines 2176..2218
                                                                                              security-and-compliance-center-api/v3.ts on lines 2621..2663

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 244.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                public getSettings(
                                                                                                  params?: SecurityAndComplianceCenterApiV3.GetSettingsParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.Settings>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = [];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 2756..2793

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 221.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                public listProviderTypes(
                                                                                                  params?: SecurityAndComplianceCenterApiV3.ListProviderTypesParams
                                                                                                ): Promise<SecurityAndComplianceCenterApiV3.Response<SecurityAndComplianceCenterApiV3.ProviderTypesCollection>> {
                                                                                                  const _params = { ...params };
                                                                                                  const _requiredParams = [];
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 1 day to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 151..188

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 221.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface EvaluationPage {
                                                                                                  /** The total number of resources that are in the collection. */
                                                                                                  total_count: number;
                                                                                                  /** The requested page limi.t. */
                                                                                                  limit: number;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 3 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 5427..5444

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 107.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface ResourcePage {
                                                                                                  /** The total number of resources that are in the collection. */
                                                                                                  total_count: number;
                                                                                                  /** The requested page limi.t. */
                                                                                                  limit: number;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 3 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4884..4901

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 107.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/provider_types/{provider_type_id}/provider_type_instances',
                                                                                                      method: 'POST',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 5 other locations - About 3 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 692..712
                                                                                              security-and-compliance-center-api/v3.ts on lines 1043..1063
                                                                                              security-and-compliance-center-api/v3.ts on lines 1556..1576
                                                                                              security-and-compliance-center-api/v3.ts on lines 1794..1814
                                                                                              security-and-compliance-center-api/v3.ts on lines 3173..3193

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 97.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/control_libraries/{control_libraries_id}',
                                                                                                      method: 'PUT',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 5 other locations - About 3 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1043..1063
                                                                                              security-and-compliance-center-api/v3.ts on lines 1556..1576
                                                                                              security-and-compliance-center-api/v3.ts on lines 1794..1814
                                                                                              security-and-compliance-center-api/v3.ts on lines 2971..2991
                                                                                              security-and-compliance-center-api/v3.ts on lines 3173..3193

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 97.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/profiles/{profiles_id}/attachments',
                                                                                                      method: 'POST',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 5 other locations - About 3 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 692..712
                                                                                              security-and-compliance-center-api/v3.ts on lines 1043..1063
                                                                                              security-and-compliance-center-api/v3.ts on lines 1794..1814
                                                                                              security-and-compliance-center-api/v3.ts on lines 2971..2991
                                                                                              security-and-compliance-center-api/v3.ts on lines 3173..3193

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 97.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/profiles/{profiles_id}/attachments/{attachment_id}',
                                                                                                      method: 'PUT',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 5 other locations - About 3 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 692..712
                                                                                              security-and-compliance-center-api/v3.ts on lines 1043..1063
                                                                                              security-and-compliance-center-api/v3.ts on lines 1556..1576
                                                                                              security-and-compliance-center-api/v3.ts on lines 2971..2991
                                                                                              security-and-compliance-center-api/v3.ts on lines 3173..3193

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 97.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/provider_types/{provider_type_id}/provider_type_instances/{provider_type_instance_id}',
                                                                                                      method: 'PATCH',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 5 other locations - About 3 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 692..712
                                                                                              security-and-compliance-center-api/v3.ts on lines 1043..1063
                                                                                              security-and-compliance-center-api/v3.ts on lines 1556..1576
                                                                                              security-and-compliance-center-api/v3.ts on lines 1794..1814
                                                                                              security-and-compliance-center-api/v3.ts on lines 2971..2991

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 97.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/profiles/{profiles_id}',
                                                                                                      method: 'PUT',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 5 other locations - About 3 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 692..712
                                                                                              security-and-compliance-center-api/v3.ts on lines 1556..1576
                                                                                              security-and-compliance-center-api/v3.ts on lines 1794..1814
                                                                                              security-and-compliance-center-api/v3.ts on lines 2971..2991
                                                                                              security-and-compliance-center-api/v3.ts on lines 3173..3193

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 97.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/scans',
                                                                                                      method: 'POST',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 231..250
                                                                                              security-and-compliance-center-api/v3.ts on lines 451..470
                                                                                              security-and-compliance-center-api/v3.ts on lines 836..855
                                                                                              security-and-compliance-center-api/v3.ts on lines 1193..1212

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 92.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/reports/{report_id}/controls',
                                                                                                      method: 'GET',
                                                                                                      qs: query,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1484..1503
                                                                                              security-and-compliance-center-api/v3.ts on lines 2493..2512
                                                                                              security-and-compliance-center-api/v3.ts on lines 2578..2597
                                                                                              security-and-compliance-center-api/v3.ts on lines 2710..2729

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 92.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/settings',
                                                                                                      method: 'PATCH',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 451..470
                                                                                              security-and-compliance-center-api/v3.ts on lines 836..855
                                                                                              security-and-compliance-center-api/v3.ts on lines 1193..1212
                                                                                              security-and-compliance-center-api/v3.ts on lines 1858..1877

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 92.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/profiles',
                                                                                                      method: 'POST',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 231..250
                                                                                              security-and-compliance-center-api/v3.ts on lines 451..470
                                                                                              security-and-compliance-center-api/v3.ts on lines 1193..1212
                                                                                              security-and-compliance-center-api/v3.ts on lines 1858..1877

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 92.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/rules',
                                                                                                      method: 'POST',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 231..250
                                                                                              security-and-compliance-center-api/v3.ts on lines 451..470
                                                                                              security-and-compliance-center-api/v3.ts on lines 836..855
                                                                                              security-and-compliance-center-api/v3.ts on lines 1858..1877

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 92.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/reports/{report_id}/violations_drift',
                                                                                                      method: 'GET',
                                                                                                      qs: query,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1484..1503
                                                                                              security-and-compliance-center-api/v3.ts on lines 2346..2365
                                                                                              security-and-compliance-center-api/v3.ts on lines 2493..2512
                                                                                              security-and-compliance-center-api/v3.ts on lines 2578..2597

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 92.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/reports/{report_id}/evaluations',
                                                                                                      method: 'GET',
                                                                                                      qs: query,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1484..1503
                                                                                              security-and-compliance-center-api/v3.ts on lines 2346..2365
                                                                                              security-and-compliance-center-api/v3.ts on lines 2578..2597
                                                                                              security-and-compliance-center-api/v3.ts on lines 2710..2729

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 92.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/control_libraries',
                                                                                                      method: 'POST',
                                                                                                      body,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 231..250
                                                                                              security-and-compliance-center-api/v3.ts on lines 836..855
                                                                                              security-and-compliance-center-api/v3.ts on lines 1193..1212
                                                                                              security-and-compliance-center-api/v3.ts on lines 1858..1877

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 92.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/profiles/{profiles_id}/attachments',
                                                                                                      method: 'GET',
                                                                                                      qs: query,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 2346..2365
                                                                                              security-and-compliance-center-api/v3.ts on lines 2493..2512
                                                                                              security-and-compliance-center-api/v3.ts on lines 2578..2597
                                                                                              security-and-compliance-center-api/v3.ts on lines 2710..2729

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 92.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/reports/{report_id}/resources',
                                                                                                      method: 'GET',
                                                                                                      qs: query,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1484..1503
                                                                                              security-and-compliance-center-api/v3.ts on lines 2346..2365
                                                                                              security-and-compliance-center-api/v3.ts on lines 2493..2512
                                                                                              security-and-compliance-center-api/v3.ts on lines 2710..2729

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 92.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/provider_types/{provider_type_id}/provider_type_instances/{provider_type_instance_id}',
                                                                                                      method: 'DELETE',
                                                                                                      path,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1257..1274

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 82.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const parameters = {
                                                                                                    options: {
                                                                                                      url: '/rules/{rule_id}',
                                                                                                      method: 'DELETE',
                                                                                                      path,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3037..3054

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 82.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface Assessment {
                                                                                                  /** The assessment ID. */
                                                                                                  assessment_id?: string;
                                                                                                  /** The assessment type. */
                                                                                                  assessment_type?: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4926..4939

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 81.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface Implementation {
                                                                                                  /** The assessment ID. */
                                                                                                  assessment_id?: string;
                                                                                                  /** The assessment method. */
                                                                                                  assessment_method?: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4454..4467

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 81.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const query = {
                                                                                                    'id': _params.id,
                                                                                                    'resource_name': _params.resourceName,
                                                                                                    'account_id': _params.accountId,
                                                                                                    'component_id': _params.componentId,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 434..443

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 80.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const body = {
                                                                                                    'control_library_name': _params.controlLibraryName,
                                                                                                    'control_library_description': _params.controlLibraryDescription,
                                                                                                    'control_library_type': _params.controlLibraryType,
                                                                                                    'controls': _params.controls,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 2557..2566

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 80.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface ComplianceStats {
                                                                                                  /** The allowed values of an aggregated status for controls, specifications, assessments, and resources. */
                                                                                                  status?: string;
                                                                                                  /** The total number of checks. */
                                                                                                  total_count?: number;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4844..4857

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 77.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface AttachmentParameterPrototype {
                                                                                                  /** The type of the implementation. */
                                                                                                  assessment_type?: string;
                                                                                                  /** The implementation ID of the parameter. */
                                                                                                  assessment_id?: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4822..4835

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 77.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface DefaultParametersPrototype {
                                                                                                  /** The type of the implementation. */
                                                                                                  assessment_type?: string;
                                                                                                  /** The implementation ID of the parameter. */
                                                                                                  assessment_id?: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4536..4549

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 77.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface EvalStats {
                                                                                                  /** The allowed values of an aggregated status for controls, specifications, assessments, and resources. */
                                                                                                  status?: string;
                                                                                                  /** The total number of evaluations. */
                                                                                                  total_count?: number;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4608..4621

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 77.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface ListControlLibrariesParams {
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                                   *  value of this header is not supplied in a request, the service generates a random (version 4) UUID.
                                                                                                   */
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3489..3507

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 75.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface ListProfilesParams {
                                                                                                  /** The supplied or generated value of this header is logged for a request, and repeated in a response header
                                                                                                   *  for the corresponding response. The same value is used for downstream requests, and retries of those requests.
                                                                                                   *  If a value of this header is not supplied in a request, the service generates a random (version 4) UUID.
                                                                                                   */
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 2 hrs to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3336..3354

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 75.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface AttachmentCollection {
                                                                                                  /** The number of attachments. */
                                                                                                  total_count: number;
                                                                                                  /** The limit of attachments per request. */
                                                                                                  limit: number;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4668..4679
                                                                                              security-and-compliance-center-api/v3.ts on lines 5086..5097
                                                                                              security-and-compliance-center-api/v3.ts on lines 5545..5558

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 74.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface ControlLibraryCollection {
                                                                                                  /** The number of control libraries. */
                                                                                                  total_count: number;
                                                                                                  /** limit. */
                                                                                                  limit: number;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4484..4495
                                                                                              security-and-compliance-center-api/v3.ts on lines 5086..5097
                                                                                              security-and-compliance-center-api/v3.ts on lines 5545..5558

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 74.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface ProfileCollection {
                                                                                                  /** The number of profiles. */
                                                                                                  total_count: number;
                                                                                                  /** The limit of profiles that can be created. */
                                                                                                  limit: number;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4484..4495
                                                                                              security-and-compliance-center-api/v3.ts on lines 4668..4679
                                                                                              security-and-compliance-center-api/v3.ts on lines 5545..5558

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 74.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface RulesPageBase {
                                                                                                  /** The requested page limit. */
                                                                                                  limit: number;
                                                                                                  /** The total number of resources in the collection. */
                                                                                                  total_count: number;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4484..4495
                                                                                              security-and-compliance-center-api/v3.ts on lines 4668..4679
                                                                                              security-and-compliance-center-api/v3.ts on lines 5086..5097

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 74.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const body = {
                                                                                                    'description': _params.description,
                                                                                                    'target': _params.target,
                                                                                                    'required_config': _params.requiredConfig,
                                                                                                    'type': _params.type,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1177..1185
                                                                                              security-and-compliance-center-api/v3.ts on lines 2055..2063
                                                                                              security-and-compliance-center-api/v3.ts on lines 2473..2481

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 71.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const body = {
                                                                                                    'description': _params.description,
                                                                                                    'target': _params.target,
                                                                                                    'required_config': _params.requiredConfig,
                                                                                                    'type': _params.type,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1385..1393
                                                                                              security-and-compliance-center-api/v3.ts on lines 2055..2063
                                                                                              security-and-compliance-center-api/v3.ts on lines 2473..2481

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 71.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const query = {
                                                                                                    'attachment_id': _params.attachmentId,
                                                                                                    'group_id': _params.groupId,
                                                                                                    'profile_id': _params.profileId,
                                                                                                    'type': _params.type,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1177..1185
                                                                                              security-and-compliance-center-api/v3.ts on lines 1385..1393
                                                                                              security-and-compliance-center-api/v3.ts on lines 2473..2481

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 71.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const query = {
                                                                                                    'assessment_id': _params.assessmentId,
                                                                                                    'component_id': _params.componentId,
                                                                                                    'target_id': _params.targetId,
                                                                                                    'target_name': _params.targetName,
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 3 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1177..1185
                                                                                              security-and-compliance-center-api/v3.ts on lines 1385..1393
                                                                                              security-and-compliance-center-api/v3.ts on lines 2055..2063

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 71.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface EventNotifications {
                                                                                                  /** The Event Notifications instance CRN. */
                                                                                                  instance_crn?: string;
                                                                                                  /** The date when the Event Notifications connection was updated. */
                                                                                                  updated_on?: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 2 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4974..4985
                                                                                              security-and-compliance-center-api/v3.ts on lines 5621..5632

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 66.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface TargetInfo {
                                                                                                  /** The target ID. */
                                                                                                  id?: string;
                                                                                                  /** The target account ID. */
                                                                                                  account_id?: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 2 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4904..4915
                                                                                              security-and-compliance-center-api/v3.ts on lines 4974..4985

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 66.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface ObjectStorage {
                                                                                                  /** The connected Cloud Object Storage instance CRN. */
                                                                                                  instance_crn?: string;
                                                                                                  /** The connected Cloud Object Storage bucket name. */
                                                                                                  bucket?: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 2 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4904..4915
                                                                                              security-and-compliance-center-api/v3.ts on lines 5621..5632

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 66.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface DeleteProfileAttachmentParams {
                                                                                                  /** The attachment ID. */
                                                                                                  attachmentId: string;
                                                                                                  /** The profile ID. */
                                                                                                  profilesId: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3822..3838
                                                                                              security-and-compliance-center-api/v3.ts on lines 4111..4128
                                                                                              security-and-compliance-center-api/v3.ts on lines 4340..4357
                                                                                              security-and-compliance-center-api/v3.ts on lines 4360..4377

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 64.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetProviderTypeInstanceParams {
                                                                                                  /** The provider type ID. */
                                                                                                  providerTypeId: string;
                                                                                                  /** The provider type instance ID. */
                                                                                                  providerTypeInstanceId: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3803..3819
                                                                                              security-and-compliance-center-api/v3.ts on lines 3822..3838
                                                                                              security-and-compliance-center-api/v3.ts on lines 4111..4128
                                                                                              security-and-compliance-center-api/v3.ts on lines 4340..4357

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 64.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetReportRuleParams {
                                                                                                  /** The ID of the scan that is associated with a report. */
                                                                                                  reportId: string;
                                                                                                  /** The ID of a rule in a report. */
                                                                                                  ruleId: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3803..3819
                                                                                              security-and-compliance-center-api/v3.ts on lines 3822..3838
                                                                                              security-and-compliance-center-api/v3.ts on lines 4340..4357
                                                                                              security-and-compliance-center-api/v3.ts on lines 4360..4377

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 64.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface DeleteProviderTypeInstanceParams {
                                                                                                  /** The provider type ID. */
                                                                                                  providerTypeId: string;
                                                                                                  /** The provider type instance ID. */
                                                                                                  providerTypeInstanceId: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3803..3819
                                                                                              security-and-compliance-center-api/v3.ts on lines 3822..3838
                                                                                              security-and-compliance-center-api/v3.ts on lines 4111..4128
                                                                                              security-and-compliance-center-api/v3.ts on lines 4360..4377

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 64.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetProfileAttachmentParams {
                                                                                                  /** The attachment ID. */
                                                                                                  attachmentId: string;
                                                                                                  /** The profile ID. */
                                                                                                  profilesId: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 4 other locations - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3803..3819
                                                                                              security-and-compliance-center-api/v3.ts on lines 4111..4128
                                                                                              security-and-compliance-center-api/v3.ts on lines 4340..4357
                                                                                              security-and-compliance-center-api/v3.ts on lines 4360..4377

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 64.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface RequiredConfigItemsRequiredConfigBase extends RequiredConfigItems {
                                                                                                  /** The required config description. */
                                                                                                  description?: string;
                                                                                                  /** The property. */
                                                                                                  property: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 5677..5686

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 59.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface RequiredConfigRequiredConfigBase extends RequiredConfig {
                                                                                                  /** The required config description. */
                                                                                                  description?: string;
                                                                                                  /** The property. */
                                                                                                  property: string;
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 1 hr to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 5649..5658

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 59.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetProviderTypeByIdParams {
                                                                                                  /** The provider type ID. */
                                                                                                  providerTypeId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface DeleteCustomControlLibraryParams {
                                                                                                  /** The control library ID. */
                                                                                                  controlLibrariesId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface ListProviderTypeInstancesParams {
                                                                                                  /** The provider type ID. */
                                                                                                  providerTypeId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface DeleteCustomProfileParams {
                                                                                                  /** The profile ID. */
                                                                                                  profilesId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetProfileParams {
                                                                                                  /** The profile ID. */
                                                                                                  profilesId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetReportSummaryParams {
                                                                                                  /** The ID of the scan that is associated with a report. */
                                                                                                  reportId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetLatestReportsParams {
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                                   *  value of this header is not supplied in a request, the service generates a random (version 4) UUID.
                                                                                                   */
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetRuleParams {
                                                                                                  /** The ID of the corresponding rule. */
                                                                                                  ruleId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetReportParams {
                                                                                                  /** The ID of the scan that is associated with a report. */
                                                                                                  reportId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface DeleteRuleParams {
                                                                                                  /** The ID of the corresponding rule. */
                                                                                                  ruleId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface CreateScanParams {
                                                                                                  /** The attachment ID of a profile. */
                                                                                                  attachmentId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetControlLibraryParams {
                                                                                                  /** The control library ID. */
                                                                                                  controlLibrariesId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4228..4243
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 13 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface GetReportTagsParams {
                                                                                                  /** The ID of the scan that is associated with a report. */
                                                                                                  reportId: string;
                                                                                                  /** The supplied or generated value of this header is logged for a request and repeated in a response header for
                                                                                                   *  the corresponding response. The same value is used for downstream requests and retries of those requests. If a
                                                                                              Severity: Major
                                                                                              Found in security-and-compliance-center-api/v3.ts and 12 other locations - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 3397..3411
                                                                                              security-and-compliance-center-api/v3.ts on lines 3414..3428
                                                                                              security-and-compliance-center-api/v3.ts on lines 3544..3558
                                                                                              security-and-compliance-center-api/v3.ts on lines 3561..3575
                                                                                              security-and-compliance-center-api/v3.ts on lines 3677..3692
                                                                                              security-and-compliance-center-api/v3.ts on lines 3695..3710
                                                                                              security-and-compliance-center-api/v3.ts on lines 3909..3923
                                                                                              security-and-compliance-center-api/v3.ts on lines 3945..3962
                                                                                              security-and-compliance-center-api/v3.ts on lines 4006..4021
                                                                                              security-and-compliance-center-api/v3.ts on lines 4024..4039
                                                                                              security-and-compliance-center-api/v3.ts on lines 4282..4297
                                                                                              security-and-compliance-center-api/v3.ts on lines 4300..4315

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const body = {
                                                                                                    'profile_name': _params.profileName,
                                                                                                    'profile_description': _params.profileDescription,
                                                                                                    'profile_type': _params.profileType,
                                                                                                    'controls': _params.controls,
                                                                                              Severity: Minor
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 1025..1031

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  const body = {
                                                                                                    'profile_name': _params.profileName,
                                                                                                    'profile_description': _params.profileDescription,
                                                                                                    'profile_type': _params.profileType,
                                                                                                    'controls': _params.controls,
                                                                                              Severity: Minor
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 55 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 822..828

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 53.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface AttachmentScope {
                                                                                                  /** The unique identifier for this scope. */
                                                                                                  id?: string;
                                                                                                  /** The environment that relates to this scope. */
                                                                                                  environment?: string;
                                                                                              Severity: Minor
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 40 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 5381..5388

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 48.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                export interface ReportViolationsDrift {
                                                                                                  /** The ID of the home account. */
                                                                                                  home_account_id?: string;
                                                                                                  /** The ID of the report. */
                                                                                                  report_id?: string;
                                                                                              Severity: Minor
                                                                                              Found in security-and-compliance-center-api/v3.ts and 1 other location - About 40 mins to fix
                                                                                              security-and-compliance-center-api/v3.ts on lines 4560..4567

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 48.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              There are no issues that match your filters.

                                                                                              Category
                                                                                              Status