From 1710d3e02c70ab4d0a1cac3472087e2d16e124c3 Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Thu, 14 Jun 2018 17:47:04 +0530 Subject: [PATCH] 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 --- src/wayland/.arclint | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/wayland/.arclint diff --git a/src/wayland/.arclint b/src/wayland/.arclint new file mode 100644 index 0000000000..07a575c612 --- /dev/null +++ b/src/wayland/.arclint @@ -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"] + } + } +}