This module is the detailed implementation of mechanism that checks (document links of) error code in logger invocations.
- Error code extraction. ('All Error Codes' in screenshot)
- Link testing of document of error codes. ('Error codes which document links are not reachable' in screenshot)
- Hint of logger method invocations which don't use error code. ('Illegal logger method invocations' in screenshot)
- Automatic checking in GitHub Actions. (Currently it does not throw exception. It will upload result to artifacts in GitHub Actions.)
-
Prerequisite (Run before execution)
(a) Clone Apache Dubbo's source code.
(b) Executemvn -DskipTests clean install
to compile the entire project. -
Method 1
Change directory to dubbo-error-code-inspector and execute
mvn exec:java -Ddubbo.eci.path=<Path to Dubbo Source>
. -
Method 2
(a) Change directory to
dubbo-error-code-inspector
and executemvn package
.
(b) In thetarget
directory, executejava -jar dubbo-error-code-inspector-1.0.0-SNAPSHOT.jar <Path to Dubbo Source>
Legacy PR: apache/dubbo#10663
PR about GitHub Actions configuration: apache/dubbo#10680
PR about 'Another Changes' in apache/dubbo#10663: apache/dubbo#10678