Skip to main content

Crate yact

Crate yact 

Source
Expand description

yact is a program that applies code formatters seamlessly to git commits when installed as a pre-commit hook. This is the backing library for the binary sharing the same name.

Structs§

Configuration
ConfigurationItem

Enums§

BuiltinTransformer
Error
JavascriptPackageManagerType
RuffLintBehavior
ShellCommandTransformer
TransformerOptions

Traits§

Transformer
A generic trait for transforming staged files.

Functions§

apply_transform_pipeline
Apply many transform to an existing blob, creating another (for example, applying linting)
create_shell_transformer
create a shell transformer from a command with process and arguments configured.
load_configuration
pre_commit
Load configuration, apply appropriate transformers to staged changes, and merge results back into worktree.
transform
Apply a transform to an existing blob, creating another (for example, applying linting)