Skip to content

Shellcheck useless-suppression à la pylint #3407

@LLyaudet

Description

@LLyaudet

For new checks and feature suggestions

Here's a snippet or screenshot that shows a potential problem:

#!/bin/bash

# shellcheck disable=SC1000
a="WAT"

echo "${a}"

Here's what shellcheck currently says:

No warning at all.

Here's what I wanted to see:

A warning for SC9999, useless-suppression like in pylint:

Warning SC9999:  useless-suppression
The suppression for SC1000 at line 3 is useless:
# shellcheck disable=SC1000
No violation of SC1000 is reported if you remove it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions