Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix trim_trailing_whitespace typo in .editorconfig file #6349

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

ryandesign
Copy link
Contributor

Description

trim_trailing_spaces seems to have been an older proposal for the name of this property but trim_trailing_whitespace is what was finally settled on. trim_trailing_whitespace already appears twice in this file.

https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#trim_trailing_whitespace

Cc: @Alhadis who added this file originally

trim_trailing_spaces seems to have been an older proposal for the name
of this property but trim_trailing_whitespace is what was finally
settled on. trim_trailing_whitespace already appears twice in this file.

https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#trim_trailing_whitespace
@ryandesign ryandesign requested a review from a team as a code owner March 29, 2023 01:53
Copy link
Collaborator

@Alhadis Alhadis left a comment

Choose a reason for hiding this comment

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

I don't know about being part of an earlier proposal; this looks to be more of an honest typo to me. Regardless, good catch.

@Alhadis Alhadis changed the title Change trim_trailing_spaces to trim_trailing_whitespace in .editorconfig file Fix trim_trailing_whitespace typo in .editorconfig file Apr 1, 2023
@ryandesign
Copy link
Contributor Author

an earlier proposal

It's one of the four possible names for this option suggested here:

https://github.com/editorconfig/editorconfig/wiki/Property-research:-Trim-trailing-spaces

@Alhadis
Copy link
Collaborator

Alhadis commented Apr 3, 2023

It's one of the four possible names for this option suggested here:

Judging from git-blame(1), those suggestions were made loooooong ago:

$ git clone https://github.com/editorconfig/editorconfig.wiki.git
$ cd editorconfig.wiki/
$ git blame 'Property-research:-Trim-trailing-spaces.md'
41e31d80 (sindresorhus      2012-07-01 07:03:56 -0700  7) ## Naming ideas
41e31d80 (sindresorhus      2012-07-01 07:03:56 -0700  8) 
3c852fbe (David D Lowe      2016-12-02 12:14:34 +0100  9) - trim_trailing_whitespace (note: this is the name that ended up being chosen)
99a257a6 (Trey Hunner       2012-07-02 08:18:14 -0700 10) - trim_trailing_spaces
41e31d80 (sindresorhus      2012-07-01 07:03:56 -0700 11) - allow_trailing_space
a241dde5 (Alexander Sashnov 2018-08-25 23:46:16 +0700 12) - strip_trailing_space

So, as far back as mid-2012, and probably long before it saw widespread adoption.

Regardless, this was clearly a typo, because both the correct and incorrect spellings were added in the same commit (by none other than yours truly); cf. lines 9 and 29.

@lildude lildude merged commit 16b37e8 into github-linguist:master Apr 3, 2023
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants