-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrawlcontract.toml.example
More file actions
34 lines (26 loc) · 1.01 KB
/
Copy pathcrawlcontract.toml.example
File metadata and controls
34 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# CrawlContract policy configuration.
# Copy this file to crawlcontract.toml and adjust as needed.
[general]
# Severities that cause a non-zero exit code.
# Options: "error", "warning", "info"
fail_on = ["error"]
# Public origin for URL resolution. Overrides --public-origin.
# public_origin = "https://example.com"
# Exclude specific rule+URL combinations from findings.
[[exclusions]]
rule_id = "CC-ORPHAN-001"
url_pattern = "/admin/**"
reason = "Admin pages are not linked from public navigation"
[[exclusions]]
rule_id = "CC-SITEMAP-INDEXABILITY-003"
url_pattern = "/legacy/*"
reason = "Legacy pages canonicalize during migration"
[diff]
# Maximum allowed decrease in indexable URL count (percentage).
max_indexable_url_loss_percent = 5
# Maximum allowed decrease in internal link count per page (percentage).
max_link_loss_percent = 10
# Maximum allowed decrease in word count per page (percentage).
max_word_loss_percent = 50
# Maximum allowed decrease in heading count per page (percentage).
max_heading_loss_percent = 15