easy-yapi icon indicating copy to clipboard operation
easy-yapi copied to clipboard

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

Open CloudSen opened this issue 1 year ago • 1 comments
trafficstars

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

例如// NOSONAR image

生成YAPI时,会显示NOSONAR image

Describe the solution you'd like

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

CloudSen avatar Mar 13 '24 09:03 CloudSen

目前还没有这样的规则,但可以尝试直接修改提交到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-----")
```

tangcent avatar Mar 17 '24 23:03 tangcent