# owasp-modsecurity/ModSecurity SLOC report

> As of 2026-11-24 (commit 475aece84b08), owasp-modsecurity/ModSecurity contains 74,091 total lines: 52,127 code, 11,396 comments, 10,568 blank, across 515 files in 11 languages (top language: C++ 60.3%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

Source: [owasp-modsecurity/ModSecurity on GitHub](https://github.com/owasp-modsecurity/ModSecurity) · counted commit [475aece84b08](https://github.com/owasp-modsecurity/ModSecurity/tree/475aece84b0823a4318cf31c558a9584d660dc47)

owasp-modsecurity/ModSecurity has 52,127 source lines of code out of 74,091 total lines across 515 files, counted with tokei from the 475aece84b0823a4318cf31c558a9584d660dc47 ref at commit 475aece84b08 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving owasp-modsecurity/ModSecurity to commit 475aece84b08, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

owasp-modsecurity/ModSecurity: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 70.4% of all lines, comments represent 15.4%, and the repository averages 101 code lines per file. C++ accounts for 60.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 194 | 42,760 | 31,445 | 5,536 | 5,779 |
| C Header | 293 | 18,932 | 9,902 | 4,973 | 4,057 |
| C++ Header | 4 | 9,272 | 8,373 | 572 | 327 |
| LLVM | 1 | 1,401 | 1,357 | 0 | 44 |
| Automake | 13 | 908 | 748 | 7 | 153 |
| C | 2 | 229 | 157 | 28 | 44 |
| Python | 1 | 86 | 76 | 1 | 9 |
| Shell | 3 | 49 | 37 | 4 | 8 |
| Batch | 1 | 28 | 22 | 0 | 6 |
| Autoconf | 1 | 11 | 10 | 0 | 1 |
| Markdown | 2 | 415 | 0 | 275 | 140 |

Top language: C++ 60.3%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/owasp-modsecurity/ModSecurity

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/owasp-modsecurity/ModSecurity/commit/475aece84b0823a4318cf31c558a9584d660dc47?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=839f231a50d0881863c6095e2d640a7825923a5c775e83d966850fa714b450d0).

## Report FAQ

### How many lines of code does owasp-modsecurity/ModSecurity have?

owasp-modsecurity/ModSecurity has 52,127 lines of code, plus 11,396 comment lines and 10,568 blank lines, for 74,091 total lines at commit 475aece84b08 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the owasp-modsecurity/ModSecurity line count measured?

OctoCounts resolved the public GitHub repository to commit 475aece84b08, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for owasp-modsecurity/ModSecurity?

This OctoCounts report was generated from 475aece84b0823a4318cf31c558a9584d660dc47 at commit 475aece84b08 on November 24, 2026.

## Similar repository reports

- [duckdb/ducklake](https://octocounts.com/github/duckdb/ducklake) — C++, 52,043 code lines
- [AmmarkoV/SAM3DBody-cpp](https://octocounts.com/github/AmmarkoV/SAM3DBody-cpp) — C++, 52,389 code lines
- [mlc-ai/xgrammar](https://octocounts.com/github/mlc-ai/xgrammar) — C++, 51,698 code lines
- [mawww/kakoune](https://octocounts.com/github/mawww/kakoune) — C++, 51,233 code lines
- [apinprastya/sultan](https://octocounts.com/github/apinprastya/sultan) — C++, 50,995 code lines
- [erincatto/box2d-lite](https://octocounts.com/github/erincatto/box2d-lite) — C++, 53,428 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
