Skip to content

Commit

Permalink
Add an editorconfig
Browse files Browse the repository at this point in the history
Just set to the style already used in the code, 4 spaces.
Ref #32

I left remove trailing whitespace commented out since there's an insane ammount of trailing whitespace in the source code.
Any small edits were causing big diffs that removed the whitespace.

TODO: uncomment and remove all trailing whitespace across the codebase.
  • Loading branch information
sum01 committed Feb 7, 2018
1 parent 70138fe commit 66db0b0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
# trim_trailing_whitespace = true

# Ignore .md files, because 2 spaces at end-of-line has meaning
[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog.](http://keepachangelog.com/en/1.0.0/)
* `CreateRawTransaction` RPC
* `GetUnconfirmedBalance` RPC
* `DecodeScript` RPC
* An `.editorconfig` file for easier editing.

### Changed

Expand Down

0 comments on commit 66db0b0

Please sign in to comment.