Skip to content

"Unchanged files with check annotations" flags distracting lint errors #5026

Closed
@jgravois

Description

@jgravois

Describe the bug

i'm seeing lots of distracting annotations to unchanged lines of code in recent open PRs in this project.

Screen Shot 2020-06-15 at 10 46 13 PM

As of the time of writing, it doesn't appear advanced configuration options exist which would allow you to flag only new warnings (ref: actions/toolkit#457).

I see 769 warnings when running npm run lint locally, with pros/cons to several plausible solutions.

  1. ignore the noise indefinitely (🙉)
  2. fix the existing warnings (tedious 📚)
  3. disable the pertinent rules altogether (a bit too nuclear 💣)
// .eslintrc.js
"rules": {
  "indent": "off",
  "comma-dangle": "off",
  "@typescript-eslint/indent": "off"
}

To Reproduce
This Github feature is flagged as Beta so its entirely possible that it is being deployed selectively and others aren't seeing it, but in my experience new features are usually all or nothing for an organization. 🤷

Expected behavior
Github Actions doesn't flag any stable code.

Severity
Not severe at all, just an annoyance/distraction to contributors, maintainers and voyeurs alike.

I'm happy to submit a patch myself if fixing the existing warnings is actually what y'all want to see happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions