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

Analyze logical coupling through git #79

Open
sirolf2009 opened this issue Oct 11, 2018 · 2 comments
Open

Analyze logical coupling through git #79

sirolf2009 opened this issue Oct 11, 2018 · 2 comments

Comments

@sirolf2009
Copy link

How about a code mining feature that tracks which files you probably want to look at when editing a file, analyzed through the git history?
There's quite a few resources on this available on the internet:

I also found an implementation of this: https://github.com/adamtornhill/code-maat

@angelozerr
Copy link
Owner

I'm sorry I have not understood your idea. Could you attach a draw with your idea?

@sirolf2009
Copy link
Author

I was thinking of something like

public class SomeClass {
	
	SomeOtherClass:SomeOtherMethod (80%)
	public void someMethod() {
	}
	
}

In this case, the plugin has detected that whenever someMethod changes in a commit, 80% of the time someOtherMethod will also change in that commit. So you know that these methods are important to each other and if you want to change someMethod, you should probably also look at someOtherMethod to ensure stability. You could also click the code mining to jump to the someOtherMethod and I guess have a settings page with how many methods you'd like to see and the threshold for how coupled they must be before they appear

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

2 participants