1 package com.puppycrawl.tools.checkstyle.checks.metrics; 20 21 import com.puppycrawl.tools.checkstyle.api.TokenTypes; 22 23 31 public final class ClassFanOutComplexityCheck extends AbstractClassCouplingCheck 32 { 33 34 private static final int DEFAULT_MAX = 20; 35 36 37 public ClassFanOutComplexityCheck() 38 { 39 super(DEFAULT_MAX); 40 } 41 42 43 public int[] getRequiredTokens() 44 { 45 return new int[] { 46 TokenTypes.PACKAGE_DEF, 47 TokenTypes.CLASS_DEF, 48 TokenTypes.INTERFACE_DEF, 49 TokenTypes.ENUM_DEF, 50 TokenTypes.TYPE, 51 TokenTypes.LITERAL_NEW, 52 TokenTypes.LITERAL_THROWS, 53 TokenTypes.ANNOTATION_DEF, 54 }; 55 } 56 57 58 protected String getLogMessageId() 59 { 60 return "classFanOutComplexity"; 61 } 62 } 63 | Popular Tags |