-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdebtlens.config.example.json
More file actions
55 lines (55 loc) · 1.7 KB
/
Copy pathdebtlens.config.example.json
File metadata and controls
55 lines (55 loc) · 1.7 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"$schema": "https://raw.githubusercontent.com/ColumbusLabs/DebtLens/main/schema/debtlens.config.schema.json",
"include": ["src/**/*.{ts,tsx,js,jsx}"],
"exclude": ["node_modules/**", "dist/**", "build/**", "out/**", ".next/**", ".output/**", "coverage/**", ".venv/**", "venv/**", "**/__generated__/**"],
"minSeverity": "low",
"respectGitignore": false,
"rules": [
"large-component",
"large-function",
"state-sprawl",
"effect-complexity",
"hook-dependency-smell",
"context-provider-sprawl",
"rn-host-forwarding",
"server-client-boundary",
"route-handler-size",
"data-loader-sprawl",
"handler-depth",
"route-sprawl",
"duplicate-logic",
"test-duplication",
"complex-control-flow",
"import-cycle",
"config-drift",
"duplicated-literal",
"dead-abstraction",
"prop-drilling",
"todo-comment",
"naming-drift",
"barrel-file",
"weak-test-boundary",
"api-surface-sprawl",
"story-only-component"
],
"thresholds": {
"large-component.maxLines": 250,
"large-function.maxLines": 120,
"state-sprawl.maxStatefulHooks": 6,
"effect-complexity.maxLines": 30,
"context-provider-sprawl.maxProviders": 4,
"rn-host-forwarding.maxForwardedProps": 6,
"route-handler-size.maxAwaits": 6,
"data-loader-sprawl.maxFetches": 5,
"handler-depth.maxDepth": 4,
"route-sprawl.maxRoutes": 8,
"duplicate-logic.minSimilarity": 0.86,
"duplicate-logic.minLines": 8,
"test-duplication.minSimilarity": 0.88,
"complex-control-flow.maxComplexity": 12,
"import-cycle.minCycleSize": 2,
"duplicated-literal.minCount": 3,
"barrel-file.maxReExports": 6,
"api-surface-sprawl.maxExports": 12
}
}