| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Only for C++ and Javascript at the moment. Maybe this should be moved
to unbrace instead.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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).
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
To do this, give it files to check on the command line.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Tabs are still allowed, though.
|
| |
|
|
|
|
| |
Only tabs are allowed, and not for .txt either.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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?
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|