tangcent / easy-yapi

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

feat(script): add support for 'mavenId()' in 'class' #1155

Closed tangcent closed 3 months ago

tangcent commented 3 months ago

implement: #1153 example:

method.doc=groovy:```
"maven:\n```xml\n"+ it.containingClass().mavenId().maven() + "\n```"
codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 92.06349% with 5 lines in your changes missing coverage. Please review.

Project coverage is 62.756%. Comparing base (5fddde4) to head (444d24b).

Files Patch % Lines
...ain/kotlin/com/itangcent/idea/utils/MavenHelper.kt 94.828% 1 Missing and 2 partials :warning:
...com/itangcent/idea/plugin/rule/ScriptRuleParser.kt 60.000% 0 Missing and 2 partials :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155/graphs/tree.svg?width=650&height=150&src=pr&token=J6RUGI54XV&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent)](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) ```diff @@ Coverage Diff @@ ## master #1155 +/- ## =============================================== + Coverage 62.625% 62.756% +0.131% - Complexity 2367 2374 +7 =============================================== Files 254 255 +1 Lines 12265 12335 +70 Branches 3016 3030 +14 =============================================== + Hits 7681 7741 +60 - Misses 3003 3009 +6 - Partials 1581 1585 +4 ``` | [Flag](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | `62.756% <92.063%> (+0.131%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | Coverage Δ | | |---|---|---| | [...com/itangcent/idea/plugin/rule/ScriptRuleParser.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fidea%2Fplugin%2Frule%2FScriptRuleParser.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vcnVsZS9TY3JpcHRSdWxlUGFyc2VyLmt0) | `52.927% <60.000%> (+0.084%)` | :arrow_up: | | [...ain/kotlin/com/itangcent/idea/utils/MavenHelper.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fidea%2Futils%2FMavenHelper.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS91dGlscy9NYXZlbkhlbHBlci5rdA==) | `94.828% <94.828%> (ø)` | | ... and [11 files with indirect coverage changes](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). Last update [5fddde4...444d24b](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1155?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent).