autonomousapps / autonomousapps/dependency-analysis-gradle-plugin

The reason task should list the classes which depend on a dependency

Open
#643 8 comments 1 reaction 0 assignees View on GitHub
enhancement help wanted
Dominant language
Kotlin
Stars
2.2k
Forks
158
Avg merge
16h 25m
Merged PRs (30d)
46

Description

**Is your feature request related to a problem? Please describe.**
The below is a shorted snippet of the reason task
```
gw category-a:subproject:reason --id :category-b:subproject

Source: main
------------
* Uses class com.company.my.special.class (implies implementation).
```
While knowing which class is used is a good start, knowing **where** it is used is key to verify/remove a dependency.

**Describe the solution you'd like**
Output in line with the following would be nice to have:
```
gw category-a:subproject:reason --id :category-b:subproject

Source: main
------------
* Uses class com.company.my.special.class (implies implementation), listing first X occurrences:
- FQClass1
- FQClass2
```
This information is available in the `synthetic-project.json` and other intermediates.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the reason task that produces the shown `reason` output and inspect `synthetic-project.json` and the other intermediates for the available class-usage data. Done means the dependency explanation lists the requested first X dependent classes in the demonstrated format, with appropriate coverage for the existing reason output.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.