From 7ee66b50964cfb5f3359198ed38e8c835a4fcede Mon Sep 17 00:00:00 2001 From: bondiano Date: Mon, 18 Sep 2023 12:23:33 +0600 Subject: [PATCH] add editor config to force some rules --- .editorconfig | 13 +++++++++++++ src/ligretto_bot_clj/constants.clj | 2 +- src/ligretto_bot_clj/utils.clj | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6e87a00 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# Editor configuration, see http://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +max_line_length = off +trim_trailing_whitespace = false diff --git a/src/ligretto_bot_clj/constants.clj b/src/ligretto_bot_clj/constants.clj index a91ed0b..ba1bf80 100644 --- a/src/ligretto_bot_clj/constants.clj +++ b/src/ligretto_bot_clj/constants.clj @@ -2,4 +2,4 @@ (def socket-url "https://api.ligretto.app/") (def api-url "https://core.ligretto.app/api") -(def game-url "https://ligretto.app/game") \ No newline at end of file +(def game-url "https://ligretto.app/game") diff --git a/src/ligretto_bot_clj/utils.clj b/src/ligretto_bot_clj/utils.clj index 03a79a9..5aeef09 100644 --- a/src/ligretto_bot_clj/utils.clj +++ b/src/ligretto_bot_clj/utils.clj @@ -21,4 +21,4 @@ (try (Integer/parseInt s) (catch Exception _ - nil))) \ No newline at end of file + nil)))