What types of issues does static analysis find: bugs, vulnerabilities, code smells, security hotspots?
BeginnerConceptTesting and Quality Gates
Answer
Bugs: code that is likely wrong (null dereference, resource leak). Vulnerabilities: exploitable security flaws (SQL injection, hard-coded credentials). Security hotspots: security-sensitive code that needs human review to decide whether it is safe. Code smells: maintainability problems (dead code, high cognitive complexity, duplication). SAST tools read source without running it.
More on Testing and Quality Gates
What is the testing pyramid?BeginnerWhat is the difference between unit, integration, and end-to-end tests?BeginnerWhat are smoke tests and sanity tests in a deployment pipeline?IntermediateWhat is code coverage and is a high percentage a good target?IntermediateWhat is a quality gate in SonarQube?IntermediateHow do you integrate SonarQube into a CI pipeline and make it block on gate failure?Intermediate