Add the arclint file in kwayland

Summary:
- xml linter to make sure that we don't add broken protocols
- merge-conflict so that we don't commit merge-conflict markers
- spell check for documentation
- cppcheck to check the code

Test Plan: broke some files manually, and then ran arc lint

Reviewers: #frameworks, mart

Reviewed By: mart

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D13533
This commit is contained in:
Bhushan Shah 2018-06-14 17:47:04 +05:30
parent c6a864f03e
commit 1710d3e02c

20
src/wayland/.arclint Normal file
View file

@ -0,0 +1,20 @@
{
"exclude": "(^test/)",
"linters": {
"spelling": {
"type": "spelling"
},
"merge-conflict": {
"type": "merge-conflict"
},
"xml": {
"type": "xml",
"include": "(\\.xml$)"
},
"cppcheck": {
"type": "cppcheck",
"include": "(\\.(cpp|h|cxx|hpp)$)",
"flags": ["--language=c++", "--std=c++11"]
}
}
}