From eccacb00021347cbd38deed7f75e1eef9c0fb1ee Mon Sep 17 00:00:00 2001 From: Masataka Kuwabara Date: Fri, 2 Dec 2016 11:00:55 +0900 Subject: [PATCH] Add missing link to TooManyPublicMethods rule in the rules document --- src/site/rst/rules/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/src/site/rst/rules/index.rst b/src/site/rst/rules/index.rst index 7805bd872..276356236 100644 --- a/src/site/rst/rules/index.rst +++ b/src/site/rst/rules/index.rst @@ -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