Skip to content

Make # check= directive comment less positional #6167

@ag-TJNII

Description

@ag-TJNII

Description

I'm trying to disable a build warning with a # check=skip= comment. I'm finding this comment only takes effect if it is at the very top of the file. For example, the following works:

# check=skip=FailingCheck

[commands]

However, if I add a comment explaining why I'm disabling this, it doesn't work. The following example will result in the warning still being shown during a build.

# Comment with context about why this is disabled
# check=skip=FailingCheck

[commands]

Worse, I only want to disable this for a single stage. The following also doesn't work:

# Build stage
[commands]

# Output stage
# This needs [thing that triggers FailingCheck] due to [reasons]
# check=skip=FailingCheck
[Line that triggers FailingCheck]

[core commands]

It would be nice if I could put the check skip command next to the line causing the violation, so that it is in context. At the minimum I'd like to be able to put a comment above it explaining why the check was disabled. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions