GithubHelp home page GithubHelp logo

isabella232 / ufofmt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from source-foundry/ufofmt

0.0 0.0 0.0 338 KB

A fast, flexible UFO source file formatter based on the Rust Norad library

License: Apache License 2.0

Rust 99.72% Makefile 0.28%

ufofmt's Introduction

ufofmt

crates.io stable toolchain unit tests beta toolchain unit tests

A fast, flexible UFO source file formatter based on the Rust Norad library

About

ufofmt is a Rust executable that supports customizable UFO source file formatting.

Default source file format

ย  glif plist fea
line endings line feed line feed line feed
indentation spacing single tab per level single tab per level n/a
XML declaration attributes double quotes double quotes n/a

Custom formatting options are described in the Usage section below.

Installation

The installation process installs the ufofmt executable.

Install Rust, then follow the instructions below.

User installation

The following command installs the latest release build:

$ cargo install ufofmt

Upgrade a previous installation to a new release version with:

$ cargo install --force ufofmt

Developer installation

The following command installs a build from the latest commit in the main branch of the repository:

$ git clone https://github.com/source-foundry/ufofmt.git
$ cd ufofmt && cargo install --path .

Usage

Pass one or more UFO source directory paths to the ufofmt executable:

$ ufofmt [OPTIONS] [UFO PATH 1] ... [UFO PATH N]

Use the command ufofmt --help to view all available command line options.

Custom source formatting options

Indentation spacing character type

Single tab indentation spacing per level is the default. Switch to space characters with the --indent-space command line option. See the section below to define the number of indentation spacing characters per level.

Indentation spacing character number per level

Define between 1 - 4 tab or space indentation chars with the --indent-number [NUMBER] command line option. See the section above to use spaces instead of tabs.

XML declaration quote style

XML declaration attributes are enclosed in double quotes by default. Convert to single quotes with the --singlequotes command line option.

Contributing

Contributions to the project are welcomed! All contributions are accepted under the project license defined in the License section below.

Source contributions

Test local changes in the executable with:

$ cargo run -- [ARGS]

Add tests to cover your source changes and run the test suite locally with:

$ cargo test

Please open a GitHub pull request with your change proposal.

Documentation contributions

Please build and review your documentation changes locally with:

$ cargo doc --open

Please open a GitHub pull request with your change proposal.

License

Apache License v2.0

ufofmt's People

Contributors

chrissimpkins avatar dependabot[bot] avatar madig avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.