You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,12 @@ code-signal detects and analyzes these languages with built-in lexical/parser ch
95
95
96
96
Detection uses extensions, shebangs, and common manifests such as `go.mod`, `package.json`, `pyproject.toml`, `Cargo.toml`, `pom.xml`, Gradle files, `.csproj`, `.sln`, `composer.json`, `Gemfile`, `Dockerfile`, `Containerfile`, and `*.dockerfile`.
97
97
98
+
## Aggregate line statistics
99
+
100
+
Scan JSON includes `comment_lines` and `comment_density_percent` beside existing line totals. The same aggregate fields are reported for `totals`, `by_language`, and `by_module`; diff JSON includes before/after/delta values under `totals_delta`.
101
+
102
+
Comment detection is lexical and language-aware: it recognizes `//`, `#`, and `/* ... */` style comments where those markers are valid, ignores markers inside quoted strings/raw strings, and never emits per-file locations or source snippets.
103
+
98
104
## Ignore files, test exclusion, and skip policy
99
105
100
106
Working-tree scans parse `.gitignore`, `.ignore`, and `.git/info/exclude` using gitignore-style rules before reading candidate files.
0 commit comments