summaryrefslogtreecommitdiff
path: root/.arc-linters
Commit message (Collapse)AuthorAgeFilesLines
* Bump arcanist-external-json-linter submoduleBen Gamari2017-10-191-0/+0
|
* Bump base to 4.11.0.0Ben Gamari2017-09-211-0/+0
| | | | | | | | | | Bumps numerous submodules. Reviewers: austin, hvr Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3974
* linters/check-cpp: Demote #if lints to warningsBen Gamari2017-04-211-3/+6
| | | | Errors trigger even for lines which the author didn't touch, which is undesired.
* linters/cpp: Catch #ifndefBen Gamari2017-04-131-0/+2
|
* arc-linters: Add linting of #ifdef x and #if defined xBen Gamari2017-04-121-16/+61
| | | | | | | | | | Reviewers: austin, erikd Reviewed By: erikd Subscribers: rwbarton, thomie, erikd Differential Revision: https://phabricator.haskell.org/D3423
* check-cpp.py: change rb'foo' to br'foo' for Python 3.2 compatibilityReid Barton2017-01-201-1/+1
|
* Use python3 for lintersMatthew Pickering2016-12-233-3/+3
| | | | | | | | | | | | | | We now require python3 for the testsuite so rather than require two versions of python it makes sense to use python3 for the linters as well. Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2888
* Add caret diagnosticsPhil Ruffwind2016-12-232-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This is controlled by -f[no-]diagnostics-show-caret. Example of what it looks like: ``` | 42 | x = 1 + () | ^^^^^^ ``` This is appended to each diagnostic message. Test Plan: testsuite/tests/warnings/should_fail/CaretDiagnostics1 testsuite/tests/warnings/should_fail/CaretDiagnostics2 Reviewers: simonpj, austin, bgamari Reviewed By: simonpj, bgamari Subscribers: joehillen, mpickering, Phyx, simonpj, alanz, thomie Differential Revision: https://phabricator.haskell.org/D2718 GHC Trac Issues: #8809
* check-cpp: Make it more robustBen Gamari2016-10-201-1/+3
| | | | Catch more than one space
* Testsuite: don't use --interactive in MakefilesThomas Miedema2016-05-272-2/+28
| | | | | | | | | | | | | | Add a linter to encourage the use of `$(TEST_HC_OPTS_INTERACTIVE)` instead of `$(TEST_HC_OPTS) --interactive -ignore-dot-ghci -v0`. It's too easy to forget one of those flags when adding a new test. Update submodule hpc. Reviewed by: austin Differential Revision: https://phabricator.haskell.org/D2265 GHC Trac Issues: #11468
* linters/check-cpp: Don't produce debug logBen Gamari2015-12-071-5/+8
|
* Fix broken linters when using python3David Kraeutmann2015-12-052-2/+2
| | | | | | Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D1574
* lint: Add linter to catch uses of ASSERT macro that Clang dislikesBen Gamari2015-12-041-0/+37
| | | | | | In particular Clang rejects uses of CPP macros where the argument list is separated by a space from the macro name. Warn when we see ASSERT used in this way.
* Add linter to check for binaries accidentally added to repositoryBen Gamari2015-12-042-0/+20
This should catch mistakes like a703fbce20969e6f02e74fee76c0a9e22b513426. Adds an arcanist-external-json-linter submodule, which should eventually be mirrored on haskell.org resources. Test Plan: Validate Reviewers: thomie, hvr, austin Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D1515