CommandSecurityAnalysis constructor

const CommandSecurityAnalysis({
  1. bool hasCommandSubstitution = false,
  2. bool hasVariableExpansion = false,
  3. bool hasGlobbing = false,
  4. bool hasRedirection = false,
  5. bool hasPiping = false,
  6. bool hasBackgroundExec = false,
  7. bool hasSubshell = false,
  8. bool hasEval = false,
  9. bool hasExec = false,
  10. bool hasSudo = false,
  11. bool hasChown = false,
  12. bool hasRemove = false,
  13. bool hasNetworkAccess = false,
  14. bool hasDiskWrite = false,
  15. List<String> writtenPaths = const [],
  16. List<String> readPaths = const [],
  17. List<String> executables = const [],
})

Implementation

const CommandSecurityAnalysis({
  this.hasCommandSubstitution = false,
  this.hasVariableExpansion = false,
  this.hasGlobbing = false,
  this.hasRedirection = false,
  this.hasPiping = false,
  this.hasBackgroundExec = false,
  this.hasSubshell = false,
  this.hasEval = false,
  this.hasExec = false,
  this.hasSudo = false,
  this.hasChown = false,
  this.hasRemove = false,
  this.hasNetworkAccess = false,
  this.hasDiskWrite = false,
  this.writtenPaths = const [],
  this.readPaths = const [],
  this.executables = const [],
});