Skip to content
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

Maintenance status #49

Open
raiju opened this issue Aug 7, 2018 · 3 comments
Open

Maintenance status #49

raiju opened this issue Aug 7, 2018 · 3 comments

Comments

@raiju
Copy link

raiju commented Aug 7, 2018

I've been working on a larger PR to improve the S/N ratio a bit to make it practical to use. The two main changes are:

  • Track whether field access/method calls are to static fields/methods
  • The reachability graph only goes through methods that were actually called (as opposed to adding the full class if one method was called)

Additionally I implemented a gradle-plugin to make it more useful for my projects.

I've tested this both with local tests & on a real project with satisfactory results. Before I go on and start cleaning up the PR (mainly will need to do some research into Maven; usually use Gradle myself), is there still interest to review/maintain this plugin here? If yes, does Spotify have a public-facing style-guide I can adhere to for this PR?

@spkrka
Copy link
Member

spkrka commented Aug 7, 2018

That sounds great! We have not spent much time on this recently, but we still use it sometimes, and we'll happily review/merge PRs. As for style-guide, we're mostly using the https://google.github.io/styleguide/javaguide.html (with minor tweaks) so that should be good enough.

(If the PR is reasonably formatted and useful I'd rather merge it and fix up the style myself if necessary rather than miss out on it completely)

I have also had plans on improving the reachability analysis, but found it tricky when there could be reflection involved, and callbacks into your code from third party code.

@raiju
Copy link
Author

raiju commented Aug 7, 2018

Sweet, posted the PR. It's a bit of a monster (left out the gradle piece for now), but hope it's useful enough to make it useful to merge. That said, the PR makes no attempt at tackling the reflection problem 😉

@alecl
Copy link

alecl commented Oct 27, 2020

@raiju would you consider releasing your fork with gradle support? I'd be interested in checking it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants