Skip to content

Feature Request: case insensitive match for "shellcheck disable" #3064

@wileyhy

Description

@wileyhy

For new checks and feature suggestions

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

#!/bin/bash

a=( x y z )

# ShellCheck disable=SC2068
echo ${a[@]}

# shellcheck disable=SC2068
echo ${a[@]}

Here's what shellcheck currently says:

$ shellcheck myscript
 
Line 6:
echo ${a[@]}
     ^-- SC2068 (error): Double quote array expansions to avoid re-splitting elements.

$

Here's what I wanted or expected to see:

In "shellcheck disable" statements, the string

# shellcheck disable=SC####

is recognized, but the string

# Shellcheck disable=SC####

is not. I expected ShellCheck to recognize capital letters in disable statements.

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