Masynchin/ndnt

Created May 7, 2022 · View the Masynchin/ndnt repository page

Inspect indents of your files.

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

2

Lines of Code

110

From

Jan 28, 2022

To

May 1, 2022

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.

Share this video