Skip to content

Please add "is default rule" info to the rule json data #28273

Description

@idanmiara

Hi,
I think it would be useful to add an default key to the json root info and/or to the status inner dict, per rule,
i.e. ruff rule YTT101 --output-format json could output something like:

  "name": "sys-version-slice3",
....
  "default": True,
  "status": {
    "Stable": {
      "since": "v0.0.113"
    },
    "default": {
      "since": "v0.16.0"
    }
  },

if a rule is ever dropped from the default list, maybe mark it accordingly, like:

  "default": False,
  "status": {
    "Stable": {
      "since": "v0.0.113"
    },
    "default": {
      "since": "v0.16.0",
      "until": "v0.30.0"
    }
  },

related to:
#27213
#28190

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to the command-line interfaceneeds-decisionAwaiting a decision from a maintainer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions