Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions src/builders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,15 @@ export class BomBuilder {
} else {
bom.serialNumber = Utils.BomUtility.randomSerialNumber()
bom.metadata.timestamp = new Date()
bom.metadata.properties.add(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be an unintended change.
Please revert

new Models.Property(
PropertyNames.BomReproducible,
PropertyValueBool.False
)
)
}
// endregion metadata

// endregion metadata
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be an unintended change.
Please revert

// region components
if (this.flattenComponents) {
for (const c of allComponents.values()) {
Expand Down Expand Up @@ -479,11 +485,14 @@ export class BomBuilder {
})
}

if (isExcluded) {
component.scope = Enums.ComponentScope.Excluded
} else if (isOptional) {
component.scope = Enums.ComponentScope.Optional
}
if (isExcluded) {
component.scope = Enums.ComponentScope.Excluded
} else if (isOptional) {
component.scope = Enums.ComponentScope.Optional
} else if (data.dev === true || data.devOptional === true) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets have a const for the term data.dev === true || data.devOptional === true - list like isOptional.
Could you add this const and use it where possible?

component.scope = Enums.ComponentScope.Excluded
}


// region properties
if (data.dev === true || data.devOptional === true) {
Expand Down