A secure coding standard bans certain unsafe functions, and developers use different IDEs. Which approach BEST ensures violations are rejected before any build or test stage runs?
Show the answer
Correct answerD. Run a linter with a centrally versioned ruleset as a failing first pipeline stage
AWhy not this: Personal plugin settings vary by developer and are optional, so the standard is not enforced.
BWhy not this: Regression tests run after the build and check behavior, not adherence to a coding standard.
CWhy not this: Canary releases find runtime faults in production after deployment, far too late to reject violations.
DWhy this is right: A shared ruleset run as a failing first stage enforces the standard uniformly, whatever IDE is used.
A linter with one shared, version-controlled ruleset, run as the first pipeline stage, enforces the coding standard the same way for every developer and fails the build early. Personal IDE plugins are inconsistent and optional, so they cannot enforce the standard.