UNPKG

projen

Version:

CDK for software projects

38 lines (37 loc) 1.37 kB
import type { IConstruct } from "constructs"; import { SonarqubeProperties } from "./sonarqube"; import type { SonarqubePropertiesOptions } from "./sonarqube"; /** * Options for `SonarqubeRustProperties`. * * Extends base options with Rust-specific defaults. */ export interface SonarqubeRustPropertiesOptions extends SonarqubePropertiesOptions { } /** * A SonarQube configuration preset for Rust projects. * * Provides sensible defaults for Rust analysis: * - `sonar.language` = `rust` * - `sonar.sources` = `src` * - `sonar.tests` = `tests` * - `sonar.sourceEncoding` = `UTF-8` * - `sonar.profile` = `Sonar Way` * - `sonar.scm.provider` = `git` * - Typical exclusions for `coverage`, test, and `target` dirs * - `sonar.rust.lcov.reportPaths` = `target/lcov.info` * - `sonar.rust.clippy.enabled` = `false` * - `sonar.rust.clippyReport.reportPaths` = `target/clippy.json` * * All defaults can be overridden via options. Nested options (e.g. `coverage`, * `rust`) are deep-merged with the defaults, so overriding one nested field * does not drop the other defaults in that subtree. * * @example * new SonarqubeRustProperties(project, { * projectKey: 'my-org_my-rust-project', * }); */ export declare class SonarqubeRustProperties extends SonarqubeProperties { constructor(scope: IConstruct, options: SonarqubeRustPropertiesOptions); }