Skip to content

Improve util::reflective::pomXml - #2891

Open
sungshik wants to merge 4 commits into
mainfrom
fix/issues-2880-2881-newrascalpom
Open

sungshik wants to merge 4 commits into
mainfrom
fix/issues-2880-2881-newrascalpom

Conversation

@sungshik

Copy link
Copy Markdown
Contributor

Fixes #2880, #2881

@sonarqubecloud

Copy link
Copy Markdown

@sungshik sungshik changed the title Improve util::reflective::newRascalPom Improve util::reflective::pomXml Sep 21, 2026
@codecov

codecov Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45%. Comparing base (bdc1acc) to head (c4d2d41).

Additional details and impacted files
@@           Coverage Diff           @@
##              main   #2891   +/-   ##
=======================================
  Coverage       45%     45%           
- Complexity    6789    6792    +3     
=======================================
  Files          843     843           
  Lines        68798   68798           
  Branches     10029   10029           
=======================================
+ Hits         31348   31352    +4     
+ Misses       35064   35053   -11     
- Partials      2386    2393    +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sungshik
sungshik marked this pull request as ready for review September 21, 2026 10:58
private str getRascalMavenPluginVersion() {
try { // Best-effort attempt to get the latest version
loc l = |https://api.github.com/repos/usethesource/rascal-maven-plugin/releases/latest|;
if (/"tag_name":\s*"v<version:[0-9]+\.[0-9]+\.[0-9]+>"/ := readFile(l)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a json parser in the stdlib, can we not use that? (And just use the raw value, not mapped onto a rascal ADT)


private str getRascalMavenPluginVersion() {
try { // Best-effort attempt to get the latest version
loc l = |https://api.github.com/repos/usethesource/rascal-maven-plugin/releases/latest|;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either store this in a named global in this module, or online it?

' \</configuration\>
' \<executions\>
' \<execution\>
' \<id\><name>-compile\</id\>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs to be default-compile else it's not activated by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants