Skip to content

Add settings for trimming whitespace and final newline#699

Open
fadrian06 wants to merge 2 commits into
masterfrom
style-add-trim_trailing_whitespace-and-insert_final_newline-editorconfigs
Open

Add settings for trimming whitespace and final newline#699
fadrian06 wants to merge 2 commits into
masterfrom
style-add-trim_trailing_whitespace-and-insert_final_newline-editorconfigs

Conversation

@fadrian06

Copy link
Copy Markdown
Contributor

This pull request makes a minor update to the .editorconfig file to enforce consistent whitespace handling across the project.

  • Editor configuration improvements:
    • Added trim_trailing_whitespace = true and insert_final_newline = true to ensure files do not have trailing whitespace and always end with a newline.

Copilot AI review requested due to automatic review settings June 22, 2026 00:32

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.

Pull request overview

This PR updates the repository’s .editorconfig to enforce consistent whitespace hygiene across the project, helping keep diffs clean and reducing formatting noise between contributors’ editors.

Changes:

  • Enable trimming of trailing whitespace for files covered by the global [*] section.
  • Require a final newline for files covered by the global [*] section (while preserving the existing exception for tests/views/*.php).

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