Skip to content

Commit 8a84185

Browse files
committed
docs(plugins): Trivially improve the plugin docs
Apply some trivial improvements to ensure that the plugins docs are rendered nicely on the website. This mainly consists of fixing links. Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@doubleopen.io>
1 parent e3dbe5e commit 8a84185

15 files changed

Lines changed: 35 additions & 44 deletions

File tree

plugins/advisors/black-duck/src/main/kotlin/BlackDuck.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ import org.ossreviewtoolkit.utils.common.collectMessages
5252

5353
/**
5454
* This advice provider by default retrieves vulnerabilities by the purl corresponding to the package. If a package has
55-
* the label [BlackDuck.PACKAGE_LABEL_BLACK_DUCK_ORIGIN_ID] set, then the vulnerabilities are retrieved by that
56-
* origin-id instead of by the purl.
55+
* the label ["black-duck:origin-id"][BlackDuck.PACKAGE_LABEL_BLACK_DUCK_ORIGIN_ID] set, then the vulnerabilities are
56+
* retrieved by that origin-id instead of by the purl.
5757
*/
5858
@OrtPlugin(
5959
displayName = "Black Duck",

plugins/advisors/osv/src/main/kotlin/Osv.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import org.ossreviewtoolkit.utils.common.toUri
4444
import org.ossreviewtoolkit.utils.ort.OkHttpClientHelper
4545

4646
/**
47-
* An advice provider that obtains vulnerability information from Open Source Vulnerabilities (https://osv.dev/).
47+
* An advice provider that obtains vulnerability information from [Open Source Vulnerabilities](https://osv.dev/).
4848
*/
4949
@OrtPlugin(
5050
id = "OSV",

plugins/advisors/scanoss/src/main/kotlin/ScanOss.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import org.ossreviewtoolkit.utils.ort.okHttpClient
5353

5454
/**
5555
* An [AdviceProvider] implementation that obtains security vulnerability information from a
56-
* [SCANOSS][https://github.com/aboutcode-org/vulnerablecode] instance.
56+
* [SCANOSS](https://github.com/aboutcode-org/vulnerablecode) instance.
5757
*/
5858
@OrtPlugin(
5959
displayName = "SCANOSS",

plugins/advisors/vulnerable-code/src/main/kotlin/VulnerableCode.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private const val MAX_SUMMARY_LENGTH = 64
6262

6363
/**
6464
* An [AdviceProvider] implementation that obtains security vulnerability information from a
65-
* [VulnerableCode][https://github.com/aboutcode-org/vulnerablecode] instance.
65+
* [VulnerableCode](https://github.com/aboutcode-org/vulnerablecode) instance.
6666
*/
6767
@OrtPlugin(
6868
displayName = "VulnerableCode",

plugins/license-fact-providers/dir/src/main/kotlin/DirLicenseFactProvider.kt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ data class DirLicenseFactProviderConfig(
3737
val licenseTextDir: String
3838
)
3939

40+
/**
41+
* A license fact provider that reads license information from the default directory. The files must be named after the
42+
* SPDX-conform license IDs, e.g., 'Apache-2.0' or 'LicenseRef-custom-license'.
43+
*/
4044
@OrtPlugin(
4145
displayName = "Default Directory License Fact Provider",
4246
summary = "A license fact provider that reads license information from the default directory.",
@@ -50,11 +54,14 @@ class DefaultDirLicenseFactProvider(descriptor: PluginDescriptor = DefaultDirLic
5054
)
5155
)
5256

57+
/**
58+
* A license fact provider that reads license information from a local directory. The files must be named after the
59+
* SPDX-conform license IDs, e.g., 'Apache-2.0' or 'LicenseRef-custom-license'.
60+
*/
5361
@OrtPlugin(
5462
id = "Dir",
5563
displayName = "Directory License Fact Provider",
56-
summary = "A license fact provider that reads license information from a local directory. The files must be " +
57-
"named after the SPDX-conform license IDs, e.g., 'Apache-2.0' or 'LicenseRef-custom-license'.",
64+
summary = "A license fact provider that reads license information from a local directory.",
5865
factory = LicenseFactProviderFactory::class
5966
)
6067
open class DirLicenseFactProvider(

plugins/package-curation-providers/spring/src/main/kotlin/SpringPackageCurationProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import org.ossreviewtoolkit.plugins.packagecurationproviders.api.PackageCuration
2929
import org.ossreviewtoolkit.plugins.packagecurationproviders.api.PackageCurationProviderFactory
3030

3131
/**
32-
* A [PackageCurationProvider] that provides [PackageCuration]s for Spring (https://spring.io/) packages.
32+
* A [PackageCurationProvider] that provides [PackageCuration]s for [Spring](https://spring.io/) packages.
3333
*/
3434
@OrtPlugin(
3535
displayName = "Spring",

plugins/package-managers/bundler/src/main/kotlin/Bundler.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,8 @@ data class BundlerConfig(
109109
)
110110

111111
/**
112-
* The [Bundler][1] package manager for Ruby. Also see [Clarifying the Roles of the .gemspec and Gemfile][2].
113-
*
114-
* [1]: https://bundler.io/
115-
* [2]: http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
112+
* The [Bundler](https://bundler.io/) package manager for Ruby. Also see [Clarifying the Roles of the .gemspec and
113+
* Gemfile](http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/).
116114
*/
117115
@OrtPlugin(
118116
displayName = "Bundler",

plugins/package-managers/go/src/main/kotlin/GoMod.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ data class GoModConfig(
8686
)
8787

8888
/**
89-
* The [Go Modules](https://go.dev/ref/mod) package manager for Go. Also see the [usage and troubleshooting guide]
90-
* (https://github.com/golang/go/wiki/Modules).
89+
* The [Go Modules](https://go.dev/ref/mod) package manager for Go. Also see the
90+
* [usage and troubleshooting guide](https://github.com/golang/go/wiki/Modules).
9191
*
9292
* Note: The file `go.sum` is not a lockfile as Go modules already allows for reproducible builds without that file.
9393
* Thus, no logic for handling the [AnalyzerConfiguration.allowDynamicVersions] is needed.

plugins/package-managers/python/src/main/kotlin/Poetry.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal object PoetryCommand : CommandLineTool {
6262
}
6363

6464
/**
65-
* [Poetry](https://python-poetry.org/) package manager for Python.
65+
* The [Poetry](https://python-poetry.org/) package manager for Python.
6666
*/
6767
@OrtPlugin(
6868
displayName = "Poetry",

plugins/reporters/asciidoc/src/main/kotlin/DocBookTemplateReporter.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ import org.ossreviewtoolkit.reporter.Reporter
2525
import org.ossreviewtoolkit.reporter.ReporterFactory
2626

2727
/**
28-
* A [Reporter] that creates [DocBook][1] files from [Apache Freemarker][2] templates.
29-
*
30-
* [1]: https://docbook.org
31-
* [2]: https://freemarker.apache.org
28+
* A [Reporter] that creates [DocBook](https://docbook.org) files from
29+
* [Apache Freemarker](https://freemarker.apache.org) templates.
3230
*/
3331
@OrtPlugin(
3432
displayName = "DocBook Template",

0 commit comments

Comments
 (0)