Skip to content

Commit

Permalink
fixed diktat and dete
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Aug 15, 2023
1 parent a04239d commit 6e4b0e5
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions src/commonMain/kotlin/com/saveourtool/osv4k/OsvSchema.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@ typealias RawOsvSchema = OsvSchema<JsonObject, JsonObject, JsonObject, JsonObjec
* @property withdrawn
* @property aliases
* @property related
* @property cweIds
* @property cweNames
* @property timeLine
* @property summary
* @property details
* @property severity
* @property affected
* @property references
* @property credits
* @property databaseSpecific
* @property contributors
* @property confirmType
*/
@Serializable
@JsonInclude(
Expand Down Expand Up @@ -468,6 +473,12 @@ data class Affected<E, D, R_D>(
* @property ecosystem
* @property name
* @property purl
* @property language
* @property repository
* @property introducedCommits
* @property fixedCommits
* @property homePage
* @property edition
*/
@Serializable
@JsonInclude(
Expand Down Expand Up @@ -728,6 +739,8 @@ enum class RangeType {
/**
* @property type
* @property score
* @property level
* @property scoreNum
*/
@Serializable
@JsonInclude(
Expand Down Expand Up @@ -794,8 +807,12 @@ enum class SeverityType {
}

/**
*
* Human-readable level of severity calculated from score
*/
@Suppress(

Check failure

Code scanning / ktlint

[WRONG_NEWLINES] incorrect line breaking: value arguments should be placed on different lines Error

[WRONG_NEWLINES] incorrect line breaking: value arguments should be placed on different lines
"ENUM_VALUE", "EnumNaming",
"WRONG_DECLARATIONS_ORDER",
)
enum class SeverityLevel {
None,
Low,
Expand Down Expand Up @@ -979,8 +996,12 @@ data class TimeLineEntry(
)

/**
* TODO
* Type of [TimeLineEntry]
*/
@Suppress(

Check failure

Code scanning / ktlint

[WRONG_NEWLINES] incorrect line breaking: value arguments should be placed on different lines Error

[WRONG_NEWLINES] incorrect line breaking: value arguments should be placed on different lines
"ENUM_VALUE", "EnumNaming",
"WRONG_DECLARATIONS_ORDER",
)
enum class TimeLineEntryType {
introduced,
found,
Expand Down Expand Up @@ -1109,8 +1130,13 @@ data class Contributor(
/**
* the confirmation type of this vulnerability record
*/
@Suppress(

Check failure

Code scanning / ktlint

[WRONG_NEWLINES] incorrect line breaking: value arguments should be placed on different lines Error

[WRONG_NEWLINES] incorrect line breaking: value arguments should be placed on different lines
"ENUM_VALUE", "EnumNaming",
"WRONG_DECLARATIONS_ORDER",
)
enum class ConfirmType {
manual_confirmed,
algorithm_confirmed,
double_confirmed,
;
}

0 comments on commit 6e4b0e5

Please sign in to comment.