Crates.io | ripfmt |
lib.rs | ripfmt |
version | 0.1.0 |
source | src |
created_at | 2024-04-24 00:47:33.03725 |
updated_at | 2024-04-24 00:47:33.03725 |
description | ripfmt recursively applies code formatting tools while respecting your gitignore |
homepage | |
repository | https://github.com/oclyke/ripfmt |
max_upload_size | |
id | 1218190 |
size | 15,597 |
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.