Sha256: 48492297a9e79279691204c4cda2fea888c996e56e01792c20d01e2bbe6b608e

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

# zapwhite

[![Build Status](https://api.travis-ci.com/realityforge/zapwhite.svg?branch=master)](http://travis-ci.com/realityforge/zapwhite)

A simple tool to normalize whitespace in git repositories. The tool:

* removes trailing whitespace from each line
* ensures files end with a new line
* ensure files are in ASCII format with no invalid UTF sequences
* ensures dos files use dos line endings and all other files do not.

Files that are part of the repository are candidates for normalization.
(It is sufficient for the file to be staged). Files are matched against
patterns supplied either in the command line or in the `.gitattributes`
file associated with the repository.

The tool will ensure files annotated with `text` will be processed and
files with the `eol=crlf` attribute will be treated as dos files. If the
file has an `encoding` attribute, the tool will not try to convert to
ASCII. The tool will also scan and remove duplicate new lines if any file
has a attribute `-dupnl`. The tool will not enforce end of file new
lines if attribute `-eofnl` is set.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zapwhite-2.21.0 README.md
zapwhite-2.20.0 README.md
zapwhite-2.19.0 README.md
zapwhite-2.18.0 README.md