/** * Default configurations for the code auditor */ import { AuditConfig, PathProfile } from '../types.js'; /** * Get default configuration */ export declare function getDefaultConfig(): AuditConfig; /** * Get project type specific defaults */ export declare function getProjectTypeDefaults(projectType: string): Partial; /** * Get environment-specific defaults */ export declare function getEnvironmentDefaults(env: string): Partial; /** * Default analyzer configurations */ export declare const DEFAULT_ANALYZER_CONFIGS: { solid: { maxMethodsPerClass: number; maxLinesPerMethod: number; maxParametersPerMethod: number; maxImportsPerFile: number; maxComplexity: number; maxMethodComplexity: number; classMethodsThreshold: number; classAggregateComplexity: number; }; dry: { minLineThreshold: number; similarityThreshold: number; excludePatterns: string[]; checkImports: boolean; checkStrings: boolean; ignoreComments: boolean; ignoreWhitespace: boolean; divergence: { divergenceThreshold: number; divergenceRuns: number; minPairSimilarity: number; }; }; dataAccess: { directAccess: string; databasePatterns: { postgres: string[]; mysql: string[]; mongodb: string[]; }; securityPatterns: { parameterizedQueries: string[]; }; performanceThresholds: { maxJoins: number; warnOnSelectStar: boolean; }; detection: { mode: 'hybrid'; }; }; documentation: { requireFunctionDocs: boolean; requireClassDocs: boolean; requireParamDocs: boolean; requireReturnDocs: boolean; minDescriptionLength: number; exemptPatterns: string[]; scope: string; docsMinLines: number; fileHeaders: boolean; headerSkipGlobs: string[]; }; schema: { enableTableUsageTracking: boolean; checkMissingReferences: boolean; checkNamingConventions: boolean; detectUnusedTables: boolean; validateQueryPatterns: boolean; maxQueriesPerFunction: number; requiredSchemas: never[]; sqlTagNames: string[]; dbReceiverNames: string[]; dbCallMethods: string[]; dbBindingNames: string[]; fileGateGlobs: string[]; detection: { mode: 'hybrid'; }; validatorPackageList: string[]; }; styles: { minCorpus: number; colorDeltaE: number; outlierMaxShare: number; modeMinCount: number; scaleProperties: string[]; zIndexMaxDistinct: number; mechanismFragmentationMinMechanisms: number; declarationSetMinDeclarations: number; declarationSetSimilarityThreshold: number; categoricalPropertyExclusions: string[]; }; conventions: { minCorpus: number; pairConfidence: number; modeShare: number; maxConventionsPerDomain: number; }; crossDomain: { schemaLifecycle: { enableWrittenNeverRead: boolean; enableReadNeverWritten: boolean; enableTransactionBoundaryRisk: boolean; txnTableMax: number; }; validatorBypass: { validators: never[]; modeShare: number; minCorpus: number; depth: number; }; coverage: { testGlobs: string[]; staticReachDepth: number; topRiskDecile: number; }; }; }; /** * Built-in path profiles shipped with the tool. * * "scripts-and-tests" caps scripts, tests, and test fixtures to * "suggestion" severity — grounded in the Spec 11 triage numbers * showing these directories produce noise, not signal. * * Disable entirely via `"builtin": false` in .codeauditor.json. * Replace a specific built-in via a user profile with the same name * and `"builtin": false`. */ export declare const BUILTIN_PATH_PROFILES: PathProfile[]; /** * Merge built-in path profiles with user-configured profiles. * * - `builtin: false` at top level → no built-ins * - User profile with `builtin: false` → replaces built-in of same name * - Otherwise: built-ins come first, user profiles appended after * (later wins on conflict) * * @returns The merged profile array, or undefined if no profiles active */ export declare function mergePathProfiles(userProfiles: PathProfile[] | undefined, builtinEnabled: boolean | undefined): PathProfile[] | undefined; /** * Default code index configuration */ export declare const DEFAULT_CODE_INDEX_CONFIG: { databasePath: string; maxBatchSize: number; searchResultLimit: number; enableAutoIndex: boolean; }; //# sourceMappingURL=defaults.d.ts.map