[gnome-games/wip/exalm/lint: 3/3] ci: Lint with vala-lint



commit 2a09c9aee819b8005c24a2e598873ed89b056af3
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Jan 28 20:27:18 2020 +0500

    ci: Lint with vala-lint

 .gitlab-ci.yml           |  7 +++++++
 build-aux/vala-lint.conf | 28 ++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e0ffa4aa..05e5057e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
 include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
 
 stages:
+  - lint
   - test
   - deploy
 
@@ -39,3 +40,9 @@ stop_review:
 
 nightly:
   extends: '.publish_nightly'
+
+lint:
+  image: valalang/lint:latest
+  stage: .pre
+  script:
+    - io.elementary.vala-lint -c build-aux/vala-lint.conf src plugins
diff --git a/build-aux/vala-lint.conf b/build-aux/vala-lint.conf
new file mode 100644
index 00000000..8f6a2d76
--- /dev/null
+++ b/build-aux/vala-lint.conf
@@ -0,0 +1,28 @@
+[Checks]
+block-opening-brace-space-before=error
+double-semicolon=error
+double-spaces=error
+ellipsis=error
+line-length=warn
+naming-convention=error
+no-space=error
+note=warn
+space-before-paren=error
+use-of-tabs=off
+tab=error
+trailing-newlines=error
+trailing-whitespace=error
+unnecessary-string-template=error
+
+[Disabler]
+disable-by-inline-comments=true
+
+[line-length]
+max-line-length=120
+ignore-comments=true
+
+[naming-convention]
+exceptions=UUID,
+
+[note]
+keywords=TODO,FIXME,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]