-
Notifications
You must be signed in to change notification settings - Fork 326
Various common utility refactorings #10181
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
base: main
Are you sure you want to change the base?
Conversation
plugins/reporters/static-html/src/main/kotlin/StaticHtmlReporter.kt
Outdated
Show resolved
Hide resolved
613844a
to
39d768c
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Pull request was converted to draft
3a16290
to
29df942
Compare
29df942
to
381047e
Compare
7834193
to
eb687ee
Compare
Make it `private` now as well and strip docs for this simple function. Signed-off-by: Sebastian Schuberth <[email protected]>
Signed-off-by: Sebastian Schuberth <[email protected]>
Signed-off-by: Sebastian Schuberth <[email protected]>
Testing with `lowercase()` and `uppercase()` is enough. Signed-off-by: Sebastian Schuberth <[email protected]>
Signed-off-by: Sebastian Schuberth <[email protected]>
Create various smaller files with more dedicated names for a better overview. Apply some trivial alignments as part of that, like renaming of variables or generalizing `Collection` to `Iterable`. Signed-off-by: Sebastian Schuberth <[email protected]>
This allows for slightly more convenient use. Signed-off-by: Sebastian Schuberth <[email protected]>
A `realFile` already is absolute. Signed-off-by: Sebastian Schuberth <[email protected]>
eb687ee
to
639b8c5
Compare
Signed-off-by: Sebastian Schuberth <[email protected]>
This makes `common-utils` Jackson-free, which is a step towards being able to make it a multi-platform project. Signed-off-by: Sebastian Schuberth <[email protected]>
639b8c5
to
5fac8d9
Compare
I had to drop the
commit, because actually |
@@ -746,7 +746,8 @@ private fun joinNonBlank(vararg strings: String, separator: String = " - ") = | |||
strings.filter { it.isNotBlank() }.joinToString(separator) | |||
|
|||
private fun IssueTable.title(): String = | |||
"${type.name.titlecase()} Issue Summary ($errorCount errors, $warningCount warnings, $hintCount hints to resolve)" | |||
type.name.lowercase().uppercaseFirstChar() + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, the ORT workbench is using the removed function in several places.
* License-Filename: LICENSE | ||
*/ | ||
|
||
package org.ossreviewtoolkit.utils.common |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not keep these in a Utils.kt
? We use that name in several modules.
Please have a look at the individual commit messages for the details.