Interview Prep/CI/CD/Testing and Quality Gates

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.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Testing and Quality Gates