Skip to content

Commit 18e494a

Browse files
committed
sync: update 4 files from source repository
1 parent 8662366 commit 18e494a

4 files changed

Lines changed: 834 additions & 15 deletions

File tree

.github/.env.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ REDIS_CACHE_FORCE_PULL=false # Force pull Redis images even when cache
225225
# 🪄 MAGE-X CONFIGURATION
226226
# ================================================================================================
227227

228-
MAGE_X_VERSION=v1.7.1 # https://github.com/mrz1836/mage-x/releases
228+
MAGE_X_VERSION=v1.7.2 # https://github.com/mrz1836/mage-x/releases
229229
MAGE_X_AUTO_DISCOVER_BUILD_TAGS=true # Enable auto-discovery of build tags
230230
MAGE_X_AUTO_DISCOVER_BUILD_TAGS_EXCLUDE=race,custom # Comma-separated list of tags to exclude
231231
MAGE_X_FORMAT_EXCLUDE_PATHS=vendor,node_modules,.git,.idea # Format exclusion paths (comma-separated directories to exclude from formatting)

.vscode/extensions.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"recommendations": [
3-
"golang.Go"
3+
"golang.Go",
4+
"github.vscode-github-actions",
5+
"redhat.vscode-yaml"
46
]
57
}

.vscode/settings.json

Lines changed: 144 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
// ============================================================
3+
// GO LANGUAGE CONFIGURATION
4+
// ============================================================
25
"[go.mod]": {
36
"editor.codeActionsOnSave": {
47
"source.organizeImports": "explicit"
@@ -9,20 +12,156 @@
912
"editor.codeActionsOnSave": {
1013
"source.organizeImports": "explicit"
1114
},
12-
"editor.formatOnSave": true
15+
"editor.formatOnSave": true,
16+
"editor.defaultFormatter": "golang.go"
1317
},
1418
"[go][go.mod]": {
1519
"editor.codeActionsOnSave": {
1620
"source.organizeImports": "explicit"
1721
}
1822
},
23+
24+
// ============================================================
25+
// OTHER LANGUAGE CONFIGURATIONS
26+
// ============================================================
27+
"[yaml]": {
28+
"editor.defaultFormatter": "redhat.vscode-yaml"
29+
},
30+
"files.associations": {
31+
"application.yaml": "yaml-cloudformation"
32+
},
33+
34+
// ============================================================
35+
// GO TOOLS & LANGUAGE SERVER
36+
// ============================================================
37+
"go.useLanguageServer": true,
38+
"go.toolsManagement.autoUpdate": true,
39+
40+
// ============================================================
41+
// LINTING
42+
// ============================================================
43+
"go.lintTool": "golangci-lint",
1944
"go.lintFlags": [
20-
"--verbose"
45+
"--fast",
46+
"--timeout=5m"
2147
],
22-
"go.lintTool": "golangci-lint",
23-
"go.useLanguageServer": true,
48+
"go.lintOnSave": "package",
49+
50+
// ============================================================
51+
// TESTING
52+
// ============================================================
53+
"go.testExplorerPackages": ".*",
54+
"go.testFlags": [
55+
"-v",
56+
"-race",
57+
"-count=1"
58+
],
59+
"go.coverOnSave": false,
60+
"go.coverageDecorator": {
61+
"type": "gutter",
62+
"coveredHighlightColor": "rgba(64,128,64,0.5)",
63+
"uncoveredHighlightColor": "rgba(128,64,64,0.25)"
64+
},
65+
66+
// ============================================================
67+
// CODE LENS
68+
// ============================================================
69+
"go.enableCodeLens": {
70+
"runtest": true
71+
},
72+
73+
// ============================================================
74+
// DEBUGGING (Delve)
75+
// ============================================================
76+
"go.delveConfig": {
77+
"dlvLoadConfig": {
78+
"followPointers": true,
79+
"maxVariableRecurse": 1,
80+
"maxStringLen": 256,
81+
"maxArrayValues": 64,
82+
"maxStructFields": -1
83+
},
84+
"showGlobalVariables": false,
85+
"debugAdapter": "dlv-dap"
86+
},
87+
88+
// ============================================================
89+
// STRUCT TAG MANAGEMENT
90+
// ============================================================
91+
"go.addTags": {
92+
"tags": "json",
93+
"options": "json=omitempty",
94+
"promptForTags": false,
95+
"transform": "snakecase"
96+
},
97+
98+
// ============================================================
99+
// GOPLS (LANGUAGE SERVER) CONFIGURATION
100+
// ============================================================
24101
"gopls": {
102+
// --------------------------------------------------------
103+
// Formatting (gofumpt for stricter formatting)
104+
// --------------------------------------------------------
25105
"formatting.gofumpt": true,
26-
"formatting.local": "github.com/mrz1836/go-sanitize"
106+
107+
// --------------------------------------------------------
108+
// IMPORTANT: Project-Specific Module Path
109+
// For multi-project use, update this to your module path:
110+
// Example: "github.com/yourorg/yourproject"
111+
// Or remove this setting to use auto-detection
112+
// --------------------------------------------------------
113+
"formatting.local": "github.com/mrz1836/go-sanitize",
114+
115+
// --------------------------------------------------------
116+
// UI & Completion Features
117+
// --------------------------------------------------------
118+
"ui.semanticTokens": true,
119+
"ui.completion.completeFunctionCalls": true,
120+
"ui.completion.usePlaceholders": true,
121+
122+
// --------------------------------------------------------
123+
// Inlay Hints (Inline Type & Parameter Information)
124+
// --------------------------------------------------------
125+
"ui.inlayHint.assignVariableTypes": true,
126+
"ui.inlayHint.compositeLiteralFields": true,
127+
"ui.inlayHint.compositeLiteralTypes": true,
128+
"ui.inlayHint.constantValues": true,
129+
"ui.inlayHint.functionTypeParameters": true,
130+
"ui.inlayHint.parameterNames": true,
131+
"ui.inlayHint.rangeVariableTypes": true,
132+
133+
// --------------------------------------------------------
134+
// Symbol Navigation
135+
// --------------------------------------------------------
136+
"symbolMatcher": "fastfuzzy",
137+
"symbolStyle": "full",
138+
"ui.navigation.importShortcut": "Definition",
139+
140+
// --------------------------------------------------------
141+
// Enhanced Diagnostics & Static Analysis
142+
// Extends the 60+ golangci-lint philosophy into the IDE
143+
// --------------------------------------------------------
144+
"ui.diagnostic.staticcheck": true,
145+
"ui.diagnostic.vulncheck": "Imports",
146+
"ui.diagnostic.analyses": {
147+
"unusedparams": true,
148+
"shadow": true,
149+
"unusedwrite": true,
150+
"fieldalignment": true,
151+
"nilness": true,
152+
"unusedvariable": true
153+
},
154+
155+
// --------------------------------------------------------
156+
// Build Performance (Exclude directories from analysis)
157+
// --------------------------------------------------------
158+
"build.directoryFilters": [
159+
"-node_modules",
160+
"-vendor",
161+
"-.git",
162+
"-dist",
163+
"-build",
164+
"-.mage-cache"
165+
]
27166
}
28167
}

0 commit comments

Comments
 (0)