-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 feat: add golangci-lint config and improve code organization
The commit includes: - Add golangci-lint configuration file - Reorganize route handlers for better readability - Remove unused wordWrap function - Fix code formatting and imports order
- Loading branch information
Showing
5 changed files
with
55 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
linters: | ||
enable: | ||
- gofmt | ||
- govet | ||
- gosimple | ||
- staticcheck | ||
- unused | ||
- misspell | ||
- ineffassign | ||
- goimports | ||
|
||
run: | ||
# Timeout for analysis | ||
timeout: 5m | ||
|
||
# Output configuration | ||
output: | ||
# Format: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions | ||
formats: | ||
- format: colored-line-number | ||
|
||
# Print lines of code with issue | ||
print-issued-lines: true | ||
|
||
# Print linter name in the end of issue text | ||
print-linter-name: true | ||
|
||
issues: | ||
exclude-dirs: | ||
- uploads | ||
- tmp | ||
exclude-files: | ||
- ".*\\.pb\\.go$" | ||
|
||
# Linters settings | ||
linters-settings: | ||
goimports: | ||
local-prefixes: github.com/your-username/0x45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters