Skip to main content

codeint_config/
lib.rs

1#![forbid(unsafe_code)]
2
3mod agent_home;
4mod baseline;
5mod boundaries;
6mod calendar_day;
7mod check_run_env;
8mod churn;
9mod cli;
10mod cli_schema;
11mod codeowners;
12mod command;
13mod config_error;
14mod config_file;
15mod coupling;
16mod dependencies;
17mod dialects;
18mod finding_anchor;
19mod framework_profiles;
20mod hazards;
21mod ratchet;
22mod regression_limits;
23mod repo_state;
24mod resolved;
25mod result_cache_folder;
26mod state_check;
27
28pub use baseline::{
29    BASELINE_PATH, BASELINE_SCHEMA_VERSION, Baseline, BaselineEntry, BaselineFileError,
30    BaselineUpdateSummary, MeasuredBaselineMetric,
31};
32pub use boundaries::{
33    Boundaries, BoundaryDirective, BoundaryExternalPolicy, BoundaryPreset, BoundaryRuleDecision,
34    BoundarySourceSet,
35};
36pub use calendar_day::{CalendarDay, CalendarDayError};
37pub use churn::{ChurnFormat, ChurnSince, ChurnSinceError, ChurnWindow, DEFAULT_CHURN_DAYS};
38pub use cli::read_invocation;
39pub use cli_schema::{
40    CliArgumentSchema, CliCommandSchema, CliFlagSchema, CliSchema, OutputFormatSchema, cli_schema,
41};
42pub use codeowners::{Codeowners, CodeownersError, OwnerFilter};
43pub use command::{
44    AgentClient, AgentCommand, AgentFormat, BaselineCommand, BaselineFormat,
45    CHECK_RUN_ANNOTATION_MESSAGE_MAX_BYTES, CHECK_RUN_ANNOTATIONS_PER_REQUEST,
46    CHECK_RUN_API_ERROR_MAX_CHARS, CHECK_RUN_SUMMARY_MAX_BYTES, CheckRunConclusionMode,
47    CheckRunConfig, CheckRunPublishConfig, Command, ConfigError, ConfigFormat,
48    DEFAULT_CHECK_RUN_CONNECT_TIMEOUT_SECONDS, DEFAULT_CHECK_RUN_MAX_ANNOTATIONS,
49    DEFAULT_CHECK_RUN_MAX_TIME_SECONDS, DEFAULT_CHECK_RUN_NAME, DEFAULT_GITHUB_API_URL,
50    DEFAULT_MAX_TRACE_PATHS, DEFAULT_PLUGIN_MAX_DOWNLOAD_BYTES, DEFAULT_RENAME_THRESHOLD,
51    DEFAULT_UPDATE_CONNECT_TIMEOUT_SECONDS, DEFAULT_UPDATE_DOWNLOAD_MAX_TIME_SECONDS,
52    DEFAULT_UPDATE_METADATA_MAX_TIME_SECONDS, DoctorFormat, FindingsShown, GuardFormat,
53    ImpactFormat, InitFormat, Invocation, MAX_RENAME_THRESHOLD, PluginCommand, PluginHostConfig,
54    PluginTestFormat, RatchetCommand, RatchetFormat, ReportDestination, ReportFormat, ReportInput,
55    ReportMode, ReportRenderFormat, SchemaFormat, StateCheckFormat, StateCommand,
56    StateUpdateCommand, TraceFormat, TrendFormat, TrendRange,
57};
58pub use config_error::{
59    ConfigFileKind, ConfigSyntax, ConfigurationFileError, JsonType, JsoncError, KeyPath, KeySegment,
60};
61pub use config_file::{
62    Budget, Budgets, Configuration, ConfigurationInspection, DEPENDENCY_METRIC_KEYS,
63    DetectedLanguage, DiscoveredConfigFile, DuplicationConfig, EntryPoints, FileSizeConfig,
64    HAZARDS_METRIC_KEY, LanguageCoverage, Languages, MAX_PLUGIN_MEMORY_MB, MAX_PLUGIN_TIMEOUT_MS,
65    MIN_PLUGIN_MEMORY_MB, MIN_PLUGIN_TIMEOUT_MS, MinSimilarity, OutputFormat, PluginDeclaration,
66    PluginKind, PluginLimits, PluginSource, RewrittenSchema, RewrittenSchemaForm, SchemaValueSpan,
67    SchemaVersionStatus, Sha256Digest, SourceSetOverrides, StarterBoundaries, StarterBoundaryZone,
68    StarterConfigurationError, TEST_GAP_METRIC_KEY, configuration_schema, discover_config_file,
69    inspect_configuration, is_broken_symlink, parse_configuration_files, published_schema_address,
70    read_configuration, read_resolved_configuration, rewrite_schema_tag, schema_value_span,
71    write_adoption_starter_configuration, write_adoption_zero_budgets, write_starter_configuration,
72    write_starter_configuration_in_format,
73};
74pub use coupling::{
75    CouplingRatio, CouplingRatioError, CouplingSettings, DEFAULT_MAX_COMMIT_FILES,
76    DEFAULT_MIN_CO_CHANGES, DEFAULT_MIN_COUPLING_RATIO,
77};
78pub use dependencies::DependenciesConfig;
79pub use dialects::{DialectConflict, DialectRules, validate_dialects};
80pub use finding_anchor::{
81    AnchorMatch, CloneLineAnchor, FindingAnchor, match_anchors, match_anchors_with_aliases,
82    match_anchors_with_renames, remap_anchor_paths,
83};
84pub use framework_profiles::{FrameworkProfilesConfig, display_package_key};
85pub use hazards::HazardsConfig;
86pub use ratchet::{
87    DEFAULT_RATCHET_PATH, MeasuredRatchetMetric, RATCHET_SCHEMA_VERSION, Ratchet, RatchetConfig,
88    RatchetEntry, RatchetFileError, RatchetSourceSets, RatchetUpdateSummary,
89    RatchetVersionMismatch, RatchetViolation, round_ratchet_ratio,
90};
91pub use regression_limits::{NewFindingsRule, RatioRise, RegressionLimit, RegressionLimits};
92pub use repo_state::{
93    LoadedForUpdate, MetricVersionMismatch, RepoStateFile, SourceSetEntries, StateFileError,
94};
95pub use resolved::{
96    BudgetOverride, ConfigOverrides, ConfigProvenance, ResolvedConfiguration, ResolvedSetting,
97    SourceSetOverride,
98};
99pub use state_check::{StateCheckComparison, StateCheckViolation, compare_state};