Skip to content

Commit 3990c8e

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 8f4060c commit 3990c8e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private fun createSnippetFindings(details: ScanFileDetails, localFile: String):
185185
}
186186

187187
/**
188-
* Split [lineRanges] returned by ScanOSS such as "32-105,117-199" into [TextLocation]s for the given [file].
188+
* Split [lineRanges] returned by SCANOSS such as "32-105,117-199" into [TextLocation]s for the given [file].
189189
*/
190190
private fun convertLines(file: String, lineRanges: String): List<TextLocation> =
191191
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)