summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/checkwhite
Commit message (Collapse)AuthorAgeFilesLines
* Enable strict mode in checkwhite.Neil Moore2014-05-121-1/+2
|
* Fix "if(" and friends in checkwhite.Neil Moore2014-05-121-0/+2
| | | | | Only for C++ and Javascript at the moment. Maybe this should be moved to unbrace instead.
* Improvements to checkwhite and unbrace.Neil Moore2014-03-301-4/+13
| | | | | | | | | | Give both programs a -n option to do a dry run (that is, check for problems without correcting them). Exit with a nonzero status if the dry run detected problems, to make it easier to use these in scripts. However, in order to avoid breaking existing scripts, we do not give an exit status if things *were* changed. Also allow unbrace to take a list of files like checkwhite can.
* Ignore javascript contribs in checkwhite.Neil Moore2014-01-201-0/+1
| | | | | Though we would save one byte off the ba-linkify.min.js (removing two spaces from the header comment and adding a newline at the end).
* Don't complain in checkwhite about empty files.Neil Moore2013-06-181-1/+1
| | | | | In particular, webserver/templates/footer.html is empty. There isn't a newline, but that's okay because there aren't any lines at all.
* Update checkwhite and pre-commit for incoming MSVC project filesPete Hurst2013-05-241-1/+1
|
* Prevent checkwhite / pre-commit complaining about new MSVC formatsPete Hurst2013-05-191-1/+1
|
* Let checkwhite eradicate BOMs it finds.Adam Borowski2013-01-181-1/+4
|
* Whitespace and indentation fixes.Adam Borowski2012-10-241-1/+1
|
* Remove zero-width spaces from French descriptions.Adam Borowski2012-09-201-0/+3
| | | | | | | | Some editor must have added them, and they can cause problems in tiles (no combining/zero-width character support yet). Plus, they're utterly pointless after a real space. As they're whitespace, I added them to checkwhite.
* Allow running checkwhite on files not yet added to git.Adam Borowski2012-06-191-8/+11
| | | | To do this, give it files to check on the command line.
* Add an option to checkwhite to change the tab size.Raphael Langella2012-06-061-0/+7
| | | | | | Since crawl coding convention use 4 spaces indentation, people using tabs usually set them to 4 spaces. In my experience reviewing and pushing patches, I've actually never seen any patch with tabs of 8 spaces size.
* Let checkwhite properly convert tabs after non-spaces.Adam Borowski2011-12-061-5/+6
|
* Whitespace fixes.Adam Borowski2011-10-261-1/+1
|
* Add *.gif to checkwhite's and git hooks ignore list.Adam Borowski2011-09-071-1/+1
| | | | | | Note: to update, you need to manually say: cp -p ../git-hooks/pre-commit ../../.git/hooks/ since git doesn't allow updating this automatically for security reasons.
* Don't exempt Perl scripts from checkwhite.Adam Borowski2011-03-021-1/+0
| | | | Tabs are still allowed, though.
* Adjust the list of file types exempted by checkwhite.Adam Borowski2010-12-221-2/+3
|
* Don't exempt *.txt, *.rb, *.pl and the makefile from whitespace checks.Adam Borowski2010-12-141-2/+3
| | | | Only tabs are allowed, and not for .txt either.
* Disallow encodings other than UTF-8 in the source.Adam Borowski2010-12-131-0/+9
|
* Don't allow any CRs inside text files in the source.Adam Borowski2010-12-131-0/+1
|
* Make tab expansion a bit smarter.Adam Borowski2010-10-071-1/+1
| | | | | | | | | | | It will now properly handle tabs after spaces -- but not tabs after other characters yet. Also restore the width to standard 8 -- Galehar, it was accidentally changed while you changed the newlines away from \r\n, right? All terminals, git and most editors default to 8, and in many cases you can't even change that, tabs that are not 8 by default happen only in some Windows editor. Or is there some need for a debate?
* remove the windows stuff from checkwiteRaphael Langella2010-10-061-7/+4
| | | | | | | | It's not needed if you follow instructions in config.txt and set git config core.autocrlf false and it works better. Also fixed the tab replacement.
* Make the checkwhite script fix whatever it finds.Adam Borowski2010-09-301-4/+14
|
* Make checkwhite script windows compatible.Raphael Langella2010-09-301-2/+4
|
* Add my script for checking whitespace violations.Adam Borowski2010-09-241-0/+25