-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Efferent coupling of types #711
Efferent coupling of types #711
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently this metric calculates the number of aggregated types for each type. Shouldn't inheritance or e.g. function parameter types be considered as well? (Question, should be discussed.)
@@ -1,4 +1,5 @@ | |||
#include <cppmetricsparser/cppmetricsparser.h> | |||
#include "efferent.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect inclusion order. Please refer to the coding conventions.
@@ -8,6 +8,7 @@ include_directories( | |||
${PLUGIN_DIR}/model/include) | |||
|
|||
add_library(cxxmetricsparser SHARED | |||
src/efferent.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
efferent.h
should also be added here, so CMake can recognize that in case the header file changes, recompilation of the target is required.
…g to the cpp metrics service.
I complemented the calculation with inherited types, member function parameter types and member function local variable types, aside from the already calculated member field types. |
This PR solves #673. I'd like to include multiple related tasks, hence the WIP label.
Refactoring of the C++ metrics plugin: organize metrics calculating functions into separate source files.Should be separate PR.
Test cases for efferent coupling.