CSC510 Software Engineering HW4
In this homework, I completed and extended the workshop to calculate the following metrics:
- Per function:
- ParameterCount: The number of parameters for function.
- Returns: The number of return statements in function.
- For File:
- AllConditions: The total number of conditions in file.
- String Usage: How many string literals are used in file.
- PackageComplexity: The number of imports used in file.
- Using multiple visitors:
- SimpleCyclomaticComplexity: The number of if statements/loops + 1.
- MaxMessageChains: The max length of a message chain in a function