From 87fde2ce6b617f679857d50a611955b0446d041c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Tue, 11 Jun 2024 18:50:03 +0200 Subject: [PATCH] Specify lint checks --- .editorconfig | 18 ++++++++++++++++++ .mega-linter.yml | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .editorconfig create mode 100644 .mega-linter.yml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..04330bb --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = tab +insert_final_newline = true +max_line_length = off +trim_trailing_whitespace = true + +[*.md] +indent_style = none + +[*.{yaml,yml}] +indent_size = 2 +indent_style = space + +[Dockerfile] +indent_style = none diff --git a/.mega-linter.yml b/.mega-linter.yml new file mode 100644 index 0000000..69fc435 --- /dev/null +++ b/.mega-linter.yml @@ -0,0 +1,20 @@ +--- +DISABLE: + - SPELL + +DISABLE_LINTERS: + # buggy (.git) + - REPOSITORY_DEVSKIM + # hard to configure + - REPOSITORY_KICS + # hard to configure + - REPOSITORY_TRIVY + +FILTER_REGEX_EXCLUDE: ^(TODO|.*\.swp)$ + +# DL3008: Pin versions in apt get install: do not want +DOCKERFILE_HADOLINT_ARGUMENTS: --ignore DL3008 + +# CKV_DOCKER_2: Ensure that HEALTHCHECK instructions have been added to container images: not a service +# CKV_DOCKER_3 Ensure that a user for the container has been created: debugging easier with root +REPOSITORY_CHECKOV_ARGUMENTS: --skip-check CKV_DOCKER_2,CKV_DOCKER_3 -- GitLab