-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make it possible to run go-consistent as a library #32
Comments
@quasilyte Do you mind if I try on this issue? It seems that some refactoring has to be done though |
@jlwt90 go ahead, it's all yours. :) |
@quasilyte I finally got some time to go into the source code 🙇 In order to let I am about to write an entry point with function Here is the example that I referred to: Sorry for the question... I am still a golang / analysis tool newbie >< |
The problem with the traditional "load the whole program" approach is... it requires a lot of memory. Some projects can eat so much that analysis can't be run on local machines anymore.
Maybe we can move all the state in a separate package, use that inside the current main and add third package that provides |
It's also stated in the project traits (readme):
|
I feel a little guilty for the time you could invest in this. The initial idea of this project was "zero-configuration". It sounds nice, but in reality, there are at least two drawbacks:
Maybe it would be better to split this into two almost independent parts. One would run a consistency check over a project using the given config that describes what should be used and what shouldn't. The second part would allow you to run analysis over the code base and generate the config that the user may edit later. With this new architecture, checking consistency does not require a full scan/indexing as we know all the right answers from the beginning. Sorry for the late response. |
Any updates on this? It would be really great if this is implemented because then we can start to integrate this awesome longer into golangci-lint |
This is handy when integrating linters into an already existing system.
The text was updated successfully, but these errors were encountered: