codeint library

Constants

codeintVersion → const String

Functions

detectReleaseTarget({String? operatingSystem, String? dartVersion, Map<String, String>? environment}) → ReleaseTarget
ensureBinary([BinaryResolverOptions options = const BinaryResolverOptions()]) → Future<String>
parseAgentInstallReport(Map<String, Object?> j) → AgentInstallReport
parseAgentStatusReport(Map<String, Object?> j) → AgentStatusReport
parseBaselineInfo(Map<String, Object?> j) → BaselineInfo
parseBaselineUpdateReport(Map<String, Object?> j) → BaselineUpdateReport
parseBoundaryFinding(Map<String, Object?> j) → BoundaryFinding
parseBudgetFailure(Map<String, Object?> j) → BudgetFailure
parseChecksumEntry(String checksumsText, String archiveFileName) → String?
parseChurnReport(Map<String, Object?> j) → ChurnReport
parseCloneFamilyFinding(Map<String, Object?> j) → CloneFamilyFinding
parseCloneGroupFinding(Map<String, Object?> j) → CloneGroupFinding
parseCloneLocation(Map<String, Object?> j) → CloneLocation
parseCognitiveComplexityFinding(Map<String, Object?> j) → CognitiveComplexityFinding
parseConfigReport(Map<String, Object?> j) → ConfigReport
parseCouplingReport(Map<String, Object?> j) → CouplingReport
parseDoctorReport(Map<String, Object?> j) → DoctorReport
parseErodedFunctionFinding(Map<String, Object?> j) → ErodedFunctionFinding
parseExternalMetricFinding(Map<String, Object?> j) → ExternalMetricFinding
parseFileDiagnostic(Map<String, Object?> j) → FileDiagnostic
parseImportCycleFinding(Map<String, Object?> j) → ImportCycleFinding
parseImportedDependencyFinding(Map<String, Object?> j) → ImportedDependencyFinding
parseLineRuleFinding(Map<String, Object?> j) → LineRuleFinding
parseNewFileBudgetFailure(Map<String, Object?> j) → NewFileBudgetFailure
parseOrphanFileFinding(Map<String, Object?> j) → OrphanFileFinding
parseOversizedFileFinding(Map<String, Object?> j) → OversizedFileFinding
parsePluginTestReport(Map<String, Object?> j) → PluginTestReport
parseRatchetFailure(Map<String, Object?> j) → RatchetFailure
parseRatchetUpdateReport(Map<String, Object?> j) → RatchetUpdateReport
parseRegressionEntry(Map<String, Object?> j) → RegressionEntry
parseScopeSummary(Map<String, Object?> j) → ScopeSummary
parseSkippedFile(Map<String, Object?> j) → SkippedFile
parseTestGapFinding(Map<String, Object?> j) → TestGapFinding
parseUnresolvedImports(Map<String, Object?> j) → UnresolvedImportsSection
parseUnusedDependencyFinding(Map<String, Object?> j) → UnusedDependencyFinding

Typedefs

AgentInstallEntry = ({String action, String client, String configPath, String name, String? preview, bool written})
AgentInstallReport = ({String configRoot, bool dryRun, String? note, List<AgentInstallEntry> results})
AgentStatusEntry = ({String client, bool configExists, String configPath, bool detected, String name, bool registered})
AgentStatusReport = ({List<AgentStatusEntry> agents, String configRoot})
BaselineInfo = ({int hiddenFindings, String path})
BaselineUpdateOptions = StateUpdateOptions
BaselineUpdateReport = ({int added, bool created, String path, int refreshed, int removed, bool? replacedInvalid, bool reset, int skippedNew, int totalFindings})
BoundariesSection = MetricSection<BoundaryFinding>
BoundaryFinding = ({String? externalPackage, String id, String importer, String kind, String message, List<String> owners, String? reason, String? sourceZone, String? specifier, String? target, String? targetZone})
BudgetFailure = ({double budget, String metric, bool? nonBaselined, double ratio, String? sourceSet})
ChangedBase = ({String mergeBase, String ref})
ChurnReport = ({int commitsAnalyzed, bool shallow, Map<String, SourceSetChurn> sourceSets, String? warning, String window})
CliArgumentSchema = ({String? description, String name, bool required, String valueName})
CliFlagSchema = ({String? defaultValue, String? description, String? long, List<String> possibleValues, bool required, String? short, bool takesValue, String? valueName})
CloneFamilyFinding = ({List<String> cloneGroupIds, int duplicatedLines, String id, List<CloneLocation> locations, List<String> owners})
CloneGroupFinding = ({String id, List<CloneLocation> locations, List<String> owners, double? similarity, int tokens})
CloneLocation = ({int endLine, String path, int startLine})
CognitiveComplexityFinding = ({int cognitiveComplexity, int cyclomaticComplexity, int endLine, String id, int line, String? name, List<String> owners, String path, int sourceLines})
CognitiveComplexitySection = MetricSection<CognitiveComplexityFinding>
CommitManifestWarnings = ({String commit, List<String> warnings})
ConfigReport = ({String configFile, bool configFilePresent, List<ResolvedSetting> settings})
CoupledPair = ({int coChangeCount, double couplingRatio, String fileA, int fileACommits, String fileB, int fileBCommits, bool hasDirectImport})
CouplingReport = ({int commitsAnalyzed, int commitsExcludedByBulkLimit, int maxCommitFiles, int minCoChanges, double minRatio, List<CoupledPair> pairs, int? pairsLeftOut, bool shallow, List<String> sourceSets, String? warning, String window})
DiffBase = ({String mergeBase, String ref})
DiffManifestWarnings = ({List<String> base, List<String> head})
DoctorCheck = ({String? detail, String id, String? remedy, String status, String summary})
DoctorReport = ({List<DoctorCheck> checks, String path, String status, DoctorSummary summary, String version})
DoctorSummary = ({int errors, int passed, int warnings})
DuplicatedChurnFile = ({int cloneGroups, int cloneLines, int commits, String path})
DuplicationChurnSection = ({int cloneLines, List<DuplicatedChurnFile> findings, int? findingsLeftOut, double ratio})
ErodedChurnFile = ({int commits, double erodedFunctionMass, int erodedFunctions, int maxCyclomaticComplexity, String path})
ErodedFunctionFinding = ({int cognitiveComplexity, int cyclomaticComplexity, int endLine, double functionMass, String id, int line, String? name, List<String> owners, String path, int sourceLines})
ErosionChurnSection = ({double erodedFunctionMass, List<ErodedChurnFile> findings, int? findingsLeftOut, double ratio, double totalFunctionMass})
ErosionSection = MetricSection<ErodedFunctionFinding>
ExitCodeSchema = ({int code, String description, String name})
ExternalMetricFinding = ({int? endLine, String id, int line, String message, List<String> owners, String path})
ExternalMetricSummary = MetricSection<ExternalMetricFinding>
FileDiagnostic = ({String kind, int line, String message, String path})
FileSizeSection = MetricSection<OversizedFileFinding>
FlaggedLineFinding = LineRuleFinding
GuardAllowedTarget = ({List<String> publicFiles, String? reason, String zone})
GuardDeniedTarget = ({String directive, String? reason, String zone})
GuardExternalImports = ({String directive, List<String> patterns, String? reason})
HazardLineFinding = LineRuleFinding
ImpactDependent = ({int distance, String? package, String path})
ImpactSummary = ({int directDependents, int fanIn, int fanOut, int totalDependents, int transitiveDependents, int transitiveImportWeight})
ImpactTarget = ({int fanIn, int fanOut, String? package, String path, String sourceSet, int transitiveImportWeight})
ImportCycleFinding = ({String id, List<String> modules, List<String> owners})
ImportCyclesSection = MetricSection<ImportCycleFinding>
ImportedDependencyFinding = ({String dependency, String id, List<String> importers, String manifest, List<String> owners, String package})
LanguageSchemaEntry = ({List<String> extensions, List<String> frameworkProfiles, List<String> hazardRules, String name})
LineRuleFinding = ({String id, int line, List<String> owners, String path, String rule})
McpToolSchema = ({String description, Map<String, Object?> inputSchema, String name})
MetricSchema = ({String? defaultNewFindingsRule, double? defaultRatioRiseLimit, String description, String key, int metricVersion, String name, String shortDescription, String unit})
NearClonesSummary = ({double minSimilarity})
NewFileBudgetFailure = ({double budget, int files, String metric, double ratio, String sourceSet})
OrphanFileFinding = ({String id, String kind, String message, List<String> owners, String path, List<String> testImporters})
OrphanFilesSection = MetricSection<OrphanFileFinding>
OutputFormatSchema = ({List<String> commands, String name})
OversizedFileFinding = ({int excessLines, String id, List<String> owners, String path, int sourceLines})
PackageCognitiveComplexity = ({int complexCognitiveComplexity, double ratio, int totalCognitiveComplexity})
PackageDuplication = ({int cloneLines, double ratio})
PackageErosion = ({double erodedFunctionMass, double ratio, double totalFunctionMass})
PackageFileSize = ({int excessLines, double ratio, int sourceLines})
PackageHazards = ({int hazardLines, double ratio, int sourceLines})
PackageImportCycles = ({int modulesInImportCycles, double ratio})
PackageTestGap = ({double ratio, double totalFunctionMass, double untestedFunctionMass})
PackageVerbosity = ({double ratio, int verboseLines})
PluginTestCheck = ({String? hint, String id, String message, String status})
PluginTestReport = ({List<PluginTestCheck> checks, String kind, bool passed, String plugin, PluginTestSummary summary})
PluginTestSummary = ({int failed, int passed, int skipped})
RatchetFailure = ({double ceiling, String metric, double ratio, String? sourceSet})
RatchetUpdateOptions = StateUpdateOptions
RatchetUpdateReport = ({int added, bool created, int loosened, String path, int refreshed, int removed, bool? replacedInvalid, bool reset, int tightened, int totalEntries, int unchanged})
RegressionEntry = ({double base, String? file, double head, String metric, int newFindings, double ratioRiseLimit, String rule, String? sourceSet})
ResolvedSetting = ({String key, String source, Object? value})
ScopeSummary = ({String? dialect, Map<String, String> fields, String kind, String language, String? package})
SkippedFile = ({String path, String reason})
SourceSetChurn = ({DuplicationChurnSection duplication, ErosionChurnSection erosion, int files})
SourceSetImpact = ({List<ImpactDependent> direct, List<ImpactDependent> transitive})
StateCheckBase = ({String mergeBase, String ref})
TestGapFinding = ({int endLine, double functionMass, String id, int line, String? name, List<String> owners, String path, double untestedShare})
TestGapSection = MetricSection<TestGapFinding>
TraceMultiFileImport = ({String importer, String specifier, List<String> targets})
UnresolvedImportRow = ({String importer, List<String> owners, String reason, String specifier})
UnresolvedImportsSection = ({int count, List<UnresolvedImportRow> imports, int? importsLeftOut})
UnusedDependenciesSection = MetricSection<UnusedDependencyFinding>
UnusedDependencyFinding = ({String dependency, String id, String kind, String manifest, List<String> owners, String package})

Exceptions / Errors

CodeintError