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>
* optimize: update checkStyle version
* optimize: update checkStyle version
* optimize: update checkStyle version
* optimize: update checkStyle version
* 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.