Apache Commons Lang
Goals & Controls

Intro
  • Controls enable you to set alarms for any of the Sokrates metrics. An alarm is defined with a desired range and tolerance.
Learn more...
Keep the system simple and easy to change
Aim at keeping the system size modest (less than 200,000 LOC is good), duplication low (less than 5% is good), files small (no files longer than 1000 LOC is good), and units simple (no units with more than 25 decision points is good).
Status Metric Desired Range
[from - to] ±tolerance
Current Value Description
OK LINES_OF_CODE_MAIN [0 - 200000] ±20000 29,951 Total number of lines of main code
FAILED DUPLICATION_PERCENTAGE [0 - 5] ±1 11.38 System duplication
FAILED NUMBER_OF_FILES_FILE_SIZE_1001_PLUS [0 - 0] ±1 4 The number of very large files
FAILED CONDITIONAL_COMPLEXITY_DISTRIBUTION_26_PLUS_COUNT [0 - 0] ±1 3 Number of very complex units