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

Factor out the reporting logics #86

Closed
Tracked by #16
tisonkun opened this issue Aug 27, 2023 · 4 comments
Closed
Tracked by #16

Factor out the reporting logics #86

tisonkun opened this issue Aug 27, 2023 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@tisonkun
Copy link
Member

Now we always print the result to the console in a fixed format.

We should build an internal report data structure and adapt it to multiple reporting format (HTML, XML, console plain text, etc.).

@tisonkun tisonkun added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 27, 2023
@tisonkun tisonkun mentioned this issue Aug 27, 2023
20 tasks
@dshunter107
Copy link

Hello.
I am interested in working on this issue; however, I am rather new to GitHub and development. I have taken several computer science classes (including data structures and algorithms), and I have built some programs in the past. I am also familiar with GitHub commits, push, and pull requests. Can you tell me more about this issue. What type of data structure would you be looking for, and where would be a good place to look in the program to start working on this issue?

@tisonkun
Copy link
Member Author

tisonkun commented Aug 27, 2023

@dshunter107 Glad to see you :D

The data structure should be relatively simple:

Filepath -> License check result (present / missing / noop / added / replaced / removed / unknown)

You can take a look at the ReportConstants class where I use a flatten and String-represent solution for now.

For the report format, you can take a look at Maven's Report Mojo designs:

For the report format this plugin may need:

@dshunter107
Copy link

@tisonkun I have an update.

I was able to figure out how to get surefire reports to work; however, I am currently getting a pretty brutal error attempting to utilize the report Mojo. I created a stackoverflow if you want to see the issue that I am having:

https://stackoverflow.com/questions/77045561/how-to-solve-maven-error-a-required-class-is-missing-org-apache-maven-reportin

I can implement Surefire reports for your project, if you would like, but I can't figure out how to utilize a Mojo to enable you to customize the report. Instead, the report would be the standard ones that surefire would print. it would be available in html, xml, and txt. It would also be able to show the outcomes of tests. Do you want me to implement the surefire reports?

@tisonkun
Copy link
Member Author

No longer relvant.

@tisonkun tisonkun closed this as not planned Won't fix, can't repro, duplicate, stale Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants