-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgreptile.yaml
More file actions
40 lines (33 loc) · 880 Bytes
/
Copy pathgreptile.yaml
File metadata and controls
40 lines (33 loc) · 880 Bytes
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
# Greptile configuration for docs-haven
name: docs-haven
description: Local knowledge base for AI agents with SQLite FTS5 search
ignore_patterns:
- "*.md"
- "*.json"
- "*.yml"
- "tests/"
- "docs/"
- ".github/"
- "dist/"
- "__pycache__/"
- ".venv/"
review:
focus_areas:
- security
- performance
- error_handling
- type_safety
severity_threshold: medium
custom_rules:
- name: "Result type usage"
pattern: "return {\"error:"
message: "Use Result type (Ok/Err) instead of error dicts"
severity: warning
- name: "Bare except"
pattern: "except Exception:"
message: "Avoid bare except — catch specific exceptions"
severity: error
- name: "SQL injection risk"
pattern: "f\"SELECT.*{.*}\""
message: "Potential SQL injection — use parameterized queries"
severity: critical