Comments (7)
The error message matches what your configuration does incorrectly: you validate jscpd, and not mypy.
You can either 1) enable them one by one: once a true
variable exists, it means the default enablement for all linters is false,
Or 2) disable them one by one: once a false variable exists, it means that all linters are enabled by default.
That's why you can't mix both, how would you distinguish between these two modes? By alphabetical order? By the first variable passed? How to keep the order? It doesn't make sense...
So, in your environment vars:
SUPER_LINTER_VALIDATE_PYTHON_MYPY: 'false'
SUPER_LINTER_VALIDATE_JSCPD: 'true'
Choose one of them according to the scenario you want (all except one, or none except one), and remove either
-e VALIDATE_PYTHON_MYPY=${SUPER_LINTER_VALIDATE_PYTHON_MYPY}
Or
-e VALIDATE_JSCPD=${SUPER_LINTER_VALIDATE_JSCPD}
From
script:
- docker run -e RUN_LOCAL=true
-e LINTER_RULES_PATH=${SUPER_LINTER_RULES_PATH}
-e ACTIONS_RUNNER_DEBUG=${SUPER_LINTER_ACTIONS_RUNNER_DEBUG}
-e LOG_FILE=${SUPER_LINTER_LOG_FILE}
-e USE_FIND_ALGORITHM=${SUPER_LINTER_USE_FIND_ALGORITHM}
-e VALIDATE_PYTHON_MYPY=${SUPER_LINTER_VALIDATE_PYTHON_MYPY}
-e CREATE_LOG_FILE=${SUPER_LINTER_CREATE_LOG_FILE}
-e VALIDATE_JSCPD=${SUPER_LINTER_VALIDATE_JSCPD}
-v ${CI_PROJECT_DIR}:/tmp/lint ${SUPER_LINTER_DOCKER_IMAGE}
from super-linter.
You can have multiple linters set to false.
Following your pattern (if the quoting works correctly)
SUPER_LINTER_VALIDATE_PYTHON_MYPY: 'false'
SUPER_LINTER_VALIDATE_JSCPD: 'false'
That would mean you enable everything except these two, and new linters that would be added in next (minor) releases would be enabled too.
from super-linter.
Thanks @echoix for your help here :)
from super-linter.
@echoix Thanks for the quick reaction!
I already get this it was jscpd (please reload page, I have updated an info).
But how to disable MYPY and JSCPD both?
from super-linter.
Great, thank you!
PS: Previous versions of GitLab (don't know about 16.7+) failed on parsing boolean env variables inside a yaml. So quoting was a solution.
from super-linter.
I've never really written any workflow/pipeline for GitLab yet, I just followed the contents of the config yaml.
from super-linter.
You're welcome everyone! It was an easy one here.
from super-linter.
Related Issues (20)
- GITHUB_BEFORE_SHA attempts to reference incorrect commit on merges HOT 9
- Thank you super-linter contributors (2024-07-01..2024-07-31) HOT 1
- Run Ruff as a formatter HOT 8
- v6.8.0 fails `TYPESCRIPT_STANDARD` with OOM (out of memory) HOT 6
- Prettier and standardjs are incompatible HOT 3
- Rule conflicts between prettier and standard HOT 5
- Use .prettierrc HOT 2
- v6.8.0 fails `TYPESCRIPT_STANDARD` with Parsing error HOT 2
- Cannot find rubocop-rspec_rails on v6.8.0 HOT 9
- Failed to deploy to production
- Permission denied when running the fix mode test after another test HOT 1
- FILTER_REGEX_INCLUDE not working as expected HOT 19
- Failed to deploy to production
- Support linting Go v1.23.0 modules HOT 1
- Support adding multiple custom options HOT 11
- Schema-based configuration file
- Failed to deploy to production HOT 1
- Support installing npm dependencies at run time HOT 8
- Setting VALIDATE_ALL_CODEBASE: false does not work HOT 3
- Thank you super-linter contributors (2024-08-01..2024-08-31) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super-linter.