1
0
forked from 0ad/0ad
0ad/build
wraitii c9f37fc613 Lint update: use arclint, remove JSHint, remove coala on CI.
This runs linting using the "arc lint" command of arcanist, which
notably gets run automatically as part of the arc diff workflow.

Changes:
- The major change is that arc lint reports, by default, only issues on
changed lines instead of changed files (--lintall changes that).
- JSHint is largely redundant with eslint and does not support some of
the new Javascript functionality that we are able to use in 0 A.D., such
as conditional chaining, thus it is removed (of course, users can still
run it manually).
- Eslint 7 is supported out of the box and updated to ES 2020
- cppcheck and eslint are optional - if the executable is not found
(e.g. in PATH), it will fallback to a 'dummy' PHP script that does
nothing. This has been tested on windows, mac and Debian (CI).
- The licence year linter now suggests replacement, and has been
rewritten as an arcanist linter.
- Add a JSON error linter.

The intention is to have non-intrusive external linting, and largely the
same text linting.

Coala has largely gone unmaintained in the past few years (more so than
arcanist anyways) and installing it on modern Python is convoluted.

Differential Revision: https://code.wildfiregames.com/D3639
This was SVN commit r25056.
2021-03-15 15:14:28 +00:00
..
android Actually remove trailing whitespace for non-header files as well. 2016-11-23 13:02:58 +00:00
arclint Lint update: use arclint, remove JSHint, remove coala on CI. 2021-03-15 15:14:28 +00:00
bin Cleanup of NASM. It has been unused for ages (153357f640) and we still have legacy code lines in our premake scripts. We also carry an unused binary for Windows. 2017-01-30 09:19:59 +00:00
coverage Small updates to build scripts, refs #4419. 2016-12-27 09:49:41 +00:00
dehydra Detect and fix printf signedness errors. Fixes #1086, #1087. 2012-01-01 16:43:10 +00:00
errorlist # Rewrite of the game's simulation system 2010-01-09 19:20:14 +00:00
jenkins Lint update: use arclint, remove JSHint, remove coala on CI. 2021-03-15 15:14:28 +00:00
premake Adds logs to CameraController for speed changes of camera scroll, rotate and zoom. 2021-03-12 20:57:33 +00:00
resources Fix MacOs bundle for Python3 2020-11-28 10:23:06 +00:00
svn_revision Fix lineendings. 2019-07-12 17:40:40 +00:00
workspaces Use pkgconfig to find libpng 2021-03-03 16:11:41 +00:00