Skip to content

Commit 1394ec6

Browse files
committed
Update README and add CHANGELOG
[ci skip]
1 parent f1dc3d3 commit 1394ec6

File tree

3 files changed

+43
-19
lines changed

3 files changed

+43
-19
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# fix-whitespace
2+
3+
Version history.
4+
5+
## 0.0.5 released 2021-03-11
6+
7+
- initial release
8+
- tested with GHC 8.0.2 - 9.0.1

README.md

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,44 @@
1-
fix-whitespace: Fixes whitespace issues. [![Build Status](https://travis-ci.org/agda/fix-whitespace.svg?branch=master)](https://travis-ci.org/agda/fix-whitespace)
2-
---------------------------------------------
1+
fix-whitespace: Fixes whitespace issues
2+
=======================================
3+
4+
[![Hackage version](https://img.shields.io/hackage/v/fix-whitespace.svg?label=Hackage)](http://hackage.haskell.org/package/fix-whitespace)
5+
[![Hackage CI](https://matrix.hackage.haskell.org/api/v2/packages/fix-whitespace/badge)](https://matrix.hackage.haskell.org/package/fix-whitespace)
6+
[![fix-whitespace on Stackage Nightly](https://stackage.org/package/fix-whitespace/badge/nightly)](https://stackage.org/nightly/package/fix-whitespace)
7+
[![Stackage LTS version](https://www.stackage.org/package/fix-whitespace/badge/lts?label=Stackage)](https://www.stackage.org/package/fix-whitespace)
8+
[![Build status](https://github.com/agda/fix-whitespace/workflows/Build%20by%20Stack/badge.svg)](https://github.com/agda/fix-whitespace/actions)
9+
10+
11+
This tool can keep your project and repository clean of trailing
12+
whitespace and missing terminal newline.
313

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

6-
The program does the following
16+
The program does the following to files specified in `FILES` or in the
17+
configuration file `fix-whitespace.yaml` under the current directory
18+
(and its subdirectories):
719

8-
* Removes trailing whitespace.
9-
* Removes trailing lines containing nothing but whitespace.
10-
* Ensures that the file ends in a newline character.
20+
* Remove trailing whitespace.
21+
* Remove trailing lines containing nothing but whitespace.
22+
* Ensure that the file ends in a newline character.
1123

12-
for files specified in `[FILES]` or
24+
Available options:
1325

14-
fix-whitespace.yaml
26+
* `-h --help`
1527

16-
under the current directory.
28+
Show this help information.
1729

18-
Background: Agda was reported to fail to compile on Windows
19-
because a file did not end with a newline character (Agda
20-
uses `-Werror`).
30+
* `-v --verbose`
2131

22-
Available options:
32+
Show files as they are being checked.
33+
34+
* `--config=CONFIG`
2335

24-
* `-h --help` Show this help information.
36+
Override the project configuration `fix-whitespace.yaml`.
2537

26-
* `-v --verbose` Show files as they are being checked.
38+
* `--check`
2739

28-
* `--config=CONFIG` Override the project configuration `fix-whitespace.yaml`.
40+
With `--check` the program does not change any files,
41+
it just checks if any files would have been changed.
42+
In this case it returns with a non-zero exit code.
2943

30-
* `--check` With `--check` the program does not change any files,
31-
it just checks if any files would have been changed.
32-
In this case it returns with a non-zero exit code.
44+
For an example configuration file see [the one of Agda](https://github.com/agda/agda/blob/f9a181685397517b5d14943ca88a1c0acacc2075/fix-whitespace.yaml).

fix-whitespace.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ tested-with: GHC == 8.0.2
2020
GHC == 8.10.4
2121
GHC == 9.0.1
2222

23+
extra-source-files:
24+
CHANGELOG.md
25+
README.md
26+
2327
source-repository head
2428
type: git
2529
location: https://github.com/agda/fix-whitespace.git

0 commit comments

Comments
 (0)