jqassistant-archive / jqa-java-plugin

Java Plugin of jQAssistant. It enables jQAssistant to scan and to analyze Java related artifacts.
https://www.jqassistant.org
GNU General Public License v3.0
13 stars 3 forks source link

DEPENDS_ON should contains information #7

Closed opensource21 closed 1 year ago

opensource21 commented 7 years ago

It would be great if jqa-java-plugin/src/main/resources/META-INF/jqassistant-rules/dependency.xml contains information about the weight and the dependencies as a list. With this information a check of package cycles could be more precise. See a similar example in ascii-doc

jdufner commented 5 years ago

Please explain how the weight of DEPENDS_ON is calculated.

DirkMahler commented 5 years ago

The value of weight is the counts of all usages to the type referenced by DEPENDS_ON, e.g. field, parameter or variable declarations of that type, occurences as annotations or annotation parameters, usage in inheritance, etc.

In other words: You can treat it as the number of code occurrences to replace if you want to remove the dependency between the two types.

DirkMahler commented 4 years ago

@opensource21 Is this still relevant: if yes it would be good if you could provide a concrete example.

opensource21 commented 4 years ago

I can't use jqassistant at the moment, so feel free to close it.