예제 #1
0
        public PreOccurence MakeDefect(AnalysisConfig config, Checker checker, CSharpSyntaxNode raw)
        {
            var          lineSpan = raw.GetLocation().GetLineSpan();
            PreOccurence preOcc   = DexterCRCUtil.MakePreOccurence(raw, lineSpan, checker, config, CheckerName, Description);

            return(preOcc);
        }
예제 #2
0
 public bool CheckEventNaming(string className, string baseName)
 {
     return(DexterCRCUtil.HasSuffix(baseName, DexterCRCUtil.EVENT_CLASS_SUFFIX) &&
            !DexterCRCUtil.HasSuffix(className, DexterCRCUtil.EVENT_CLASS_SUFFIX));
 }
예제 #3
0
        public bool HasDefect(object value)
        {
            var namingSet = (NamingSet)value;

            return(!DexterCRCUtil.HasSuffix(namingSet.currentName, namingSet.basicWord));
        }
예제 #4
0
 public bool CheckAttributeNaming(string className, string baseName)
 {
     return(DexterCRCUtil.HasSuffix(baseName, DexterCRCUtil.ATTRIBUTE_CLASS_SUFFIX) &&
            !DexterCRCUtil.HasSuffix(className, DexterCRCUtil.ATTRIBUTE_CLASS_SUFFIX));
 }