Skip to content

Commit 7631d6c

Browse files
committed
fix(scanoss): Standardize SCANOSS naming in comments and documentation
Change all instances of "ScanOSS" to "SCANOSS" for consistent branding. Signed-off-by: Agustin Isasmendi <[email protected]>
1 parent 7aa16de commit 7631d6c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

plugins/scanners/scanoss/src/main/kotlin/ScanOssConfig.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ import org.ossreviewtoolkit.plugins.api.OrtPluginOption
2525
import org.ossreviewtoolkit.plugins.api.Secret
2626

2727
data class ScanOssConfig(
28-
/** The URL of the ScanOSS server. */
28+
/** The URL of the SCANOSS server. */
2929
@OrtPluginOption(defaultValue = ScanApi.DEFAULT_BASE_URL)
3030
val apiUrl: String,
3131

32-
/** The API key used to authenticate with the ScanOSS server. */
32+
/** The API key used to authenticate with the SCANOSS server. */
3333
@OrtPluginOption(defaultValue = "")
3434
val apiKey: Secret,
3535

plugins/scanners/scanoss/src/main/kotlin/ScanOssResultParser.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private fun getCopyrightFindings(details: ScanFileDetails): List<CopyrightFindin
153153
}
154154

155155
/**
156-
* Get the snippet findings from the given [details]. If a snippet returned by ScanOSS contains several PURLs,
156+
* Get the snippet findings from the given [details]. If a snippet returned by SCANOSS contains several PURLs,
157157
* the function extracts the first PURL as the primary identifier while storing the remaining PURLs in additionalData
158158
* to preserve the complete information.
159159
*/
@@ -184,7 +184,7 @@ private fun getSnippets(details: ScanFileDetails): List<Snippet> {
184184
}
185185

186186
/**
187-
* Split [lineRanges] returned by ScanOSS such as "32-105,117-199" into [TextLocation]s for the given [file].
187+
* Split [lineRanges] returned by SCANOSS such as "32-105,117-199" into [TextLocation]s for the given [file].
188188
*/
189189
private fun convertLines(file: String, lineRanges: String): List<TextLocation> =
190190
lineRanges.split(',').map { lineRange ->

plugins/scanners/scanoss/src/test/kotlin/ScanOssScannerDirectoryTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class ScanOssScannerDirectoryTest : StringSpec({
158158
// [fingerprint data for the file]
159159
// --boundary--
160160

161-
// Extract included filenames using a regex pattern from the ScanOSS HTTP POST.
161+
// Extract included filenames using a regex pattern from the SCANOSS HTTP POST.
162162
// The pattern matches lines starting with "file=" followed by hash and size, then captures the filename.
163163
val filenamePattern = "file=.*?,.*?,(.+)".toRegex(RegexOption.MULTILINE)
164164
val includedFiles = requestBodies.flatMap { body ->

0 commit comments

Comments
 (0)