github.com/Masynchin/ndnt ↗
Inspect indents of your files.
Open this visualization on its own page →
Contributors
2
Lines of Code
110
From
2022-01-28
To
2022-05-01
About Masynchin/ndnt
ndnt is a command-line tool written in Python that analyzes and reports the indentation patterns in source code files. It calculates indent statistics for individual files or entire directories, displaying the average indentation level as a decimal number alongside the file path. The tool supports multiple programming languages out of the box and can process multiple files simultaneously.
The tool offers flexible filtering options, allowing users to target specific files by extension using the `-e` flag or to analyze entire directory trees. It respects gitignore files by default to avoid scanning ignored paths, though this behavior can be disabled with the `--no-gitignore` flag. When analyzing multiple files, ndnt provides a total average indentation statistic across all scanned files, making it useful for auditing code consistency across projects.
ndnt is installable via pip and designed as a straightforward utility for developers who want to inspect and understand the indentation characteristics of their codebases. It integrates well with other command-line tools like fd and ripgrep, accepting piped input through xargs for flexible workflow integration.