Back to all reviewers

Enforce style in CI

facebook/yoga
Based on 2 comments
Yaml

Configure automated formatting tools in CI/CD pipelines to enforce code style standards rather than silently fix violations. Use validation flags that cause the build to fail when formatting issues are detected, and ensure all commands run non-interactively.

Code Style Yaml

Reviewer Prompt

Configure automated formatting tools in CI/CD pipelines to enforce code style standards rather than silently fix violations. Use validation flags that cause the build to fail when formatting issues are detected, and ensure all commands run non-interactively.

For installation commands, always include flags to avoid user prompts:

run: sudo apt-get install -y clang-format-$

For formatting validation, use flags that check without modifying files and exit with error codes:

run: npx --yes google-java-format --set-exit-if-changed --dry-run --glob=java/**/*.java

This approach catches style violations early in the development process and maintains consistent code formatting across the entire codebase by making compliance mandatory rather than optional.

2
Comments Analyzed
Yaml
Primary Language
Code Style
Category

Source Discussions