tangcent / easy-yapi

Generate API document to yapi
https://easyyapi.com
GNU Affero General Public License v3.0
425 stars 141 forks source link

[Feature] 希望忽略sonar相关的注释信息 #1109

Open CloudSen opened 3 months ago

CloudSen commented 3 months ago

Is your feature request related to a problem? Please describe.

例如// NOSONAR

image

生成YAPI时,会显示NOSONAR

image

Describe the solution you'd like

生成文档时,希望忽略sonar相关的注释信息

tangcent commented 3 months ago

目前还没有这样的规则,但可以尝试直接修改提交到yapi的信息:

http.call.before=groovy:```
   //logger.info("[before] body:-----\n" + tool.toJson(request.body()) + "\n-----")
   request.body(tool.toJson(request.body()).replaceAll('NOSONAR', ''))
   //logger.info("[after] body:-----\n" + request.body() + "\n-----")