What is linting and formatting enforcement in CI?
BeginnerConceptTesting and Quality Gates
Answer
Linters check style and common mistakes (ESLint, flake8/ruff, golangci-lint, hadolint for Dockerfiles, yamllint, actionlint for workflows). Formatters (Prettier, black, gofmt) normalise formatting. CI runs them in check mode (prettier --check, black --check) so a PR fails when files are not formatted, while pre-commit hooks fix them locally.
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