Skip to content

Commit c6470a1

Browse files
committed
v0.1: CHANGELOG, README, LICENSE, --help
Document new feature in `--verbose` and mention contributor.
1 parent 46be4d2 commit c6470a1

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Version history.
44

5+
# 0.1 Rainy Summer edition released 2023-08-07
6+
7+
- Flag `--verbose` now also displays locations of whitespace violations
8+
([#7](https://github.com/agda/fix-whitespace/issues/7), contributed by Artem Pelenitsyn).
9+
- Tested with GHC 8.0.2 - 9.8.1-alpha1.
10+
511
## 0.0.11 Santa Clause edition released 2022-12-06
612

713
- Delete trailing tabs even when `--tab=0`

FixWhitespace.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,15 @@ options =
6666
[ Option ['h'] ["help"]
6767
(NoArg (\opts -> opts { optHelp = True }))
6868
"Show this help information."
69-
, Option [] ["version"]
69+
, Option ['V'] ["version"]
7070
(NoArg (\opts -> opts { optVersion = True }))
7171
"Show the program's version."
7272
, Option ['v'] ["verbose"]
7373
(NoArg (\opts -> opts { optVerbose = True }))
74-
"Show files as they are being checked."
74+
(unlines
75+
[ "Show files as they are being checked."
76+
, "Display location of detected whitespace violations."
77+
])
7578
, Option ['t'] ["tab"]
7679
(ReqArg (\ts opts -> opts { optTabSize = ts }) "TABSIZE")
7780
(unlines

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Copyright (c) 2005-2021 remains with the authors.
1+
Copyright (c) 2005-2023 remains with the authors.
22

33
fix-whitespace was originally written by Nils Anders Danielsson as
44
part of Agda 2 with contributions from Ulf Norell,
55
Andrés Sicard-Ramírez, Andreas Abel, Philipp Hausmann, Jesper Cockx,
6-
Vlad Semenov, and Liang-Ting Chen.
6+
Vlad Semenov, Liang-Ting Chen, and Artem Pelenitsyn.
77

88
Permission is hereby granted, free of charge, to any person obtaining
99
a copy of this software and associated documentation files (the

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fix-whitespace: Fixes whitespace issues
1010
This tool can keep your project and repository clean of trailing
1111
whitespace and missing terminal newline.
1212

13-
Usage: `fix-whitespace [-h|--help] [-v|--verbose] [--version] [--check] [--config CONFIG] [FILES]`
13+
Usage: `fix-whitespace [-h|--help] [-v|--verbose] [-V|--version] [--check] [--config CONFIG] [FILES]`
1414

1515
The program does the following to files specified in `FILES` or in the
1616
configuration file `fix-whitespace.yaml` under the current directory
@@ -30,8 +30,9 @@ Available options:
3030
* `-v --verbose`
3131

3232
Show files as they are being checked.
33+
_Since 0.1:_ Display location of detected whitespace violations.
3334

34-
* `--version`
35+
* `-V --version`
3536

3637
Show program's version.
3738

fix-whitespace.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
cabal-version: 2.2
22
name: fix-whitespace
3-
version: 0.1.0
3+
version: 0.1
44
build-type: Simple
55

66
category: Text
77
synopsis: Fixes whitespace issues.
88
description: Removes trailing whitespace, lines containing only whitespace, expands tabs,
99
and ensures that every file ends in a newline character.
10-
license: LicenseRef-OtherLicense
10+
license: MIT
1111
license-file: LICENSE
12-
author: 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.
12+
author: 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, Liang-Ting Chen, and Artem Pelenitsyn.
1313
maintainer: Andreas Abel, Liang-Ting Chen <liang.ting.chen.tw@gmail.com>
1414
homepage: https://github.com/agda/fix-whitespace
1515
bug-reports: https://github.com/agda/fix-whitespace/issues

0 commit comments

Comments
 (0)