diff --git a/lib/jscs-rules/require-comments-to-include-access.js b/lib/jscs-rules/require-comments-to-include-access.js index 67bb85de647..c0e6c6ca5b0 100644 --- a/lib/jscs-rules/require-comments-to-include-access.js +++ b/lib/jscs-rules/require-comments-to-include-access.js @@ -9,7 +9,7 @@ function isModuleOnlyComment(comment) { } function includesAccessDeclaration(comment) { - return comment.value.match(/\n\s*(@private|@public)\s/); + return comment.value.match(/\n\s*(@private|@public|@protected)\s/); } function RequireCommentsToIncludeAccess() { } @@ -29,7 +29,7 @@ RequireCommentsToIncludeAccess.prototype = { check: function(file, errors) { file.iterateTokensByType('Block', function(comment) { if (isDocComment(comment) && !isModuleOnlyComment(comment) && !includesAccessDeclaration(comment)) { - errors.add('You must supply `@public` or `@private` for block comments.', comment.loc.end); + errors.add('You must supply `@public`, `@private`, or `@protected` for block comments.', comment.loc.end); } }); }