spaghetti-cutter icon indicating copy to clipboard operation
spaghetti-cutter copied to clipboard

integration with golangci-lint

Open IAD opened this issue 4 years ago • 2 comments

Hi Ole, do we plan to include the tool in the https://github.com/golangci/golangci-lint ?

IAD avatar Dec 16 '20 07:12 IAD

Hi Igor, that is a great idea. I plan some documentation improvements and added functionality for generated documentation (dependency matrix) until end of January. The command line arguments and configuration will stay the same (except for added flags for generating documentation). With that addition I will move the version to 1.0.

How can I help with the integration?

Cheers, Ole

ole108 avatar Dec 16 '20 08:12 ole108

I just found on the integration page:

You need to implement a new linter using go/analysis API. We don't accept not go/analysis linters.

The spaghetti-cutter doesn't use go/analysis so far. I don't know if it would be possible to change. I will try to find out. Help for that would be appreciated. The spaghetti-cutter needs access to all packages (full names) of a project and their imports.

ole108 avatar Dec 16 '20 08:12 ole108