Skip to content

Commit 9568cb6

Browse files
committed
update codestyle
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent e1df90f commit 9568cb6

File tree

3 files changed

+37
-11
lines changed

3 files changed

+37
-11
lines changed

.editorconfig

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,38 @@ indent_size = 4
1414
[Makefile]
1515
indent_style = tab
1616

17-
[*.yml]
18-
indent_size = 2
19-
20-
[*.yaml]
17+
[{*.yml,*.yaml}]
2118
indent_size = 2
2219

2320
[*.conf]
2421
indent_size = 2
2522

2623
[*.go]
27-
indent_style = tab
2824
indent_size = 4
25+
indent_style = tab
26+
ij_continuation_indent_size = 4
27+
ij_go_GROUP_CURRENT_PROJECT_IMPORTS = true
28+
ij_go_add_leading_space_to_comments = true
29+
ij_go_add_parentheses_for_single_import = true
30+
ij_go_call_parameters_new_line_after_left_paren = true
31+
ij_go_call_parameters_right_paren_on_new_line = true
32+
ij_go_call_parameters_wrap = off
33+
ij_go_fill_paragraph_width = 80
34+
ij_go_group_stdlib_imports = true
35+
ij_go_import_sorting = goimports
36+
ij_go_keep_indents_on_empty_lines = false
37+
ij_go_local_group_mode = project
38+
ij_go_move_all_imports_in_one_declaration = true
39+
ij_go_move_all_stdlib_imports_in_one_group = true
40+
ij_go_remove_redundant_import_aliases = false
41+
ij_go_run_go_fmt_on_reformat = true
42+
ij_go_use_back_quotes_for_imports = false
43+
ij_go_wrap_comp_lit = off
44+
ij_go_wrap_comp_lit_newline_after_lbrace = true
45+
ij_go_wrap_comp_lit_newline_before_rbrace = true
46+
ij_go_wrap_func_params = off
47+
ij_go_wrap_func_params_newline_after_lparen = true
48+
ij_go_wrap_func_params_newline_before_rparen = true
49+
ij_go_wrap_func_result = off
50+
ij_go_wrap_func_result_newline_after_lparen = true
51+
ij_go_wrap_func_result_newline_before_rparen = true

config/opts.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package config
22

33
import (
44
"encoding/json"
5+
56
log "github.com/sirupsen/logrus"
67
)
78

main.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ package main
33
import (
44
"context"
55
"fmt"
6+
"os"
7+
"os/signal"
8+
"path"
9+
"runtime"
10+
"strings"
11+
"syscall"
12+
613
"github.com/Azure/azure-sdk-for-go/profiles/latest/resources/mgmt/resources"
714
"github.com/Azure/azure-sdk-for-go/profiles/latest/resources/mgmt/subscriptions"
815
"github.com/Azure/go-autorest/autorest"
@@ -12,13 +19,8 @@ import (
1219
jwt "github.com/golang-jwt/jwt/v4"
1320
"github.com/jessevdk/go-flags"
1421
log "github.com/sirupsen/logrus"
22+
1523
"github.com/webdevops/azure-debug-info/config"
16-
"os"
17-
"os/signal"
18-
"path"
19-
"runtime"
20-
"strings"
21-
"syscall"
2224
)
2325

2426
const (

0 commit comments

Comments
 (0)