Skip to content

Commit

Permalink
Change editorconfig defaults for Go
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Feb 22, 2024
1 parent 8f12115 commit 8b8971b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ indent_size = 2
# C# files
[*.cs]

[*.go]
indent_style = tab
indent_size = 8
tab_width = 8

#### Core EditorConfig Options ####

# Indentation and spacing
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:

- name: Run linters
working-directory: ./go
run: make lint
run: make lint-ci

- name: Run tests
working-directory: ./go
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:

- name: Run linters
working-directory: ./go
run: make lint
run: make lint-ci

- name: Run tests
working-directory: ./go
Expand Down
6 changes: 6 additions & 0 deletions go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ generate-protobuf:
../glide-core/src/protobuf/*.proto

lint:
go vet ./...
staticcheck ./...
gofumpt -d .
golines --dry-run --shorten-comments -m 127 .

lint-ci:
go vet ./...
staticcheck ./...
if [ "$$(gofumpt -l . | wc -l)" -gt 0 ]; then exit 1; fi
Expand Down

0 comments on commit 8b8971b

Please sign in to comment.