Skip to content

Commit c53f577

Browse files
committed
Avoid filtering comments in lint mode. Fixes #186
1 parent b53f947 commit c53f577

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = function (indexes, options, callback) {
8484
try {
8585
callback(null,
8686
filterAccess(
87-
options.private ? [] : undefined,
87+
(options.private || options.lint) ? [] : undefined,
8888
hierarchy(
8989
inputs
9090
.filter(filterJS)

test/fixture/lint/lint.input.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22
* @param {String} foo bar
33
* @memberof notfound
44
*/
5+
6+
/**
7+
* @param {String} baz bar
8+
* @private
9+
*/

test/fixture/lint/lint.output.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
1:1 warning could not determine @name for hierarchy
2+
1:1 warning could not determine @name for hierarchy
23
2:1 warning type String found, string is standard
34
3:1 warning @memberof reference to notfound not found
5+
7:1 warning type String found, string is standard
46

5-
3 warnings
7+
5 warnings

0 commit comments

Comments
 (0)