From e6f94b8e3b6a1e25d007475debe6366d15e848b6 Mon Sep 17 00:00:00 2001 From: Manuel Date: Thu, 2 Feb 2023 14:15:17 +0100 Subject: [PATCH] Update editorconfig & formatting --- .editorconfig | 12 +++++++++++- config.example.toml | 2 +- docker.bake.hcl | 12 ++++++------ 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.editorconfig b/.editorconfig index a467ee9..498a6ff 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,5 +4,15 @@ root = true charset = utf-8 end_of_line = lf insert_final_newline = true +trim_trailing_whitespace = true + +[{v.mod,*.v}] indent_style = tab -tab_width = 4 +indent_size = 4 + +[*.{yml,yaml,hcl,toml}] +indent_style = space +indent_size = 2 + +[*.{diff,md}] +trim_trailing_whitespace = false diff --git a/config.example.toml b/config.example.toml index 3b881e1..5822065 100644 --- a/config.example.toml +++ b/config.example.toml @@ -5,5 +5,5 @@ redirect = false redirect_url = "" db_path = "./db/app.db" origins = [ - "*" + "*" ] diff --git a/docker.bake.hcl b/docker.bake.hcl index f5766a8..413851d 100644 --- a/docker.bake.hcl +++ b/docker.bake.hcl @@ -1,17 +1,17 @@ variable "REG" { - default = "git.snrd.eu" + default = "git.snrd.eu" } variable "REPO" { - default = "sunred/highscore-server" + default = "sunred/highscore-server" } variable "TAG" { - default = "latest" + default = "latest" } group "default" { - targets = ["production"] + targets = ["production"] } target "production" { - output = ["type=docker"] - tags = ["${REG}/${REPO}:latest", "${REG}/${REPO}:${TAG}"] + output = ["type=docker"] + tags = ["${REG}/${REPO}:latest", "${REG}/${REPO}:${TAG}"] }