Closed brunomartinspro closed 2 years ago
Was only able to run this with:
.mega-linter.yml:
# Configuration file for Mega-Linter
# See all available variables at https://nvuillam.github.io/mega-linter/configuration/ and in linters documentation
APPLY_FIXES: none
DEFAULT_BRANCH: master
ENABLE: MARKDOWN
DISABLE:
- SPELL
SHOW_ELAPSED_TIME: true
FILEIO_REPORTER: false
.gitlab-ci.yml:
mega-linter:
stage: quality-gate
image: nvuillam/mega-linter-documentation:v4
script:
- python -m megalinter.run
variables:
DEFAULT_WORKSPACE: $CI_PROJECT_DIR
DEFAULT_BRANCH: master
artifacts:
when: always
paths:
- report
This is the exact part of gitlab-ci.yml that I use professionally... and it works very well ^^
check_quality:
stage: build
tags:
- ubuntu
only:
- merge_requests
- web
except:
variables:
- $SCRATCH_ORG_POOL == "true"
image: nvuillam/mega-linter-salesforce:latest
script: ["true"]
variables:
# All available variables are described in documentation
# https://nvuillam.github.io/mega-linter/configuration/
DEFAULT_WORKSPACE: $CI_PROJECT_DIR
DEFAULT_BRANCH: master
# ADD YOUR CUSTOM ENV VARIABLES HERE TO OVERRIDE VALUES OF .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY
artifacts:
when: always
paths:
- report
expire_in: 1 week
Please could you share a bigger part of your logs so we could see what happens ?
Thanks !
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
If you think this issue should stay open, please remove the O: stale 🤖
label or comment on the issue.
So i configured the project using "npx mega-linter-runner --install" for the documentation flavor - I want to lint markdown files.
.gitlab-ci.yml:
.mega-linter.yml:
However, I get the output:
@nvuillam What am I doing wrong?
Thank you