subhra74 / snowflake

Graphical SFTP client and terminal emulator with helpful utilities
GNU General Public License v3.0
2.16k stars 231 forks source link

Normalize all the line endings #79

Closed chaitan64arun closed 4 years ago

chaitan64arun commented 4 years ago

I work on Linux. Line endings are causing a problem when I change something.

So I introduced .gitattributes as stated here. https://help.github.com/en/github/using-git/configuring-git-to-handle-line-endings#per-repository-settings

I copied the file from BountyCaste project.
https://github.com/bcgit/bc-java/blob/master/.gitattributes

mbocek commented 4 years ago

What about .editorconfig? https://editorconfig.org/ The majority of IDEs support this "standard".

chaitan64arun commented 4 years ago

@mbocek Is it similar to gitattributes?

@subhra74 This PR is just an example. The whitespace and line endings seem to be inconsistent throughout the project. Using both Tab/Space causes a long diff when we creating a PR.

I would like to see a consistent system enforced in the code. This will save a lot of time for future contributors and reviewers.