* Colorize JSON errors
* Make formatter feed source filename to TextJsonIn
* Throw exception instead of dumping output to std::cerr
* Adjust math parser's caret appearance
* Set color in chkjson
* Adjust tests and formatters
* Add json error cursor check for unicode string
* Squelch global state lint for entry points
* Adjust stream offset so the buffer for utf8_width is pointing at a codepoint
* Revamp json-styling commands in Makefile
* style-json now checks all non-blacklisted files, rather than stopping
after the first failure.
* Dependencies fixed such that it doesn't compile the json_formatter
executable every time you use these targets.
* Reduce json formatted spam
Stop printing anything for files that are well-formatted. These lines
just clutter the CI output.
* Document some suggestions for git pre-commit
Show how to check json and code style in a pre-commit hook.
Right now when a json file is not linted, the program just says
'Formatted $FILENAME' and exits - this doesn't make it particularly
clear what is wrong when a file is not linted.
This aims to make it more clear for new contributors.
* Astyle tools/format/format.cpp
* Enforce astyle on more files
The tools sources were not covered by astyle checks. Make them be.
It looks like they used to be but the Makefile was not updated at some
point when the files moved. Rearrange how the Makefile works to make
similar mistakes less likely to occur in the future.
Also, use ':=' assignment in some Makefile variables for better
efficiency.