Aller au contenu

Description

Template pour utiliser MegaLinter afin de valider du code.

Utilisation

.gitlab-ci.yml
---
stages:
  - tests

include:
  - remote: 'https://gitlab-templates.galilee.fr/mega_linter/3.1.1.yml'

Variables accessibles

Name Description Default
DEFAULT_WORKSPACE Directory where the linter will work ${CI_PROJECT_DIR}
DEFAULT_BRANCH Default branch of your project ${CI_DEFAULT_BRANCH}
FILTER_REGEX_EXCLUDE Regex in order to exclude specific files
LINTER_RULES_PATH Directory where are stored linters configuration .linters
MEGALINTER_CONFIG MegaLinter configuration file location .mega-linter.yml
VALIDATE_ALL_CODEBASE Whether linters should only go through edited or new files true
REPORT_OUTPUT_FOLDER Folder where are stored all the reports megalinter-reports
CONVERTED_OUTPUT_FOLDER Folder where are stored CodeClimate reports converted.report
GITLAB_COMMENT_REPORTER Posts Mega-Linter results summary in the comments of the related merge request (⚠️ GitLab API access require{:target="_blank"}) true
DISABLE_LINTERS Comma separated list of linters to be disabled
IMAGE_TAG The default tag for the docker image v8.1.0
SARIF_CODECLIMATE_VERSION Version tag of the sarif-codeclimate package to convert sarif reports 2.1.1

Historique

v3.1.1

Utilisation de la version 8.4.2 de MegaLinter.

v3.1.0

Import dernière version du template R2Devops.

v2.0.0

Import du template R2Devops.