Commit e26eca1
authored
SONARPY-892 Rule S6002 Regex lookahead assertions should not be contradictory (SonarSource#965)
1 parent e1ef98e commit e26eca1Copy full SHA for e26eca1
File tree
Expand file treeCollapse file tree
7 files changed
+122
-0
lines changedOpen diff view settings
Filter options
- python-checks/src
- main
- java/org/sonar/python/checks
- regex
- resources/org/sonar/l10n/py/rules/python
- test
- java/org/sonar/python/checks/regex
- resources/checks/regex
Expand file treeCollapse file tree
7 files changed
+122
-0
lines changedOpen diff view settings
Collapse file
python-checks/src/main/java/org/sonar/python/checks/CheckList.java
Copy file name to clipboardExpand all lines: python-checks/src/main/java/org/sonar/python/checks/CheckList.java+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
| 54 | + |
54 | 55 | |
55 | 56 | |
56 | 57 | |
| ||
215 | 216 | |
216 | 217 | |
217 | 218 | |
| 219 | + |
218 | 220 | |
219 | 221 | |
220 | 222 | |
|
Collapse file
python-checks/src/main/java/org/sonar/python/checks/regex/RegexLookaheadCheck.java
Copy file name to clipboard+34Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
Collapse file
python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S6002.html
Copy file name to clipboard+15Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
Collapse file
python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S6002.json
Copy file name to clipboard+17Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
Collapse file
python-checks/src/main/resources/org/sonar/l10n/py/rules/python/Sonar_way_profile.json
Copy file name to clipboardExpand all lines: python-checks/src/main/resources/org/sonar/l10n/py/rules/python/Sonar_way_profile.json+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
138 | 138 | |
139 | 139 | |
140 | 140 | |
| 141 | + |
141 | 142 | |
142 | 143 | |
143 | 144 | |
Collapse file
python-checks/src/test/java/org/sonar/python/checks/regex/RegexLookaheadCheckTest.java
Copy file name to clipboard+31Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
Collapse file
python-checks/src/test/resources/checks/regex/regexLookaheadCheck.py
Copy file name to clipboard+22Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
0 commit comments