LicenseRef-OtherLicense licensed by fix-whitespace was originally written by Nils Anders Danielsson as part of Agda 2 with contributions from Ulf Norell, Andrés Sicard-Ramírez, Andreas Abel, Philipp Hausmann, Jesper Cockx, Vlad Semenov, and Liang-Ting Chen.
Maintained by Liang-Ting Chen
This version can be pinned in stack with:fix-whitespace-0.0.6@sha256:b5a13b0746be0413585287a4569c5e8ac496bbd10a7664161c7609c1c12e7455,2255

Module documentation for 0.0.6

There are no documented modules for this package.

fix-whitespace: Fixes whitespace issues

Hackage version Hackage CI fix-whitespace on Stackage Nightly Stackage LTS version Build status

This tool can keep your project and repository clean of trailing whitespace and missing terminal newline.

Usage: fix-whitespace [-h|--help] [-v|--verbose] [--check] [--config CONFIG] [FILES]

The program does the following to files specified in FILES or in the configuration file fix-whitespace.yaml under the current directory (and its subdirectories):

  • Remove trailing whitespace.
  • Remove trailing lines containing nothing but whitespace.
  • Ensure that the file ends in a newline character.

Available options:

  • -h --help

    Show this help information.

  • -v --verbose

    Show files as they are being checked.

  • --config=CONFIG

    Override the project configuration fix-whitespace.yaml.

  • --check

    With --check the program does not change any files, it just checks if any files would have been changed. In this case it returns with a non-zero exit code.

For an example configuration file see the one of Agda.

Changes

fix-whitespace

Version history.

0.0.6 released 2021-07-29

  • Fix the release version: The tag 0.0.5 on the GitHub repo was released on 14 Oct 2019 while 0.0.5 on Hackage is the commit 1394ec6.
  • Include -Wall and -Wcompact during compilation.
  • Update stack-x.y.z.yaml and add stack-8.10.5.yaml.

0.0.5 released 2021-03-11

  • initial release.
  • tested with GHC 8.0.2 - 9.0.1.