scan: lexical style suggestions for source code

[ bsd3, development, program ] [ Propose Tags ]

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 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.

Versions [faq],,,,,,,,,
Dependencies base (<5), parsec [details]
License BSD-3-Clause
Copyright Christian Maeder 2010
Category Development
Home page
Uploaded by ChristianMaeder at Mon Mar 15 17:22:51 UTC 2010
Distributions NixOS:
Executables scan
Downloads 4557 total (38 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-30 [all 7 reports]


Maintainer's Corner

For package maintainers and hackage trustees