Skip to content

Commit 66d4c71

Browse files
committed
Update .editorconfig and reformat code
The settings for yaml files regularly get confused and I don't like it, so I add them to .editorconfig to make the settings always the same.
1 parent 47add2b commit 66d4c71

File tree

5 files changed

+27
-12
lines changed

5 files changed

+27
-12
lines changed

.editorconfig

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,29 @@ root = true
33
[*]
44
charset = utf-8
55
end_of_line = lf
6-
indent_size = 2
6+
indent_size = 4
77
indent_style = space
88
insert_final_newline = true
99
max_line_length = 100
1010
tab_width = 4
11+
ij_visual_guides = 50, 72, 80, 100
12+
ij_wrap_on_typing = false
1113

1214
[Makefile]
1315
indent_style = tab
1416

1517
[*.go]
1618
indent_style = tab
19+
20+
[{*.yaml,*.yml}]
21+
indent_size = 2
22+
ij_yaml_align_values_properties = do_not_align
23+
ij_yaml_autoinsert_sequence_marker = true
24+
ij_yaml_block_mapping_on_new_line = false
25+
ij_yaml_indent_sequence_value = true
26+
ij_yaml_keep_indents_on_empty_lines = false
27+
ij_yaml_keep_line_breaks = true
28+
ij_yaml_sequence_on_new_line = false
29+
ij_yaml_space_before_colon = false
30+
ij_yaml_spaces_within_braces = false
31+
ij_yaml_spaces_within_brackets = false

.github/dependabot.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
version: 2
44
updates:
5-
- package-ecosystem: "gomod"
6-
directory: "/"
7-
schedule:
8-
interval: "weekly"
5+
- package-ecosystem: "gomod"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
99

10-
- package-ecosystem: "github-actions"
11-
directory: "/"
12-
schedule:
13-
interval: "weekly"
10+
- package-ecosystem: "github-actions"
11+
directory: "/"
12+
schedule:
13+
interval: "weekly"

.github/workflows/gitlab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: GitLab
33
on:
44
push:
55
pull_request:
6-
branches: [ "main" ]
6+
branches: ["main"]
77
workflow_dispatch:
88

99
jobs:

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Go
33
on:
44
push:
55
pull_request:
6-
branches: [ "main" ]
6+
branches: ["main"]
77
workflow_dispatch:
88

99
jobs:

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323

2424
migrate:
2525
image: migrate/migrate:v4.16.2
26-
command: >
26+
command: >
2727
-source 'file:///migrations'
2828
-database 'postgresql://postgres:postgres@postgres:5432/reference?sslmode=disable' up
2929
depends_on:

0 commit comments

Comments
 (0)