Skip to content

Commit

Permalink
editorconfig: add swift style
Browse files Browse the repository at this point in the history
Xcode 16 introduces support for EditorConfig-based editor settings. Many
other editors also support EditorConfig.

In particular, this enables trailing whitespace trimming for Swift
source files.
  • Loading branch information
jparise committed Aug 23, 2024
1 parent 0e3ecbe commit fe5fb60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ indent_style = space
[bash-preexec.sh]
indent_size = 4
indent_style = space

[*.swift]
indent_size = 4
indent_style = space
trim_trailing_whitespace = true

0 comments on commit fe5fb60

Please sign in to comment.