問題: oclint: error: cannot open report output file /Users/liyaowei/Desktop/ffstpcommon_V1.6.0/SecondHand/oclint.xmlhtml
問題參考: https://segmentfault.com/q/1010000009208143 https://github.com/oclint/oclint/issues/302git
解決方案:github
使用 >> 命令 替代 -o 命令。json
oclint-json-compilation-database -e Pods -e React -- -report-type html -rc LONG_LINE=200 -rc LONG_VARIABLE_NAME=30 -disable-rule ShortVariableName -max-priority-1=100000 -max-priority-2=100000 -max-priority-3=100000 >> oclint_result.html