From 3e4faaa213be21f271dffd88623fbab7afc54507 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 13 Sep 2021 17:25:53 +0300 Subject: [PATCH] Add .editorconfig file and remove trailing newlines --- beacon_chain/.editorconfig | 12 ++++++++++++ beacon_chain/spec/datatypes/altair.nim | 1 - beacon_chain/spec/helpers.nim | 1 - 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 beacon_chain/.editorconfig diff --git a/beacon_chain/.editorconfig b/beacon_chain/.editorconfig new file mode 100644 index 000000000..666f4b6e7 --- /dev/null +++ b/beacon_chain/.editorconfig @@ -0,0 +1,12 @@ +# https://EditorConfig.org +root = true + +[*.nim] +indent_style = space +indent_size = 2 +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true + +[Makefile] +indent_style = tab diff --git a/beacon_chain/spec/datatypes/altair.nim b/beacon_chain/spec/datatypes/altair.nim index b76fd4a13..4e2f82ff2 100644 --- a/beacon_chain/spec/datatypes/altair.nim +++ b/beacon_chain/spec/datatypes/altair.nim @@ -527,4 +527,3 @@ chronicles.formatIt SyncCommitteeMessage: shortLog(it) func hash*(x: LightClientUpdate): Hash = hash(x.header.state_root.data) - diff --git a/beacon_chain/spec/helpers.nim b/beacon_chain/spec/helpers.nim index 7ab91304b..5adef81ad 100644 --- a/beacon_chain/spec/helpers.nim +++ b/beacon_chain/spec/helpers.nim @@ -237,4 +237,3 @@ func has_flag*(flags: ParticipationFlags, flag_index: int): bool = # https://github.com/ethereum/eth2.0-specs/blob/v1.1.0-beta.3/specs/altair/sync-protocol.md#get_subtree_index func get_subtree_index*(idx: GeneralizedIndex): uint64 = uint64(idx mod (type(idx)(1) shl log2trunc(idx))) -