private void CheckForMultiLineComments(string lineCheck, IComment comment) { var result = whiteSpaceHelper.CheckWhiteSpaceAroundCharacter(lineCheck, "/*"); if (result == true) { comment.AddCodeMarker(WarningId, this, AddSpaceAfterMultiComments, comment); } }
private void CheckForSingleComments(string lineCheck, IComment comment) { var result = whiteSpaceHelper.CheckWhiteSpaceAroundCharacter(lineCheck, "//"); // var result = this.whiteSpaceHelper.NeedWarningForSingleWhiteSpaceAfterKeyword(lineCheck, "//"); if (result == true) { comment.AddCodeMarker(WarningId2, this, AddSpaceAfterSingleComment, comment); } }
private void CheckForSingleComments(string lineCheck, IComment comment) { var result = whiteSpaceHelper.CheckWhiteSpaceAroundCharacter(lineCheck, "'"); // var result = this.whiteSpaceHelper.NeedWarningForSingleWhiteSpaceAfterKeyword(lineCheck, "//"); if(result == true) { comment.AddCodeMarker(WarningId, this, AddSpaceAfterSingleComment, comment); } }