Example #1
0
        private void CheckForMultiLineComments(string lineCheck, IComment comment)
        {
            var result = whiteSpaceHelper.CheckWhiteSpaceAroundCharacter(lineCheck, "/*");

            if (result == true)
            {
                comment.AddCodeMarker(WarningId, this, AddSpaceAfterMultiComments, comment);
            }
        }
Example #2
0
        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);
            }
        }
        private void CheckForMultiLineComments(string lineCheck, IComment comment)
        {
            var result = whiteSpaceHelper.CheckWhiteSpaceAroundCharacter(lineCheck, "/*");

            if (result == true)
            {
                comment.AddCodeMarker(WarningId, this, AddSpaceAfterMultiComments, comment);
            }
        }