TECH DEBT TRIBUNALRefactor the God Class (AuthManager)
00:00Mid · ~45 min
📂 src/main/java/com/legacy/auth
📄AuthManager.java
📄IAuthStrategy.java
📄AuthStrategyFactory.java
📄UserController.javaread-only
AuthManager.java
IAuthStrategy.java
AuthStrategyFactory.java
UserController.java🔒
Loading...
Live Analysis
Cyclomatic ComplexityLIVE
5 / 2 target
Too many branching paths. Delegate to strategies.
ObjectivesPENDING
1 / 3
  • Reduce AuthManager cyclomatic complexity
  • Declare IAuthStrategy as a variable type in AuthManager
  • Remove the original if/else provider chain from AuthManager
Acceptance TestsJUnit 5
/ 42
Submit to run acceptance suite.