scan: lexical style suggestions for source code
scan checks the format of your source code. It reports
(and partly repairs if given the -
option):
non-ascii characters,
tabs or carriage returns,
trailing white spaces,
backslash at line end,
unconventional comment delimiters,
too long lines,
too many consecutive blank lines,
not a single blank between tokens,
not a single final newline,
no spaces after commas,
spaces between parens and infix operators in sections,
bad layout (wrt do
or of
).
It may be useful in conjunction with
http://community.haskell.org/~ndm/hlint/
to give suggestions on how to improve your source code.
Repairing is not suited for slices (aka $(...)
) in template haskell or if
you like to align your code at =
or ->
in the middle of a line (thus
wanting multiple blanks). Furthermore layout may be destroyed by inserting
or deleting blanks, but this is an indication for improving layout anyway.
Also lines may become too long after inserting blanks.
Downloads
- scan-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5, 0.1.0.6, 0.1.0.7, 0.1.0.8, 0.1.0.9 |
---|---|
Dependencies | base (<5), parsec [details] |
License | BSD-3-Clause |
Copyright | Christian Maeder 2010 |
Author | chr.maeder@web.de |
Maintainer | chr.maeder@web.de |
Category | Development |
Home page | http://projects.haskell.org/style-scanner |
Uploaded | by ChristianMaeder at 2010-03-15T17:22:51Z |
Distributions | NixOS:0.1.0.9 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Executables | scan |
Downloads | 8473 total (3 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] All reported builds failed as of 2016-12-30 [all 7 reports] |