ASSERT-KTH / ASSERT-KTH/depclean

[FEATURE] Support runtime view technologies

Open
#382 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Java
Stars
363
Forks
37
Avg merge
5h 3m
Merged PRs (30d)
57

Description

The analyzer appears to falsely list a number of dependencies as Unused, such as JSP, JSTL and Thymeleaf. This is presumably because they are not used during compile of java assets. (note that javax/jakarta JSP is defined as 'runtime' but JSTL and Thymeleaf have to be scope=compile)

There are plugins, such as the io.leonard.maven.plugins jspc maven plugin, which can e used to compile JSP's during local build and thus making them available for analysis. It would be a big benefit if depclean could invoke those plugins to compile those jsp and html files (Thymeleaf) so they can be analyzed and thus reduce the number of false positives flagged as unused.

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by tracing how depclean analyzes compiled Java assets and Maven dependency scopes, then study how the io.leonard.maven.plugins jspc Maven plugin could expose JSP and view files to that analysis. Done means JSP, JSTL, and Thymeleaf dependencies used by runtime views are no longer falsely reported as unused.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, java
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.