Skip to content

[Feature Request] Custom linting rules #1495

Closed

Description

@jchauncey

I think it could be incredibly useful to have the ability create custom linting rules. This would allow a team/orginization to enforce certain styles or even fields on charts they create. For instance I could see a team wanting certain annotations set of each chart that maybe supply a version string or build tag etc... Maybe they want to make sure a certain environment variable is always set?

I'm not even sure where to begin on how you might implement this, however, I really like how foodcritic did it - https://github.com/customink-webops/foodcritic-rules/blob/master/rules.rb

I think teams would define their own global lint rules but I also speculate that you might want per repo lint rules also.

Thoughts?

Activity

  1. added this to the milestone on Nov 2, 2016
  2. technosophos commented on Dec 19, 2016

    @technosophos
    Member

    I wonder if this is a possible stretch-case for the current plugin system

  3. added
    help wanted
    on Feb 15, 2017
  4. technosophos commented on Feb 15, 2017

    @technosophos
    Member

    This needs a proposal, if anyone wants to write one. The idea would be to make it possible to flag a plugin as containing a linting rule.

  5. thomastaylor312 commented on Mar 24, 2017

    @thomastaylor312
    Contributor

    Marking this as keep open in case someone wants to write a proposal. This issue should be closed if a proposal is created.

  6. kyleschlosser commented on Jul 17, 2017

    @kyleschlosser

    I opened #2694 as a proposal for this issue. Per the comments above, this issue can close.

  7. thomastaylor312 commented on Aug 12, 2017

    @thomastaylor312
    Contributor

    Closing this in favor of #2694.

  8. added a commit that references this issue on Nov 17, 2023
    ab9fb2c
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

    featurehelp wantedkeep open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions