# saltstack/salt SLOC report

> As of 2026-11-20 (commit 221495872f8f), saltstack/salt contains 608,529 total lines: 503,071 code, 45,803 comments, 59,655 blank, across 1,593 files in 27 languages (top language: Python 95.4%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

saltstack/salt has 503,071 source lines of code out of 608,529 total lines across 1,593 files, counted with tokei from the master ref at commit 221495872f8f on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving saltstack/salt to commit 221495872f8f, 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

saltstack/salt: 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 large codebase by counted code lines. Code represents 82.7% of all lines, comments represent 7.5%, and the repository averages 316 code lines per file. Python accounts for 95.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 1,040 | 564,641 | 479,802 | 31,138 | 53,701 |
| Shell | 43 | 13,665 | 8,961 | 2,635 | 2,069 |
| RPM Specfile | 3 | 6,965 | 5,684 | 470 | 811 |
| PowerShell | 13 | 3,781 | 2,648 | 769 | 364 |
| C# | 3 | 1,520 | 1,134 | 248 | 138 |
| Jinja2 | 25 | 967 | 960 | 0 | 7 |
| ReStructuredText | 6 | 1,115 | 809 | 0 | 306 |
| YAML | 6 | 673 | 663 | 7 | 3 |
| BASH | 4 | 773 | 568 | 118 | 87 |
| XML | 10 | 678 | 525 | 30 | 123 |
| Fish | 9 | 560 | 414 | 81 | 65 |
| TOML | 1 | 277 | 253 | 10 | 14 |

Top language: Python 95.4%. Generated on November 20, 2026. Canonical report: https://octocounts.com/github/saltstack/salt

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/saltstack/salt/commit/221495872f8feea365a074d13c592229836f9161?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=b8899d2da1c15e39db27d1798351060223af596571a87255e445088af140a053).

## Report FAQ

### How many lines of code does saltstack/salt have?

saltstack/salt has 503,071 lines of code, plus 45,803 comment lines and 59,655 blank lines, for 608,529 total lines at commit 221495872f8f on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the saltstack/salt line count measured?

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

### What commit was counted for saltstack/salt?

This OctoCounts report was generated from master at commit 221495872f8f on November 20, 2026.

## Similar repository reports

- [microsoft/pyright](https://octocounts.com/github/microsoft/pyright) — Python, 494,188 code lines
- [flet-dev/flet](https://octocounts.com/github/flet-dev/flet) — Python, 518,611 code lines
- [Mai-with-u/MaiBot](https://octocounts.com/github/Mai-with-u/MaiBot) — Python, 520,436 code lines
- [microsoft/agent-governance-toolkit](https://octocounts.com/github/microsoft/agent-governance-toolkit) — Python, 480,331 code lines
- [crewAIInc/crewAI](https://octocounts.com/github/crewAIInc/crewAI) — Python, 476,866 code lines
- [DetachHead/basedpyright](https://octocounts.com/github/DetachHead/basedpyright) — Python, 471,952 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [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)
