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

Add static analysis to find bugs earlier #1709

Closed
mbrukman opened this issue Nov 26, 2017 · 2 comments
Closed

Add static analysis to find bugs earlier #1709

mbrukman opened this issue Nov 26, 2017 · 2 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. status: investigating The issue is under investigation, which is determined to be non-trivial. type: process A process-related concern. May include testing, release, or the like.

Comments

@mbrukman
Copy link

I believe static analysis is a great complement to testing as it finds a different set of issues, faster, and often times, issues not found via unit or system testing because the issues are entirely different, e.g., security issues, or misuse of standard APIs, etc.

There are a number of options, whether open-source, commercial, or SaaS. Here are a sample of static analysis tools to consider:

FWIW, I think Coverity may be a good one to start with, as it's a hosted SaaS product; integrating other tools may require building a dashboard or some other service to analyze and review the output, track outstanding vs. fixed issues, etc.

Alternatively, manually-run tools can be documented, and folks can run them on occasion, and file bugs that they find via the issue tracker.

Thoughts?

@jskeet
Copy link
Collaborator

jskeet commented Nov 27, 2017

I'm sure it's worth looking into, although I'm not sure at which point.

We'd definitely need to be able to inform any such scanner about our own tooling and requirements, e.g. GaxPreconditions.CheckNotNull for null parameter checking etc.

Assigning it P2 as it's important but not necessarily urgent.

@jskeet jskeet added priority: p2 Moderately-important priority. Fix may not be included in next release. status: investigating The issue is under investigation, which is determined to be non-trivial. type: process A process-related concern. May include testing, release, or the like. labels Nov 27, 2017
@jskeet
Copy link
Collaborator

jskeet commented Dec 6, 2017

Closing for now having added this to the backlog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. status: investigating The issue is under investigation, which is determined to be non-trivial. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

No branches or pull requests

2 participants