Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the help text for the Pylint descriptor #933

Merged

Commits on Jul 20, 2023

  1. Update the help text for the Pylint descriptor

    The `msg-template` setting only works in the pylintrc configuration file
    if it is under the `[REPORTS]` section header [0]. Otherwise the setting
    gets ignored:
    ```
    $ cat ./pylintrc
    msg-template={path}:{module}:{line}: [{msg_id}({symbol}), {obj}] {msg}
    $ pylint --rcfile=./pylintrc test.py
    ************* Module pylintrc
    pylintrc:1:0: F0011: error while parsing the configuration: File contains no section headers.
    file: 'pylintrc', line: 1
    'msg-template={path}:{module}:{line}: [{msg_id}({symbol}), {obj}] {msg}\n' (config-parse-error)
    [...]
    ```
    
    Using the `--msg-template` CLI option is more convenient for the usage
    inside Jenkins pipelines.
    
    [0]: https://github.com/pylint-dev/pylint/blob/v2.17.4/examples/pylintrc#L481
    primeos-work committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    666a98a View commit details
    Browse the repository at this point in the history