Skip to content

Commit

Permalink
Merge pull request #418 from pocke/add-missing-link-in-document
Browse files Browse the repository at this point in the history
Add missing link to TooManyPublicMethods rule in the rules document
  • Loading branch information
ravage84 committed Dec 2, 2016
2 parents e71cae1 + eccacb0 commit e00db51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/site/rst/rules/index.rst
Expand Up @@ -40,6 +40,7 @@ Code Size Rules
- `ExcessivePublicCount`__: A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.
- `TooManyFields`__: Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zip fields could instead have one Address field.
- `TooManyMethods`__: A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.
- `TooManyPublicMethods`__: A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.
- `ExcessiveClassComplexity`__: The Weighted Method Count (WMC) of a class is a good indicator of how much time and effort is required to modify and maintain this class. The WMC metric is defined as the sum of complexities of all methods declared in a class. A large number of methods also means that this class has a greater potential impact on derived classes.

__ codesize.html#cyclomaticcomplexity
Expand Down

0 comments on commit e00db51

Please sign in to comment.