[英]Fortify includes generated-sources in analysis
有沒有辦法將生成的源排除在Fortify掃描之外? 我嘗試了指南中提到的sourcepath選項,但它似乎對我不起作用。
-Dfortify.sca.sourcepath="**/target/generated-sources/**/*.java" or
-Dfortify.sca.sourcepath="**/target/generated-sources/**"
以上兩種選擇均以以下警告告終
[WARNING] Bad value provided for option -sourcepath.
不要在源路徑中添加**,而是指定目錄:
-Dfortify.sca.sourcepath="module1/target/generated-sources" -Dfortify.sca.sourcepath="module2/target/generated-sources"
如果您正在使用sourceanalyzer,則可以添加-exclude參數,並可以使用通配符,例如
-exclude module1/target/generated-sources/**/*.java
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.