-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ewen0930
committed
Mar 30, 2017
1 parent
a6236f4
commit 00e75fe
Showing
133 changed files
with
18,681 additions
and
16,708 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Manifest-Version: 1.0 | ||
Ant-Version: Apache Ant 1.9.4 | ||
Created-By: 1.8.0_112-release-408-b2 (JetBrains s.r.o) | ||
Created-By: 1.8.0_112-release-736-b13 (JetBrains s.r.o) | ||
|
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
8 changes: 8 additions & 0 deletions
8
resources_en/inspectionDescriptions/DuplicateAlternationBranch.html
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,8 @@ | ||
<html> | ||
<body> | ||
Reports duplicate branches in a RegExp alternation. For example <code>(a|b|a)</code>. | ||
Duplicate branches slow down matching and obscure the intent of the code. | ||
<!-- tooltip end --> | ||
<p><small>New in 2017.1</small> | ||
</body> | ||
</html> |
12 changes: 12 additions & 0 deletions
12
resources_en/inspectionDescriptions/EscapedMetaCharacter.html
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,12 @@ | ||
<html> | ||
<body> | ||
Reports the escaped meta characters, e.g. <b><code>\.</code></b>. | ||
Some RegExp coding styles specify that meta characters should be placed inside a character class, | ||
to make the regular expression easier to understand. | ||
For example the regex <b><code>\d+\.\d+</code></b> would be written as <code>\d+[.]\d+</code>. | ||
This inspection does not warn about the meta character <b><code>[</code></b>, <b><code>]</code></b> and <b><code>^</code></b>, | ||
because those would need additional escaping inside a character class. | ||
<!-- tooltip end --> | ||
<p><small>New in 2017.1</small> | ||
</body> | ||
</html> |
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,8 @@ | ||
<html> | ||
<body> | ||
Reports octal escapes, which are easily confused with back references. | ||
Use hexadecimal escapes to avoid confusion. | ||
<!-- tooltip end --> | ||
<p><small>New in 2017.1</small> | ||
</body> | ||
</html> |
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,14 @@ | ||
<html> | ||
<body> | ||
Reports exponential backtracking in a RegExp, which can lead to extremely slow matching. | ||
Exponential backtracking can happen when a single string can be matched in multiple ways, leading to exponential runtime. | ||
Exponential backtracking is also known as Regular Expression Denial of Service (ReDoS), catastrophic backtracking, explosive quantifiers | ||
and exponential matching. | ||
This inspection only detects a limited form of exponential backtracking, | ||
so the absence of a warning is not a guarantee the pattern does not contain a exponential backtracking problem. | ||
|
||
<!-- tooltip end --> | ||
<p> | ||
<small>New in 2017.1</small> | ||
</body> | ||
</html> |
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,10 @@ | ||
<html> | ||
<body> | ||
Reports multiple consecutive spaces in a RegExp. | ||
Because spaces are not visible by default, it can be hard to see how many spaces are required. | ||
The RegExp can be made more clear by replacing the consecutive spaces with a single space and a counted quantifier. | ||
<!-- tooltip end --> | ||
<p> | ||
<small>New in 2017.1</small> | ||
</body> | ||
</html> |
9 changes: 9 additions & 0 deletions
9
resources_en/inspectionDescriptions/SingleCharAlternation.html
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,9 @@ | ||
<html> | ||
<body> | ||
Reports single char alternation (<b><code>a|b|c|d</code></b>) in a RegExp. | ||
It is simpler and significantly faster to use a character class (<b><code>[abcd]</code></b>) instead. | ||
<!-- tooltip end --> | ||
<p> | ||
<small>New in 2017.1</small> | ||
</body> | ||
</html> |
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
Oops, something went wrong.