whiter - script to fix whitespaces errors in files
version 1.2.0
whiter [FILEs or DIRs or both]
Options: --verbose Scrip show filenames that are fixed --help Show this message --version Show version number
Script will work on text files that are specified as the parameters or are situated in the specified diretories.
Script will check if all the rules are followed. In case if something is wrong the script will fix the file.
Each line ends with "\n" (including the last line)
For new lines "\n" is used (not "\r\n")
There are no ending spaces on the lines
4 spaces are used instead of tabs
No empty lines in the end of file
There is also a script `test_whitespaces` that checks all that ruls and there is a Perl module Test::Whitespaces that can be used to test your source code.
The source code for this script is hosted on GitHub https://github.com/bessarabov/Test-Whitespaces
Ivan Bessarabov <ivan@bessarabov.ru>
This software is copyright (c) 2013 by Ivan Bessarabov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test::Whitespaces, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Whitespaces
CPAN shell
perl -MCPAN -e shell install Test::Whitespaces
For more information on module installation, please visit the detailed CPAN module installation guide.