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: add more rules for G204 #677

Merged
merged 3 commits into from
Aug 16, 2021
Merged

Conversation

nanikjava
Copy link
Contributor

@nanikjava nanikjava commented Aug 5, 2021

Fix : #343

This PR fix is to allow exec.Command to use parameter pass as part of function.

@nanikjava
Copy link
Contributor Author

@ccojocar Still WIP but interested to know your thoughts about this fix.

@codecov-commenter
Copy link

Codecov Report

Merging #677 (ad49b4b) into master (d4dc2d2) will increase coverage by 0.15%.
The diff coverage is 85.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #677      +/-   ##
==========================================
+ Coverage   69.73%   69.89%   +0.15%     
==========================================
  Files          47       47              
  Lines        2805     2833      +28     
==========================================
+ Hits         1956     1980      +24     
- Misses        796      799       +3     
- Partials       53       54       +1     
Impacted Files Coverage Δ
rules/subproc.go 89.09% <85.00%> (-3.02%) ⬇️
analyzer.go 91.84% <0.00%> (-0.05%) ⬇️
cmd/gosec/main.go 0.00% <0.00%> (ø)

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 d4dc2d2...ad49b4b. Read the comment docs.

@nanikjava nanikjava changed the title [WIP] fix: add more rules for G204 fix: add more rules for G204 Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue: Gosec doesn't use context besides the function body
3 participants