File: README.md

package info (click to toggle)
0ad 0.28.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 182,352 kB
  • sloc: cpp: 201,989; javascript: 19,730; ansic: 15,057; python: 6,597; sh: 2,046; perl: 1,232; xml: 543; java: 533; makefile: 105
file content (36 lines) | stat: -rw-r--r-- 920 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Linters

Linters for use in CI or by developers. Also providing configurations for IDEs.

## cppcheck

### suppression-list

The suppression list is ideally empty, restricting to file scope is preferred.

The format for an error suppression is one of:
[error id]:[filename]:[line]
[error id]:[filename2]
[error id]

### libraries

Adding library cfg's for other deps could improve cppchecks ability to find issues.

## copyright

A linter for checking copyright dates in file headers are up to date.

## eslint

For eslint run 'pre-commt run eslint -a'

### Installation and IDE integration

Install Node.js and then run 'npm install' in the repo root.

Now you can run eslint as 'npm run-script lint' or if you want eslint to try
fix the issues 'npm run-script lint:fix'.

After having installed eslint you might want to add an eslint extension to your
editor to get inline warnings and to allow for auto-formatting.