7ffdff37e4
chore: upgrade golangci-lint configuration and optimize codebase ( #4236 )
...
This PR includes the following changes:
- **Upgrade `.golangci.yml`**: Updated the configuration file to align
with the latest golangci-lint version, ensuring compatibility and
leveraging new features.
- **Refactor GitHub Action workflow**: Modified `golangci-lint.yml` in
the GitHub Actions workflow to reflect the updated configuration and
improve CI performance.
- **Codebase optimization**: Refactored code to address issues and
warnings raised by the updated golangci-lint rules, including:
- Improved function length and complexity.
- Enhanced error handling and variable naming conventions.
- Fixed minor issues such as unused imports and formatting
inconsistencies.
These changes aim to maintain code quality, ensure compatibility with
the latest tools, and improve overall maintainability.
2025-08-22 13:29:09 +08:00
b0b84a3937
ci(gci/import): improve golangci.yml and add gci linter ( #4010 )
2024-12-07 14:17:33 +08:00
e186eab1a5
fix(debug/gdebug): incorrect package name handling in function CallerPackage ( #3771 )
2024-09-13 16:51:39 +08:00
12ff9af431
test/gtest: add support for string type in AssertIN and AssertNI ( #3537 )
2024-04-24 21:04:54 +08:00
53e5a04073
change minimum golang version from v1.15 to v1.18 ( #2820 )
2023-08-01 21:15:28 +08:00
ed43efe4fb
add ut cases for package gdebug ( #2313 )
...
* add ut cases for package gdebug
* add ut cases for package gdebug
* add ut cases for package gdebug
Co-authored-by: houseme <housemecn@gmail.com >
2022-11-18 14:05:39 +08:00
1793bf0863
add golangci feature to guarantee codes quality ( #2229 )
2022-11-01 20:12:21 +08:00
eff46bd1db
fix issue #2047 ( #2069 )
2022-08-16 20:46:22 +08:00
bceb5fc7de
rename gdebug.TestData* -> gtest.Data*; add UT case for http server
2022-03-17 16:58:04 +08:00
805f60efa1
improve package ghash
2022-01-13 21:31:23 +08:00
ce93b625d4
change errors wrapped by gerror.Wrap with error stack info for all packages
2021-12-21 22:59:14 +08:00
e10ba4cf67
improve stack filtering for package gdebug/glog
2021-12-10 22:54:32 +08:00
39bbca2a50
add stack filter of goframe module path for logging content
2021-12-10 18:52:35 +08:00
e02bdd875d
add stack filter of goframe module path for logging content
2021-12-10 18:25:28 +08:00
0e3a8576b4
improve debugging feature
2021-12-04 23:07:54 +08:00
be03b3cdda
Improved import, by group improt.
2021-11-13 23:23:55 +08:00
fa5499373a
replace char <xxx> to ;add GetWithEnv/GetWithCmd fuctions for package gcfg
2021-10-21 18:22:47 +08:00
1bc0635f8b
version 2
2021-10-11 21:41:56 +08:00
00f0a743fc
add function TestDataContent for package gdebug
2021-08-10 17:20:15 +08:00
fbad5f60eb
improve caller path filtering for package gdebug
2021-06-22 15:09:08 +08:00
fab6c4048d
comment update
2021-05-25 22:16:55 +08:00
fefde4c290
improve stack feature for package gdebug/gerror
2021-02-04 00:10:13 +08:00
9cc5d7a691
improve package gdebug/gfile
2021-01-27 00:20:23 +08:00
093034acd1
copyright comment update
2021-01-17 21:46:25 +08:00
f9189d48d1
remove type ValueFunc from package gcache
2020-10-09 23:36:39 +08:00
849874a247
improve adapter definition for package gcache
2020-10-09 20:59:49 +08:00
d90145a47f
add goroutine id retrieving feature for package gdebug
2020-08-08 09:42:24 +08:00
cf1d3d3d2b
improve package gdebug; add more unit testing case for package gdb
2020-04-27 17:56:04 +08:00
c10149baa0
fix issue in stack trace for package gdebug; improve package gsmtp
2020-04-18 10:17:54 +08:00
f1f575fd5c
improve package gins/gfile/intlog
2020-03-28 00:37:23 +08:00
c2966817ce
improve function gdebug.TestDataPath and update all usage codes
2020-03-21 19:41:05 +08:00
16958413bb
improve autoencode feature for package gview
2020-03-21 19:31:58 +08:00
9f0548c03d
improve testdata directory retrieving for unit testing cases
2020-03-16 22:47:39 +08:00
a34ca0ff4b
improve uploading file feature for ghttp.Server; improve package gfile/gstr/gdebug
2020-03-07 19:31:33 +08:00
e33230a88f
add package gbuild
2019-12-14 17:01:27 +08:00
28825f5395
add gdebug.BuildInfo function; improving gproc
2019-12-09 21:53:44 +08:00
a06ca31530
improve middleware feature for ghttp.Server
2019-12-04 10:03:03 +08:00
38ee5f7d53
improve performance of gdebug
2019-10-30 15:12:19 +08:00
7225e49aa0
add package intlog for GF internal logging usage; improve redis storage feature for gsession
2019-10-29 16:45:42 +08:00
3218c89f17
improve gfile/gstr/ghttp
2019-09-23 16:21:19 +08:00
62f66b4fec
remove unnecessary stack trace of gf for stack printing
2019-09-19 13:13:39 +08:00
6c61704e60
adding package gi18n
2019-08-31 18:04:12 +08:00
1a20edc0b0
improving gdb and glog
2019-08-26 19:39:04 +08:00
fda345577a
add package gdebug; improve gconv/gfile/gset
2019-08-09 20:05:36 +08:00