Skip to content

Feature request: support Go plugins #839

Closed
@vitalyisaev2

Description

@vitalyisaev2

Hello! In our company we have some domain-specific linters and checkers and we would like to run it alongside with all the linters provided by golangci-lint during a single run, and configure them in a single .golangci.yml.

Since we can't publish code of our linters (and even if we did so, they would be pretty useless for upstream golangci-lint, there are only two ways left:

  1. Make private fork of golangci-lint and merge our linters into your code base directly. This is a bad idea for obvious reasons.
  2. Load our linters dynamically on golangci-lint startup. This is what Go plugins were designed for.

So it would be nice to have support of Go plugins here. Our linters will implement some interface and will be loaded as *.so files. What do you think about it?

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvementlinter: customAbout custom/private linters

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions