-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.toml.example
More file actions
89 lines (74 loc) · 2.72 KB
/
Copy pathconfig.toml.example
File metadata and controls
89 lines (74 loc) · 2.72 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# ~/.config/codecat/config.toml
# Basename glob patterns matched against the final file/directory name anywhere.
# BUG - only works for full directory names in the path
# Useful for universally excluding common names (like build dirs, venvs)
# or file types (like logs, compiled code) regardless of project structure.
# These are matched *before* CWD-relative patterns or .gitignore.
exclude_basenames = [
# --- Version Control System Internals (Never want these scanned) ---
".git",
".hg",
".svn",
# --- Common Dependency/Package Manager Dirs ---
"node_modules",
# --- Common Virtual Environments ---
"venv",
".venv",
# --- Common Build/Output Directories ---
"build",
"dist",
"target", # e.g., Java Maven/Gradle, Rust Cargo
"out", # e.g., Go build, some IDEs
# --- Python Caches/Compiled Code ---
"__pycache__",
".pytest_cache",
"*.pyc",
"*.pyo",
# --- Common Log Files ---
"*.log",
# --- OS Metadata Files ---
".DS_Store", # macOS
"Thumbs.db", # Windows
# --- Editor Backup/Swap Files ---
"*.swp",
"*.swo",
"*~",
"*.bak",
"*.tmp",
# --- Temporary Directories ---
"temp",
"tmp",
# --- Common User Exclusions (Examples - Keep commented unless needed everywhere) ---
# "sample-docs", # Exclude any directory named 'sample-docs'
"testdata", # Exclude any directory named 'testdata'
# "docs", # Be careful excluding common names like 'docs' globally
# "site", # Common for static site generators
]
# List of file extensions (without leading dot) to include by default during scans.
# Command-line flags (-e) will override these.
include_extensions = [
"go", "mod", "sum", # Go project files
"py", "ipynb", # Python
"js", "ts", "jsx", "tsx", "html", "css", "json", "yaml", "yml", "jsonc", # Web dev
"md", "rst", "txt", # Documentation/Text
"sh", "bash", # Shell scripts
"toml", # Config files
"dockerfile", "Dockerfile",
"tf", "hcl", # Terraform
"java", "kt", "gradle", # JVM
"cs", # C#
"rb", # Ruby
"php", # PHP
"swift", # Swift
"sql", # SQL
"rs", # Rust
"c", "h", "cpp", "hpp", # C/C++
]
# The marker used to delimit file sections in the output.
comment_marker = "---"
# The introductory text placed at the very beginning of the output.
# This one doesn't have auto-newline after it, include manually as needed.
header_text = "----- Codebase for analysis -----\n"
# Whether to respect .gitignore files found during scanning by default.
# Can be overridden by the --no-gitignore command-line flag.
use_gitignore = true