You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (this.impact) {
result += ` impact ${this.impact}\n`;
}
to:
if (this.impact) {
result += ` impact ${this.impact}\n`;
} else if (this.impact === 0) {
result += ` impact ${this.impact.toFixed(1)}\n`;
}
Add function to copy describe block from source to destination control
In updates.ts add this function
export function updateControlDescribeBlock(from: Control, update: Partial<Control>, logger: winston.Logger): Control {
const existingDescribeBlock = getExistingDescribeFromControl(from)
logger.debug(`Updating control ${update.id} with this describe block: ${JSON.stringify(existingDescribeBlock)}`)
const projectedControl = new Control(update)
projectedControl.describe = existingDescribeBlock
return projectedControl
}
Use Abstract Syntax Tree (AST) npm Library
Implement the updates to profiles and controls using the AST-GREP npm package
Object Types Library
SpreadsheetTypes
SpreadsheetTypes is a type alias for the possible types of spreadsheets. It is used to specify the type of spreadsheet when calling functions that require this information. Currently, the possible types are 'cis', 'disa', and 'general'.
export enum SpreadsheetTypes {
CIS = 'cis',
DISA = 'disa',
GENERAL = 'general'
}
The text was updated successfully, but these errors were encountered:
File
control.ts
toString methodchange:
to:
Add function to copy describe block from source to destination control
In
updates.ts
add this functionUse Abstract Syntax Tree (AST) npm Library
Implement the updates to profiles and controls using the AST-GREP npm package
Object Types Library
SpreadsheetTypes
SpreadsheetTypes
is a type alias for the possible types of spreadsheets. It is used to specify the type of spreadsheet when calling functions that require this information. Currently, the possible types are 'cis', 'disa', and 'general'.The text was updated successfully, but these errors were encountered: