Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CloudSen opened this issue Mar 13, 2024 · 1 comment
Open

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

CloudSen opened this issue Mar 13, 2024 · 1 comment
Labels
type: feature request Feature Enhancement Request

Comments

@CloudSen
Copy link

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

例如// NOSONAR
image

生成YAPI时,会显示NOSONAR
image

Describe the solution you'd like

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

@CloudSen CloudSen added the type: feature request Feature Enhancement Request label Mar 13, 2024
@tangcent
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request Feature Enhancement Request
Projects
None yet
Development

No branches or pull requests

2 participants