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); }
public bool CheckEventNaming(string className, string baseName) { return(DexterCRCUtil.HasSuffix(baseName, DexterCRCUtil.EVENT_CLASS_SUFFIX) && !DexterCRCUtil.HasSuffix(className, DexterCRCUtil.EVENT_CLASS_SUFFIX)); }
public bool HasDefect(object value) { var namingSet = (NamingSet)value; return(!DexterCRCUtil.HasSuffix(namingSet.currentName, namingSet.basicWord)); }
public bool CheckAttributeNaming(string className, string baseName) { return(DexterCRCUtil.HasSuffix(baseName, DexterCRCUtil.ATTRIBUTE_CLASS_SUFFIX) && !DexterCRCUtil.HasSuffix(className, DexterCRCUtil.ATTRIBUTE_CLASS_SUFFIX)); }