private bool ValidateOptions(RewriteOptions rewriteOptions) { bool valid = true; valid &= rewriteOptions.Validate(); valid &= DriverUtilities.ReportWhetherOutputFileCanBeCreated(rewriteOptions.OutputFilePath, rewriteOptions.Force, _fileSystem); return(valid); }
private bool ValidateOptions(RewriteOptions rewriteOptions) { if (!rewriteOptions.Validate()) { return(false); } // While this is returning true for inline cases, I think it's doing so for the wrong reasons. // TODO: validate whether "actualOutputPath" can be created. // #2270 https://github.com/microsoft/sarif-sdk/issues/2270 if (!DriverUtilities.ReportWhetherOutputFileCanBeCreated(rewriteOptions.OutputFilePath, rewriteOptions.Force, _fileSystem)) { return(false); } return(true); }