Commit Graph

700 Commits

Author SHA1 Message Date
Bas Leijdekkers
62e1ecfb2e RegExp Search/Replace inspections: skip file type check if specified file type is <any> (IDEA-310662)
GitOrigin-RevId: 2bfa472a53e1cea065ad8f296743fa41e1bcdd38
2023-01-16 19:16:58 +00:00
Bas Leijdekkers
6ca53cec71 RegExp Search/Replace inspections: vfile is needed for string/comment filtering (IDEA-310665)
GitOrigin-RevId: 68c775570950c6472633d66a7b4280f50728deda
2023-01-16 19:16:57 +00:00
Bas Leijdekkers
1c2ba45599 RegExp Search/Replace inspection: minor optimization when no patterns specified
GitOrigin-RevId: 07442333808bce5d7b6ea6e3cb4f66306792854b
2023-01-16 19:16:55 +00:00
Bas Leijdekkers
2e64a53439 RegExp Search/Replace inspection: don't present fix when none is specified
GitOrigin-RevId: e67011097a48b312ff928f7f25c96e657ec201dc
2023-01-16 19:16:54 +00:00
Bas Leijdekkers
7ffb08b57d RegExp: highlight matching groups on gaining focus (not only on caret movement)
GitOrigin-RevId: 142074a24941b91c51b49710f4de04dcaab21312
2023-01-09 20:19:37 +00:00
Bas Leijdekkers
b0651337f9 RegExp: fall back to Java regex evaluation if JS is not available (IDEA-261269)
GitOrigin-RevId: 7997dfe4a0f74d4a304285a3c1e0b17585e5649d
2023-01-04 18:44:11 +00:00
Bas Leijdekkers
3e69177c43 RegExp: cleanup
GitOrigin-RevId: a3248e8d9c497faea40a3e00a78a4dc2aa504e4d
2023-01-04 18:44:09 +00:00
Alexey Kudravtsev
e82fbad633 performance: avoid annotating the same element twice
GitOrigin-RevId: b92094c8e247fc9ec48a165e5a163cd181048705
2022-12-21 14:07:41 +00:00
Alexey Kudravtsev
de4903662c injections: reduce visibility of shred impl
GitOrigin-RevId: 59924f923bafc0a0638ed623a78a8e5f27edbba9
2022-12-16 16:51:18 +00:00
Tagir Valeev
394fd38cb5 [inspections] Automatically convert createOptionsPanel() to getOptionsPane() in simple cases
GitOrigin-RevId: 8377376db858deac58eead81e92b286c1b099e10
2022-12-10 17:06:42 +00:00
Louis Vignier
18559d76c5 fixup! [regexp] Delete 'Open RegExp Dialog' action
GitOrigin-RevId: ca33cd5e887cc105a7d766b1d97da8b63d26781e
2022-11-30 12:48:34 +00:00
Louis Vignier
7fc8884fd4 [regexp] Delete 'Open RegExp Dialog' action
GitOrigin-RevId: fb4b1b88a2087cb175b2b50677d6bcc9206b5251
2022-11-30 01:53:24 +00:00
Louis Vignier
839640ae3c [regexp] Custom RegExp inspections
Co-authored-by: Louis Vignier <louis.vignier@jetbrains.com>
Co-authored-by: Bas Leijdekkers <bas@jetbrains.com>

GitOrigin-RevId: 025ad2acefe111b0e8d2111446a8190d6d28b965
2022-11-24 14:42:03 +00:00
Alexey Kudravtsev
a2192e09d5 cleanup
GitOrigin-RevId: fe9ee62f2f76c4b183515c6332a911858869044e
2022-11-23 13:38:55 +00:00
Alexandr Evstigneev
4ec1884774 IDEA-301618 allow descendants to remove the method from implementation
Binary compatible change, according to JLS 13.5.7 (jse17)

IJ-CR-97908

GitOrigin-RevId: 80f6dda292d500303467092966237ddb3d5a1eac
2022-11-19 07:59:37 +00:00
Andy Magee
a89ecd6615 [IDEA-301618] Indicate if an escaped character is in a class
GitOrigin-RevId: 114a8389adb9d0a64692b47573e886df6d379801
2022-10-05 19:06:26 +00:00
Bas Leijdekkers
80e45ca73f avoid unnecessary unicode escape warnings
GitOrigin-RevId: fc6a3de26e047c646fa068a220356a9ebd20150c
2022-10-01 14:21:20 +00:00
Bas Leijdekkers
64750c55f5 regexp: minor lexer cleanup
GitOrigin-RevId: b3f6dd8f723077be1efc6aa634800cceb01b76da
2022-09-30 13:04:53 +00:00
Tagir Valeev
adb060863f Text blocks used
GitOrigin-RevId: 7db538c0a10131a3f946436c85b42fe7d7dc5b10
2022-09-29 12:58:29 +00:00
Tagir Valeev
0577e2f137 Text blocks used in production code
GitOrigin-RevId: f9f5c027037972fd02aa6d3e262bb175e2b676b3
2022-09-27 11:30:34 +00:00
Tagir Valeev
bddacd6ba6 Enhanced switch used
GitOrigin-RevId: b9a7d5074c4eb10c87bae5c7703b9671eb0f1aff
2022-09-21 10:52:22 +00:00
Filippova Maria
6132796321 WI-60369 make support of pcre numbered group calling a part of RegExpBackRefImpl
GitOrigin-RevId: e4369e5e8c60c2a061152c9df82434d5ad4ede84
2022-08-22 20:45:07 +00:00
Anna Kozlova
0b76685106 [regexp] mark as injectable
GitOrigin-RevId: 814f00a56c01fd0c9006b5e01e9fce991607892b
2022-08-18 13:00:00 +00:00
Bas Leijdekkers
94dbcba6d2 RegExp: don't warn about non-capturing group when it's empty (WEB-56936)
GitOrigin-RevId: 2ec8e8568e9ba85d31b17a3976ca1f5fd684b071
2022-08-15 10:39:52 +00:00
Filippova Maria
97d8633e65 WI-60779 do not parse a pattern in case of PCRE conditional group
GitOrigin-RevId: 692dc842d5700ae1a150a8b90a55b2a660965e4d
2022-08-12 16:05:30 +00:00
Filippova Maria
55d8c82e32 WI-60779 parse DEFINE and VERSION.. PCRE conditions separately
GitOrigin-RevId: 0a444d7cf63edebe6ac76458dc2e53fe2edce846
2022-08-12 16:05:26 +00:00
Filippova Maria
2d28eed303 WI-60779 highlight as error if DEFINE subpattern contains more than two branches
GitOrigin-RevId: 8af565f6438654c11285be1a24a709e40869fb40
2022-08-12 16:05:23 +00:00
Filippova Maria
2a0ffa17ff WI-60369 Support an ability to call a PCRE numbered group
GitOrigin-RevId: b58439eda68ea2df047c54330a0c6fe3bbc7946b
2022-08-12 16:05:19 +00:00
Filippova Maria
a58330a1c1 WI-60779 Support PCRE "pseudo" conditions DEFINE and VERSION as conditions in conditional groups.
GitOrigin-RevId: bdf83d81e0235826d7980739025f90581bc4222c
2022-08-10 14:38:31 +00:00
Roman Shevchenko
f3c1d03868 [project] openjdk.java.net ➜ openjdk.org
(updating direct links and issue navigation templates)

GitOrigin-RevId: 4e3ee1bdd3e620f2ca57533977cedde18377857f
2022-06-27 09:51:10 +00:00
Bas Leijdekkers
06371a4042 RegExp: don't store localized strings in static fields
GitOrigin-RevId: a3a97f4757ae900e32e9dcc94e8c5ce56f5da747
2022-06-01 18:30:16 +00:00
Bas Leijdekkers
be71678b09 RegExp: don't suggests simplifying replacements that are not equivalent in Unicode mode (IDEA-290490)
GitOrigin-RevId: cb85ddaee91cb6ff13596603e10fce7a55eac07c
2022-05-29 13:35:38 +00:00
Bas Leijdekkers
d213a56e85 RegExp: allow special syntax if host cannot be found (IDEA-206558)
GitOrigin-RevId: 202281b3b3c9ba3308d5823f0cc26eaa49d4657f
2022-05-29 13:35:36 +00:00
Filippova Maria
2c437d113e IDEA-294612 RegExpRedundantClassElementInspection: NPE
GitOrigin-RevId: 5dfe5cc81eae9d10202455a4d686273f92b65a82
2022-05-24 12:08:36 +00:00
Filippova Maria
677bd7e889 IDEA-292945 New Inspection: \d is redundant with \w in the same class (\D with \W)
GitOrigin-RevId: 7c2e57a4e3bf8a61e08bf326460576766f851a98
2022-05-17 22:24:30 +00:00
Filippova Maria
2e233dc327 WI-66552 Do not simplify posix brackets as single element in regExp class
GitOrigin-RevId: a1901d6048dfd8acb12dffdc1bf5dda1a725edb5
2022-05-13 09:07:36 +00:00
Aleksandra Zolushkina
afd1eb158f RegExp: fix redundant escape sequences in regex inspection description
GitOrigin-RevId: 4e77f547ed1b66a18f467939bde95fbb02553673
2022-04-07 06:04:26 +00:00
Tagir Valeev
38bfebaa23 Unnecessary fully-qualified names removed
GitOrigin-RevId: 903dbd15b9f5c307d2e17747a86d5eeecaff144a
2022-02-16 09:35:23 +00:00
Alexey Kudravtsev
306d067698 remove incorrect @Nullable from getIcon() to avoid multiple "returning not null from nullable method" false positives
GitOrigin-RevId: f6db4092c037f563b2b19e909fed325e46af4ebe
2022-01-31 13:45:48 +00:00
Bas Leijdekkers
302652189a RegExp: prevent AssertionError on Kotlin string literal with not escaped dollar sign (IDEA-287344, EA-254442)
GitOrigin-RevId: 285f5e77e66a5bb25b05686d0427c9fe56ffe416
2022-01-31 10:13:06 +00:00
azhebel
e5628b9860 IJPF-CR-4193 Proofread Simplifiable expression inspection
GitOrigin-RevId: 0c44cb0eb0e732f1642e84871117f0c6ebb9e6b4
2022-01-27 09:09:29 +00:00
azhebel
b284808a02 IJPF-CR-3976 Proofread Redundant escape sequences in regex inspection
GitOrigin-RevId: aa2ba61338b6488bf8d3cdde82294d7d00867a43
2022-01-25 23:56:24 +00:00
Bas Leijdekkers
03e2858a7f RegExp: really fix order of evaluation in Checker (IDEA-255232)
GitOrigin-RevId: 954f19914ae46b7af3a184a09c5d8dc3988ea12f
2022-01-13 20:26:33 +00:00
Bas Leijdekkers
ee79e974c1 RegExp: don't grow text fields too much (IDEA-273991)
GitOrigin-RevId: c158461209d7835397960f1c1d6d004279dd94ed
2022-01-13 20:26:29 +00:00
Bas Leijdekkers
ce078dac32 RegExp: new "Regular expression can be simplified" inspection (IDEA-286122)
Supersedes the "Asterisk closure can be collapsed to plus closure" inspection which was only available in PhpStorm

GitOrigin-RevId: a63c6fce88b3700cc521e8b113069a4b2b50a3e4
2022-01-13 20:26:25 +00:00
Tagir Valeev
8e8b5bd370 [regexp] RegExpCompletionTest: support Java 17
GitOrigin-RevId: 37430326885f30c6fd4f77d95a30fa0a4a75b0d4
2022-01-12 11:16:35 +00:00
Nikolay Chashnikov
886f10d721 [regexp] cleanup: remove old standalone project configuration files and build scripts
They don't work anyway.

GitOrigin-RevId: f5b3e44a952d5c3a58d92b70109b24fa6f0afbdf
2021-12-30 14:29:30 +00:00
Bas Leijdekkers
6fecec667a RegExp: more clear error message
GitOrigin-RevId: aa6b5d2de81037f7291867c314dbdc1b5cd9549e
2021-12-20 10:55:11 +00:00
Bas Leijdekkers
ccc210eeb2 RegExp: don't report \{ as redundant escape and add option to not report \} and \] (IDEA-243874, WEB-54046, PY-47380)
GitOrigin-RevId: 1ce7073269aaa2a1cd843765f97820bca8155747
2021-12-20 10:55:08 +00:00
Bas Leijdekkers
4a7760e002 RegExp: new "Suspicious back reference" inspection (IDEA-265242)
GitOrigin-RevId: 45e50a07ed61263c502a7e4fedcc15376b49095f
2021-12-07 12:07:26 +00:00