Skip to content

Commit 86bae15

Browse files
committed
tests: style
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 31beb26 commit 86bae15

7 files changed

Lines changed: 34 additions & 34 deletions

tools/src/test/resources/1.7/invalid-license-missing-id-and-name-1.7.textproto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ components {
1010
version: "23"
1111
description: "testcase for issue#288"
1212
licenses {
13-
license {}
13+
license { }
1414
}
1515
}

tools/src/test/resources/1.7/valid-attestation-1.7.textproto

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ declarations: {
2121
map: [
2222
{
2323
requirement: "requirement-1"
24-
claims: [ "claim-1" ]
25-
counterClaims: [ "counterClaim-1" ]
24+
claims: ["claim-1"]
25+
counterClaims: ["counterClaim-1"]
2626
conformance: {
2727
score: 0.8,
2828
rationale: "Conformance rationale here",
29-
mitigationStrategies: [ "mitigationStrategy-1" ]
29+
mitigationStrategies: ["mitigationStrategy-1"]
3030
}
3131
confidence: {
3232
score: 1,
@@ -41,10 +41,10 @@ declarations: {
4141
bom_ref: "claim-1"
4242
target: "acme-inc"
4343
predicate: "Predicate here"
44-
mitigationStrategies: [ "mitigationStrategy-1" ]
44+
mitigationStrategies: ["mitigationStrategy-1"]
4545
reasoning: "Reasoning here"
46-
evidence: [ "evidence-1" ]
47-
counterEvidence: [ "counterEvidence-1" ]
46+
evidence: ["evidence-1"]
47+
counterEvidence: ["counterEvidence-1"]
4848
externalReferences: [
4949
{
5050
type: EXTERNAL_REFERENCE_TYPE_ISSUE_TRACKER,
@@ -68,7 +68,7 @@ declarations: {
6868
}
6969
}
7070
classification: "PII",
71-
sensitiveData: [ "Describe sensitive data here" ]
71+
sensitiveData: ["Describe sensitive data here"]
7272
}
7373
]
7474
created {
@@ -100,7 +100,7 @@ declarations: {
100100
}
101101
}
102102
classification: "Public"
103-
sensitiveData: [ "Describe sensitive data here" ]
103+
sensitiveData: ["Describe sensitive data here"]
104104
}
105105
]
106106
created {
@@ -132,7 +132,7 @@ declarations: {
132132
}
133133
}
134134
classification: "Company Confidential"
135-
sensitiveData: [ "Describe sensitive data here" ]
135+
sensitiveData: ["Describe sensitive data here"]
136136
}
137137
]
138138
created {

tools/src/test/resources/1.7/valid-component-data-1.7.textproto

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ spec_version: "1.7"
55
version: 1
66
serial_number: "urn:uuid:1b1bff0e-fdb9-4088-8b9a-1a9f2d9006da"
77
components {
8-
type: CLASSIFICATION_DATA
9-
name: "my-configs"
10-
version: "1337"
11-
data {
12-
type: COMPONENT_DATA_TYPE_CONFIGURATION
13-
name: "app.data"
14-
contents {
15-
url: "https://example.com/cfg/1337/app.ini"
16-
}
8+
type: CLASSIFICATION_DATA
9+
name: "my-configs"
10+
version: "1337"
11+
data {
12+
type: COMPONENT_DATA_TYPE_CONFIGURATION
13+
name: "app.data"
14+
contents {
15+
url: "https://example.com/cfg/1337/app.ini"
1716
}
18-
data {
19-
type: COMPONENT_DATA_TYPE_OTHER
20-
name: ".env"
21-
contents {
22-
url: "https://example.com/cfg/1337/env"
23-
}
17+
}
18+
data {
19+
type: COMPONENT_DATA_TYPE_OTHER
20+
name: ".env"
21+
contents {
22+
url: "https://example.com/cfg/1337/env"
2423
}
24+
}
2525
}

tools/src/test/resources/1.7/valid-component-ref-1.7.textproto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ components {
1111
version: "1.0.0"
1212
components {
1313
type: CLASSIFICATION_LIBRARY
14-
bom_ref: "456"
15-
name: "acme-library"
16-
version: "1.0.0"
14+
bom_ref: "456"
15+
name: "acme-library"
16+
version: "1.0.0"
1717
}
1818
}
1919
components {

tools/src/test/resources/1.7/valid-formulation-1.7.textproto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ formulation: [
108108
]
109109
}
110110
]
111-
taskTypes: [ TASK_TYPE_CLONE, TASK_TYPE_BUILD ]
111+
taskTypes: [TASK_TYPE_CLONE, TASK_TYPE_BUILD]
112112
trigger: {
113113
bom_ref: "trigger-2"
114114
uid: "trigger-uid-2"
@@ -294,7 +294,7 @@ formulation: [
294294
bom_ref: "workspace-2"
295295
uid: "workspace-1"
296296
name: "My workspace"
297-
aliases: [ "default-workspace" ]
297+
aliases: ["default-workspace"]
298298
description: "Description here"
299299
resourceReferences: [
300300
{

tools/src/test/resources/1.7/valid-tags-1.7.textproto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ components {
88
type: CLASSIFICATION_LIBRARY
99
name: "my-json-parser"
1010
version: "1.0"
11-
tags: [ "json-parser", "javascript", "node.js" ]
11+
tags: ["json-parser", "javascript", "node.js"]
1212
}
1313
services {
1414
name: "my service"
15-
endpoints: [ "https://example.com/myservice" ]
16-
tags: [ "microservice", "golang", "aws", "us-east-1" ]
15+
endpoints: ["https://example.com/myservice"]
16+
tags: ["microservice", "golang", "aws", "us-east-1"]
1717
}

tools/src/test/resources/1.7/valid-vulnerability-1.7.textproto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ vulnerabilities {
4141
cwes: 502
4242
description: "FasterXML jackson-databind before 2.7.9.3, 2.8.x before 2.8.11.1 and 2.9.x before 2.9.5 allows unauthenticated remote code execution because of an incomplete fix for the CVE-2017-7525 deserialization flaw. This is exploitable by sending maliciously crafted JSON input to the readValue method of the ObjectMapper, bypassing a blacklist that is ineffective if the c3p0 libraries are available in the classpath."
4343
detail: ""
44-
recommendation: "Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.5, 2.8.11.1, 2.9.5 or higher."
44+
recommendation: "Upgrade com.fasterxml.jackson.core:jackson-databind to version 2.6.7.5, 2.8.11.1, 2.9.5 or higher."
4545
proofOfConcept: {
4646
reproductionSteps: "Precise steps to reproduce go here"
4747
environment: "Describe the environment"

0 commit comments

Comments
 (0)