dashboard / erock/pico / refactor(lint): use golangci config file #68 rss

open · opened on 2025-05-24T17:05:27Z by erock
Help
checkout latest patchset:
ssh pr.pico.sh print pr-68 | git am -3
checkout any patchset in a patch request:
ssh pr.pico.sh print ps-X | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 68
add review to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add --review 68
accept PR:
ssh pr.pico.sh pr accept 68
close PR:
ssh pr.pico.sh pr close 68

Logs

erock created pr with ps-136 on 2025-05-24T17:05:27Z

Patchsets

ps-136 by erock on 2025-05-24T17:05:27Z

Patchset ps-136

Back to top

refactor(lint): use golangci config file

.github/actions/test/action.yml link
+0 -1
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml
index a521077..66bb633 100644
--- a/.github/actions/test/action.yml
+++ b/.github/actions/test/action.yml
@@ -13,7 +13,6 @@ runs:
       uses: golangci/golangci-lint-action@v3
       with:
         version: latest
-        args: -E goimports -E godot --timeout 10m
     - name: Run tests
       shell: bash
       run: |
.golangci.yml link
+8 -0
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
diff --git a/.golangci.yml b/.golangci.yml
new file mode 100644
index 0000000..1639ef7
--- /dev/null
+++ b/.golangci.yml
@@ -0,0 +1,8 @@
+version: "2"
+linters:
+  default: standard
+  enable:
+    - godot
+    - goimports
+run:
+  timeout: 10m
Makefile link
+1 -1
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/Makefile b/Makefile
index c362d78..6c55beb 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ css:
 .PHONY: css
 
 lint:
-	golangci-lint run -E goimports -E godot --timeout 10m
+	golangci-lint run
 .PHONY: lint
 
 test: