sonar-scanner cli 中的 --error 选项用什么替换?

What does replace --error option in sonar-scanner cli?

不再支持该选项,有谁知道从声纳扫描仪命令行界面在标准输出中显示错误的新方法吗?

$ sonar-scanner -e -X -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR_TOKEN
INFO: Option -e/--errors is no longer supported and will be ignored

看来不需要更换了。引用 https://jira.sonarsource.com/browse/SQSCANNER-23 :

  • the '-e' option is useless and must be removed (probably deprecated for backward compatibility)
  • exception message must always be logged
  • exception stacktrace is logged if non-MessageException or if sonar.verbose is true