clang-tidy: add the spec file

Tested: clang-tidy passed.

Change-Id: Ib8f86c01da61c93ecd6a149e1314bf3d3945d323
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..6153e73
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,14 @@
+Checks: '
+    -*,
+    bugprone-unchecked-optional-access,
+    modernize-use-nullptr,
+    readability-function-size,
+    readability-function-cognitive-complexity
+'
+CheckOptions:
+  - { key: readability-function-size.LineThreshold,             value: 60 }
+  - { key: readability-function-size.ParameterThreshold,        value: 6 }
+  - { key: readability-function-cognitive-complexity.Threshold, value: 25 }
+
+WarningsAsErrors: '*'
+HeaderFilterRegex: '(?!^subprojects).*'