Skip to content

ci: enforce EditorConfig across repository - #18761

Open
Tobias Brick (tobiasb-ms) wants to merge 2 commits into
microsoft:4.0from
tobiasb-ms:tobiasb-ms/enforce-editorconfig-base
Open

ci: enforce EditorConfig across repository#18761
Tobias Brick (tobiasb-ms) wants to merge 2 commits into
microsoft:4.0from
tobiasb-ms:tobiasb-ms/enforce-editorconfig-base

Conversation

@tobiasb-ms

@tobiasb-ms Tobias Brick (tobiasb-ms) commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • run EditorConfig checks against all tracked text files
  • exclude generated specs, legal and centrally managed documents, and byte-identical upstream kernel artifacts
  • clean the existing violations in maintained files

Validation

  • pre-commit run --all-files --show-diff-on-failure
  • CI caught existing issues on initial commit of just the rules. Passes with the commit to fix them.

Check all tracked text files while excluding generated, legal, centrally managed, and byte-identical upstream artifacts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 8, 2026 18:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The updated hook configuration should restrict to types: [text] to match the stated intent and avoid scanning binaries, and the PR description indicates existing violations are still outstanding.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the repository’s pre-commit linting configuration to enforce EditorConfig rules more broadly, while carving out documented exclusions for generated or externally managed content.

Changes:

  • Expand editorconfig-checker coverage from only *.toml to (intended) all tracked text files.
  • Add explicit, documented exclusions for generated specs and specific legal/centrally managed/upstream-artifact files.
File summaries
File Description
.pre-commit-config.yaml Broadens EditorConfig checking scope and documents path-based exclusions.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .pre-commit-config.yaml
Copilot AI review requested due to automatic review settings September 8, 2026 19:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

.pipelines/CodeQL/CodeQL.yml is not valid YAML due to incorrect indentation under jobs:.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 2/12 changed files
  • Comments generated: 3
  • Review effort level: Lite

Comment thread .pipelines/CodeQL/CodeQL.yml
Comment thread .pre-commit-config.yaml
Comment thread specs/a/azurelinux-repos/azurelinux-repos.spec
Clean the existing maintained-file baseline so repository-wide EditorConfig enforcement can pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 9, 2026 19:47
@tobiasb-ms
Tobias Brick (tobiasb-ms) force-pushed the tobiasb-ms/enforce-editorconfig-base branch from 0d22853 to 0fa6655 Compare September 9, 2026 19:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are consistent with the stated goal (repo-wide EditorConfig enforcement + cleanup) and are limited to formatting/regen artifacts without introducing behavioral modifications.

Review details
  • Files reviewed: 5/16 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@tobiasb-ms

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

@tobiasb-ms
Tobias Brick (tobiasb-ms) marked this pull request as ready for review September 9, 2026 21:09
@tobiasb-ms
Tobias Brick (tobiasb-ms) requested a review from a team as a code owner September 9, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants