Giter Club home page Giter Club logo

Comments (7)

echoix avatar echoix commented on September 25, 2024 1

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.

echoix avatar echoix commented on September 25, 2024 1

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.

ferrarimarco avatar ferrarimarco commented on September 25, 2024 1

Thanks @echoix for your help here :)

from super-linter.

alexanderbazhenoff avatar alexanderbazhenoff commented on September 25, 2024

@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.

alexanderbazhenoff avatar alexanderbazhenoff commented on September 25, 2024

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.

echoix avatar echoix commented on September 25, 2024

I've never really written any workflow/pipeline for GitLab yet, I just followed the contents of the config yaml.

from super-linter.

echoix avatar echoix commented on September 25, 2024

You're welcome everyone! It was an easy one here.

from super-linter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.