aboutsummaryrefslogtreecommitdiffstats
path: root/yamllintrc
diff options
context:
space:
mode:
authorMartin Klozik <martin.klozik@tieto.com>2018-06-27 11:23:48 +0200
committerMartin Klozik <martin.klozik@tieto.com>2018-06-28 15:06:26 +0200
commit6c1bcb7f02e4159bef21154341a9268f38bce438 (patch)
tree546cf1eec65bebf2e21b6ee6ae30ccf71b233cbd /yamllintrc
parentdffc2bee5650b10831f3792b162b6ea73a4624ae (diff)
ci: Support for pylint and yamllint
A support for pylint and yamllint checks was introduced. Checks can be executed manually by invocation of ./check script (see script usage for more details). Automatic lint checks were integrated info VERIFY and MERGE job bodies. TODO: Improve pylint ratings of python code. Some issues can be fixed in python files or by relaxing pylint settings. However dependencies on ONAP includes can't be easily fixed. Thus pylint checks should be set as non-blocking at the beginning. Change-Id: I82a6a266b8003ae5d70f4f2a88ecc96817b97ac0 Signed-off-by: Martin Klozik <martin.klozik@tieto.com>
Diffstat (limited to 'yamllintrc')
-rw-r--r--yamllintrc25
1 files changed, 25 insertions, 0 deletions
diff --git a/yamllintrc b/yamllintrc
new file mode 100644
index 0000000..a4f3d02
--- /dev/null
+++ b/yamllintrc
@@ -0,0 +1,25 @@
+# Copyright 2018 Tieto
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+extends: relaxed
+
+rules:
+ empty-lines:
+ max-start: 1
+ max-end: 1
+ colons:
+ max-spaces-after: 1
+ max-spaces-before: 1
+ line-length:
+ max: 160