Interface SonarCodeScannerConfig

    • Method Detail

      • getSonarqubeAuthorizedGroup

        @Stability(Stable)
        @NotNull
        String getSonarqubeAuthorizedGroup()
        Group name in Sonarqube with access to administer this project.
      • getSonarqubeDefaultProfileOrGateName

        @Stability(Stable)
        @NotNull
        String getSonarqubeDefaultProfileOrGateName()
        Default profile/gate name i.e: your org profile.

        Note: These need to be set up in Sonarqube manually.

      • getSonarqubeEndpoint

        @Stability(Stable)
        @NotNull
        String getSonarqubeEndpoint()
        endpoint of the sonarqube instance i.e: https://.

        Note: Ensure a trailing '/' is not included.

      • getSonarqubeProjectName

        @Stability(Stable)
        @NotNull
        String getSonarqubeProjectName()
        Name of the project to create in Sonarqube.
      • getCdkOutDir

        @Stability(Stable)
        @Nullable
        default String getCdkOutDir()
        directory containing the synthesized cdk resources.
      • getCfnNagIgnorePath

        @Stability(Stable)
        @Nullable
        default String getCfnNagIgnorePath()
        path to a file containing the cfn nag suppression rules.
      • getExcludeGlobsForScan

        @Stability(Stable)
        @Nullable
        default List<String> getExcludeGlobsForScan()
        glob patterns to exclude from sonar scan.
      • getIncludeGlobsForScan

        @Stability(Stable)
        @Nullable
        default List<String> getIncludeGlobsForScan()
        glob patterns to include from sonar scan.
      • getPreArchiveCommands

        @Stability(Stable)
        @Nullable
        default List<String> getPreArchiveCommands()
        Hook which allows custom commands to be executed before the process commences the archival process.
      • getSonarqubeSpecificProfileOrGateName

        @Stability(Stable)
        @Nullable
        default String getSonarqubeSpecificProfileOrGateName()
        Specific profile/gate name i.e: language specific.

        Note: These need to be set up in Sonarqube manually.

      • getSonarqubeTags

        @Stability(Stable)
        @Nullable
        default List<String> getSonarqubeTags()
        Tags to associate with this project.