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
459c8ce84e
feat(os/gfsnotify): add recursive watching for created subfolders and sub-files under folders that already watched ( #3830 )
2024-09-30 11:24:27 +08:00
23df83cb0b
database/gdb: fix deadlock when orm operations perform in cache function from gcache ( #3585 )
2024-05-22 21:14:43 +08:00
505fc25a64
fix: fsnotify watcher panics when closing ( #3399 )
2024-04-07 14:12:03 +08:00
ea6a773d60
fix: marked gcode.CodeInternalPanic for panic ( #2860 )
2023-08-14 09:53:13 +08:00
1793bf0863
add golangci feature to guarantee codes quality ( #2229 )
2022-11-01 20:12:21 +08:00
98b2e8ab18
improve panic...recover of exit feature for package ghttp/gtimer/gfsnotify ( #2000 )
2022-07-13 20:20:38 +08:00
cdd4473df5
improve command gen service; add error trace for error of some packages
2022-06-16 17:07:25 +08:00
546b6b1724
t.Assert(err, nil) -> t.AssertNil(err)
2022-03-10 11:36:40 +08:00
5f2047d61b
fix issue in configuration StdoutColorDisabled for package glog; rename TempDir to Temp for package gfile
2022-02-14 14:50:25 +08:00
04eb654133
add error stack for internal error printing
2022-01-28 14:51:49 +08:00
48c5c1e5a8
change errors wrapped by gerror.Wrap with error stack info for all packages
2021-12-23 00:09:00 +08:00
f3c25ecba9
fix issue in ut for package gcache/gfsnotify
2021-12-17 12:11:40 +08:00
e86ee052cb
improve code import
2021-11-16 19:29:02 +08:00
b664982be3
[feature] improve code gfile gcfg
2021-11-15 20:26:31 +08:00
1bc0635f8b
version 2
2021-10-11 21:41:56 +08:00
28f70d52ee
add context parameter for all functions of package gcache
2021-09-17 10:48:08 +08:00
425ca8aa3e
improve process comminucation folder creating for package gproc
2021-09-01 15:02:58 +08:00
abc8e62d58
add package gcode and improve error implements for package gerror
2021-08-24 21:18:59 +08:00
0ddacdd7e2
add error code for components
2021-07-20 23:02:02 +08:00
3d4d3a763a
comment update for package gfsnotify
2021-07-12 22:05:03 +08:00
d109706ad3
unify error package to gerror
2021-06-26 18:34:26 +08:00
50ffaef33f
add context for intlog/gsession;improve struct/structs converting for package gconv
2021-06-26 16:23:54 +08:00
0dfd968824
comment update for package gconv/gproc
2021-05-17 21:26:39 +08:00
b84ca9cc13
debug
2021-05-17 20:25:00 +08:00
e5734425ba
debug
2021-05-17 20:18:21 +08:00
302e234bfe
comment update for package gfsnotify
2021-05-17 19:17:04 +08:00
522f6cb455
fix issue of failing in folder watching with no recursive option for package gfsnotify
2021-05-17 13:43:36 +08:00
bd13de2b39
improve package internal/intlog
2021-03-01 17:50:02 +08:00
d0f649b328
improve package internal/intlog
2021-03-01 17:39:13 +08:00
04e42d2175
improve package internal/intlog
2021-03-01 17:15:18 +08:00
093034acd1
copyright comment update
2021-01-17 21:46:25 +08:00
7efa9e351e
remove default initialization function and add lazy initialization feature for package gfsnotify
2020-10-15 20:07:21 +08:00
f9189d48d1
remove type ValueFunc from package gcache
2020-10-09 23:36:39 +08:00
46ee070f0a
fix issue in package gfsnotify when gset changes
2020-04-14 00:20:39 +08:00
b17e3a6804
improve package gset
2020-04-13 23:44:43 +08:00
ddcb7121c1
improve temporary path producing from gfile.Join to gfile.TempDir
2020-03-28 00:41:12 +08:00
0b6d04485e
improve unit testing cases
2020-03-19 22:56:12 +08:00
42fd583bfd
add more inernal logging points for core components
2020-02-24 21:09:19 +08:00
88684ca00a
add panic if internal watcher creation fails for gfsnotify; improve codes and change comment from chinese to english for gdb
2020-02-10 20:37:53 +08:00
7df53ff55e
rename all timestamp function names from *Second to Timestamp*
2020-01-20 14:14:11 +08:00
80c6ceaf26
fix issue 437
2019-12-25 21:22:06 +08:00
21abe62633
improve gfsnotify; add cache for tempalte file content
2019-11-04 22:42:49 +08:00
82bf21e831
improve gfsnotify
2019-11-01 15:31:26 +08:00
66355354fc
improve gfsnotify/gview and container
2019-10-31 23:37:33 +08:00
06c16bf560
remove thirdparty diectory, add go.mod for package dependences
2019-08-01 14:07:25 +08:00
b01add2925
update project structure
2019-07-29 21:01:19 +08:00