forked from jshint/jshint
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't generate false positives on /* inside comments.
JSHint used to attempt to detect nested multiline comments but that generated too many false positives: /** * To use bla.js provide path: bla("./*"); */ In addition to that, nested multiline comments will error early no matter what so there is no need for JSHint to warn about them: /* * /* Nested comment */ */ So I just removed that check. References: Closes jshintGH-540 Closes jshintGH-599
- Loading branch information
1 parent
54f17e9
commit 49d3089
Showing
3 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Grunt Task File | ||
* --------------- | ||
* | ||
* Task: logless | ||
* Description: Parses JavaScript files and removes logging statements | ||
* | ||
* Usage: | ||
* | ||
* logless: { | ||
* task: { | ||
* src: ['file1.js', 'file2.js', 'other/stuff/*.js'], | ||
* dest: 'path/to/destination', | ||
* names: ['console', 'alert'], | ||
* strip: 'path/to/remove', | ||
* options: {beautify: true} | ||
* } | ||
* } | ||
* | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters