问题: oclint: error: cannot open report output file /Users/liyaowei/Desktop/ffstpcommon_V1.6.0/SecondHand/oclint.xml
问题参考: https://segmentfault.com/q/1010000009208143 https://github.com/oclint/oclint/issues/302
解决方案:
使用 >> 命令 替代 -o 命令。
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