Skip to content

ModProg/rsn-fmt

Repository files navigation

rsn-fmt

CI Status Crates.io Docs.rs Documentation for main

Configuration

Configuration can be done through a rsnfmt.rsn or .rsnfmt.rsn config file in any parent directory or in the user's configuration:

Linux (and similar) Windows macOS
$XDG_CONFIG_HOME or $HOME/.config $HOME/Library/Application Support {FOLDERID_RoamingAppData}
/home/alice/.config /Users/Alice/Library/Application Support C:\Users\Alice\AppData\Roaming

The default values are:

{
    max_width: 60,
    // Normalize all comments to a specific format
    // Possible values: Block, Line, No
    normalize_comments: No,
    // Wrap comments: boolean
    wrap_comments: false,
    // Should formatting preserve empty lines
    // Possible values: One, All, None
    preserve_empty_lines: One,
    // Inherit parent/global configuration: boolean
    inherit: true
}

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages