ripfmt

Crates.ioripfmt
lib.rsripfmt
version0.1.0
sourcesrc
created_at2024-04-24 00:47:33.03725
updated_at2024-04-24 00:47:33.03725
descriptionripfmt recursively applies code formatting tools while respecting your gitignore
homepage
repositoryhttps://github.com/oclyke/ripfmt
max_upload_size
id1218190
size15,597
(oclyke)

documentation

README

ripfmt

ripfmt recursively applies code formatting tools while respecting your gitignore

status

extremely early development. co-contibutors extremely welcome!

intent ripfmt wants to be like ripgrep - fast and focused.

scope ripfmt does not actually format any code. this is a job that is better left to language-specific tools.

the point of ripfmt is to address a common pattern in consinuous integration: enforcing code formatting standards across a codebase.

vision

no plugins. ripfmt will handle finding the files and spawning highly parallel processes for your code formatting tools.

long range

eventually it would be nice to have some configurability. for example, what if ripfmt wants to support a --check feature? this is a highly desireable feature for a tool used in CI, however every existing tool has a different invocation for this feature.

black . --check

conceptual idea for command line templating. ripfmt --check 'black {file} {check ? --check : ""}'

this would allow no-plugin ripfmt to support generic tools. the template could be parsed and validated once at the beginning of the run and then used to spawn processes in parallel. the --check flag passed to ripgrep would inform error handling and exit code.

Commit count: 4

cargo fmt