11 Commits

Author SHA1 Message Date
cxhello 7da68f92f2 build(style): integrate Spotless Maven Plugin with Eclipse JDT Formatter (#15061)
Add Spotless Maven Plugin with Eclipse JDT Formatter for automated Java
code formatting. The Eclipse Formatter is configured to match Nacos code
style conventions including 4-space indentation, 8-space continuation
indent, 100-character line width, and keeping indentation on empty lines.

Key changes:
- Add spotless-maven-plugin 2.44.4 to root pom.xml
- Add Eclipse JDT Formatter config (style/nacos-eclipse-formatter.xml)
- Update AGENTS.md, CONTRIBUTING.md, CONTRIBUTING_zh.md, codeStyle.md

No Checkstyle rules or Java code are modified. CI enforcement
(spotless:check in workflow) and full codebase formatting will be done
in a follow-up PR after this infrastructure PR is merged.

Ref #14815

Assisted-by: Claude Code

Signed-off-by: cxhello <caixiaohuichn@gmail.com>
2026-05-07 19:08:53 +08:00
cxhello 26e5961f8e docs(contributing): add license header, pre-submission checks and Chinese version (#14514)
- Add License Header section with Apache License 2.0 template
- Add Pre-submission Checks section with command table
- Create CONTRIBUTING_zh.md as Chinese translation
- Remove outdated p3c plugin references from style/codeStyle.md
- Add SpotBugs IDE plugin recommendation

Signed-off-by: cxhello <caixiaohuichn@gmail.com>
2026-03-02 16:24:28 +08:00
Eric Wang 24cc2166a0 optimize: update checkStyle version (#13914)
* optimize: update checkStyle version

* optimize: update checkStyle version

* optimize: update checkStyle version

* optimize: update checkStyle version
2025-11-04 13:39:07 +08:00
杨翊 SionYang 2233e6556c Develop refactor request context (#12331)
* Add RequestContext and RequestContextHolder.

* build RequestContext when request start.

* Refactor ClientAttributesFilter with RequestContext.

* InstanceController get client ip from request context.

* SubscribeServiceRequestHandler get app from requestcontext.

* config http api support use request context get user, app and source ip.

* Rename nacos request context filter.

* Unified naming request get source ip by request context.

* For checkstyle.
2024-07-10 16:54:19 +08:00
liu-xg 15c48f4246 Update codeStyle.md (#11418)
修复错误单词
2023-11-23 14:29:04 +08:00
Hoswey 45049b426a Update codeStyle.md (#4092)
修改错误拼写

Co-authored-by: yanlinly <yan.lin2009@163.com>
Co-authored-by: 杨翊 SionYang <263976490@qq.com>
2020-10-30 16:53:31 +08:00
lin-mt 9d34193bb4 Add the location of the CodeStyle plugin configuration (#3151) 2020-06-23 09:45:49 +08:00
KomachiSion a0227a0ab6 Add text import guide in codeStyle.md to enhance code style import 2020-06-17 10:09:45 +08:00
杨翊 SionYang 7c4cca4360 Add code style file for Idea and checkstyle file for option (#3082) 2020-06-16 20:16:58 +08:00
aikin b7c7ee00b9 update codestyle java guideline link 2019-07-04 22:15:34 +08:00
xingxuechao 91d20f34fd nacos is coming 2018-07-21 00:27:23 +08:00