Skip to content

[FEATURE] Allow ability to disable certain optimization rules #31

@duaraghav8

Description

@duaraghav8

Currently, Dockershrink enforces every optimization technique it knows. If a user wants to disable certain practices, they can't.
Especially becomes a problem when running DS in CI pipelines - they will keep failing.

eg use case - user wants to use depcheck as a separate step in their build pipeline (most likely before building the docker image). So they don't want to run it as part of image build.

Currently, they can't disable it.
But we could have a configuration file (eg- .dockershrink.yaml) where they could disable certain rules (each optimization technique has a rulename)

disable-rules:
  - use-depcheck

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions