aboutsummaryrefslogtreecommitdiffstats
path: root/yamllintrc
diff options
context:
space:
mode:
authorMartin Klozik <martin.klozik@tieto.com>2018-06-27 11:23:48 +0200
committerGerard Damm <gerard.damm@wipro.com>2018-06-28 20:52:20 +0000
commit389ec03b1e691911d0b58a186dc19f4bc18626a7 (patch)
tree7feb980cdffcfb5d06662d5e12a54f4899c2c5f6 /yamllintrc
parent626c007f5e1efab3e4a13b2ac0d292d7f9ca3231 (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> (cherry picked from commit 6c1bcb7f02e4159bef21154341a9268f38bce438)
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