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

fix: exclude all directory #147

Merged
merged 1 commit into from
Jun 11, 2018

Conversation

syossan27
Copy link
Contributor

Describe the PR
Fix skip all directory.

Relation issue
none

Additional context
searchDir arguments of getAllGoFileInfo Function is './' .
Skip following directory, because this code.

if f.IsDir() && len(f.Name()) > 0 && f.Name()[0] == '.' {
	return filepath.SkipDir
}

@codecov-io
Copy link

Codecov Report

Merging #147 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #147   +/-   ##
=======================================
  Coverage   88.65%   88.65%           
=======================================
  Files           5        5           
  Lines         899      899           
=======================================
  Hits          797      797           
  Misses         62       62           
  Partials       40       40
Impacted Files Coverage Δ
parser.go 85.62% <100%> (ø) ⬆️

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 1f4d7c3...5e3e58f. Read the comment docs.

@pei0804
Copy link
Member

pei0804 commented Jun 11, 2018

LGTM

@pei0804 pei0804 merged commit 1e6852b into swaggo:master Jun 11, 2018
@pei0804
Copy link
Member

pei0804 commented Jun 11, 2018

God job! thx!

@easonlin404
Copy link
Member

LGTM

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

Successfully merging this pull request may close these issues.

4 participants