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

Parse depth #766

Merged
merged 3 commits into from
Aug 6, 2020
Merged

Parse depth #766

merged 3 commits into from
Aug 6, 2020

Conversation

necryin
Copy link
Contributor

@necryin necryin commented Aug 4, 2020

add parseDepth flag for speed up generate
on my laptop right parseDepth flag give ~x3 speed up (1m -> 23sec)

@codecov
Copy link

codecov bot commented Aug 4, 2020

Codecov Report

Merging #766 into master will decrease coverage by 0.10%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #766      +/-   ##
==========================================
- Coverage   82.21%   82.10%   -0.11%     
==========================================
  Files           8        8              
  Lines        1737     1738       +1     
==========================================
- Hits         1428     1427       -1     
- Misses        192      193       +1     
- Partials      117      118       +1     
Impacted Files Coverage Δ
gen/gen.go 95.41% <100.00%> (ø)
parser.go 76.97% <100.00%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e769bbe...057056d. Read the comment docs.

parser.go Outdated Show resolved Hide resolved
sdghchj
sdghchj previously approved these changes Aug 5, 2020
Copy link
Member

@sdghchj sdghchj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@easonlin404
Copy link
Member

@sdghchj I would consider drop code coverage checks if needs so that you can merge PR.

Usage: "Generate timestamp at the top of docs.go, true by default",
},
&cli.IntFlag{
Name: parseDepthFlag,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@necryin could you help pull a new PR to update https://github.com/swaggo/swag#swag-cli as well ?

Copy link
Member

@easonlin404 easonlin404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@easonlin404 easonlin404 merged commit b712c54 into swaggo:master Aug 6, 2020
@sdghchj
Copy link
Member

sdghchj commented Aug 6, 2020

@sdghchj I would consider drop code coverage checks if needs so that you can merge PR.

That would be nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants