Commit Graph

748 Commits

Author SHA1 Message Date
Bas Leijdekkers
c0aed296b7 RegExp: no replacement highlighting for custom regex inspections (IJPL-162098)
GitOrigin-RevId: 4b9fc47472d280f461208a780c9b7ae0faca12eb
2024-09-12 09:51:53 +00:00
Bas Leijdekkers
955e1cb438 RegExp: fix saving of custom regex inspection after pattern changes (IJPL-17570)
GitOrigin-RevId: 65bffa97d4c49b5a87814f224fcdd231f9fb09bc
2024-09-12 09:51:53 +00:00
Tagir Valeev
be91af43bb [surrounder] Surrounder.surroundElements: remove declared unchecked exception (unnecessary and rarely thrown anyway)
GitOrigin-RevId: c8122acc2c3ee0d2bf78c70efb5525c54020fe70
2024-06-20 12:13:06 +00:00
Tagir Valeev
440654c48f Pattern variable can be used fixes; other warning fixes
GitOrigin-RevId: 49f37e7f5d748be50ee66fdf66a5c9b98b1b7432
2024-06-18 19:55:23 +00:00
Alexey Kudravtsev
ddf9b3da94 assertion: Language constructor must be non-public to avoid creating Language duplicates + test
GitOrigin-RevId: eb6954f444bf64bbc1d47b419af5e4db6fadf07e
2024-04-24 14:06:20 +00:00
Alexey Kudravtsev
dfc5db43aa optimization: filter inspection by language more correct in tests
Provide correct EP for inspection tools even with inconsistent tool.getShortName() and shortName="" in plugin.xml.
That allows obtaining correct tool.getLanguage(), and avoid running irrelevant inspections.
E.g. CheckDtdRef inspection doesn't run in java-only tests anymore.

GitOrigin-RevId: 188e9d55686ca084611c5c89cb899874dd078010
2024-02-25 04:22:20 +01:00
Pavel Porvatov
d7501d8111 [Kotlin UI DSL] Removed usage of deprecated API
GitOrigin-RevId: bd6e6e30b1d59e47983f017232afd6c3b099a0bd
2024-02-20 22:35:00 +00:00
Louis Vignier
9bb4157e09 [codeInspection.ui] Rename ActionToRegister to ProfilePanelAction
IJ-CR-123493

GitOrigin-RevId: 32081af4a5148b038ce72c7273f325b6f394d8e8
2024-02-01 09:50:38 +00:00
Louis Vignier
c431475c6e [codeInspection.ui] Don't register custom inspection actions in ActionManager
#IDEA-340285 Fixed

GitOrigin-RevId: ff5089a6f5200963dbe447f58618f72753f710ec
2023-12-18 23:19:52 +00:00
Louis Vignier
44c3fa1d67 [codeInspection] Use a record in place of Pair<@NotNull ActionGroup, @NotNull String>
IJ-CR-117041

GitOrigin-RevId: f6b4b6c5a1e4bb60b09c8f0acdf8bc9b5197e2b9
2023-12-07 16:52:39 +00:00
Evgenii Im
d8fde48aa6 [qodana] QD-7190 Update info, only Java | Security/Serialization issues/Probable bugs, Spring | Security
GitOrigin-RevId: 1cabd2e606bef39c2d628c28ad2f8b89a8d3adf1
2023-11-15 19:34:56 +00:00
Evgenii Im
c0cf5b8817 [qodana] QD-7190 Add metaInformation with CWE ids for inspections in qodana recommended for jvm
GitOrigin-RevId: e396b50fd419043446474fe0bccb39c501636730
2023-11-15 19:34:53 +00:00
Bas Leijdekkers
de38ffbad9 Show inspection profile name in the title when adding or editing custom inspection
GitOrigin-RevId: 0c44686658bd8b5ae3c34672fca983f63f38ad93
2023-11-15 18:28:28 +00:00
Alexandr Evstigneev
7d28c0e200 IDEA-337778 Added telemetry for regexp file lexing and parsing
GitOrigin-RevId: 36c68cc540a5a4185777a7c6d1fb039e0ba01db4
2023-11-12 14:29:15 +00:00
Louis Vignier
ff764c7aad [codeInspection.ui] Delete RegExpAdvertiser#getActions
IJ-CR-117041

GitOrigin-RevId: e4657b48961f96489fcfa6458a70979e029e7563
2023-10-28 14:49:45 +00:00
Louis Vignier
c38cdeb515 [codeInspection.ui] Register InspectionProfileActionProvider#getAddActions in the inspection profile panel
IJ-CR-117041

GitOrigin-RevId: 7075cd66dd8019673dff9542b7c717a5b2b1a4a5
2023-10-28 14:49:30 +00:00
Bas Leijdekkers
68f89d5af4 RegExp: fix inspection dialog replacement label
GitOrigin-RevId: 5e558875ba39e9baf56e99ae6964dbc3dc93d53c
2023-10-27 19:31:29 +00:00
Tagir Valeev
bdf9fbcfd5 [regexp] Regexp plugin quick-fixes converted to ModCommand
GitOrigin-RevId: 9734abefacb311efc2ba9c42008da783e725458e
2023-10-27 18:19:28 +00:00
Louis Vignier
3ce785825d [regexp] Add RegExpAdvertiser
GitOrigin-RevId: b5e2f23b08579044dfc4e79526a5da89340a83ae
2023-10-26 16:47:12 +00:00
Louis Vignier
14259dc0e0 [codeInspection.ui] Decouple custom inspection logic from SSR plugin
#IDEA-335948 Fixed

GitOrigin-RevId: dff86a1b7edb287851590ea5d573362629dd8931
2023-10-26 16:47:09 +00:00
Yuriy Artamonov
c53774e2fc [inspections] IDEA-321711 Use optimized PsiElementVisitor implementations
GitOrigin-RevId: 18ebc32aec877f71cd185ee7072dd139c076e9a3
2023-09-16 15:18:22 +00:00
Bas Leijdekkers
4f0e33fc76 Regexp: fix running RegExpCompletionTest on jbr-21 (IDEA-327368)
GitOrigin-RevId: f969f589399a1c8b8c88cc50871ebd910435a4f0
2023-08-25 14:52:16 +00:00
Pavel Porvatov
edbf3b5222 [Kotlin UI DSL] Moving API into common platform place
GitOrigin-RevId: d1140b983c8944f3f768e1ab9ade93e31bb5dfa7
2023-08-18 10:51:27 +00:00
Piotr Tomiak
1d3e210cc4 LexerTestCase: add missing @NotNull annotations to improve interoperability with Kotlin
GitOrigin-RevId: e98b6523585f4659687abca687c8b42618dfd8bc
2023-07-13 10:11:07 +00:00
Bas Leijdekkers
71ebca1309 RegExp: remove redundant ObjectUtils.tryCast() call
GitOrigin-RevId: e1763e01ea638c5864ae2bba18d12453db4730b3
2023-06-26 16:29:00 +00:00
Alexey Belkov
c6138e8d67 Apply Kotlin inspection "Redundant semicolon"
GitOrigin-RevId: e97056ead03cff412fc10cee0d5fa2d4cc7dde30
2023-06-13 13:58:20 +00:00
Daniil Ovchinnikov
97f0a7fd3b migrate usages of ModalityState.NON_MODAL to ModalityState.nonModal
GitOrigin-RevId: fb4855bfa90dbf384fed24871e4b28ab803847bb
2023-06-09 21:58:50 +00:00
Bas Leijdekkers
112d27a018 RegExp: fix disposable already disposed problem (IDEA-320966, EA-848158)
GitOrigin-RevId: 18664e962952cecd56b12d4238baaf940e501e65
2023-05-25 13:56:09 +00:00
Vladimir Krivosheev
27028c3aa6 get rid of createDisposable
GitOrigin-RevId: 14e43ccef1179ae0436e63622be1a030375430d4
2023-05-16 10:33:14 +00:00
Vladimir Krivosheev
227d75a1fc don't extend DynamicBundle
GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
2023-05-05 09:46:42 +00:00
Vladimir Krivosheev
5754420093 remove deprecated ComponentManager.getPicoContainer
GitOrigin-RevId: bd40e0f4255fcdc014c2591cf3a93b6015ed26ff
2023-05-04 19:20:56 +00:00
Bas Leijdekkers
6352170061 Editing of Custom RegExp inspection should happen on a copy (IDEA-318426)
so that changes are not applied when cancelled

GitOrigin-RevId: b1b975edc24c5f452adb58b6ab1cff2b50ac5ed3
2023-04-20 11:48:02 +00:00
Bas Leijdekkers
3b7ea8c076 Allow user defined inspections to be cleanup inspections (IDEA-299455)
GitOrigin-RevId: 58616c5699a80f60b3fdbfcfaa2c88162112adad
2023-04-20 11:47:52 +00:00
Bas Leijdekkers
90833452bc Move InspectionMetaDataDialog to reusable location
GitOrigin-RevId: bc72757ec4a2763e252cb87862d3d11e5b69551a
2023-04-18 17:58:34 +00:00
Bas Leijdekkers
02b517002d Make custom RegExp inspection meta data dialog more generic to make it reusable
GitOrigin-RevId: 174520233d03405c5693ba3e1017e027cffa3cbe
2023-04-18 17:58:31 +00:00
Aydar Mukhametzyanov
86b9816655 IDEA-315372 Fix Gaps usages mixed with unscaled values
For example, mixed with SpacingConfiguration properties

GitOrigin-RevId: 2011306fb345e941396f2f007034b39d6c4119ab
2023-03-16 20:21:51 +00:00
Alexandr Evstigneev
2271eb1907 IDEA-313615 upgrade JFlex to 1.9.1
GitOrigin-RevId: 72933159ba8a1ae68d39a39a52be46214bb497c5
2023-03-11 11:18:03 +00:00
Alex Plate
350d635ff3 Update remaining usages of TreeSpeedSearch
GitOrigin-RevId: 87636623fa98b57d1c90425537ed1be10cfac883
2023-03-01 19:28:32 +00:00
Alexandr Evstigneev
2dc83a5165 IDEA-313615 Migration to jflex 1.9.0 [regen]
The only lexer not updated is ObjectiveC, because it is using hacky manual patching, see CPP-27237

IJ-CR-103186

GitOrigin-RevId: baf62050f2c4f3f7345c5553cb6b60bca3935ab8
2023-02-24 17:20:31 +00:00
Tagir Valeev
0892646cb9 Enhanced switch used
GitOrigin-RevId: cf148ceb6c09ad0a00d05475b55113ab36c7a0ac
2023-02-09 11:21:32 +00:00
Maria Filippova
61df548950 WI-62707 don't run inspection 'Duplicated char inside character class' when concatenated string can't be fully evaluated
GitOrigin-RevId: 7c7a1598996bc84511b79ed8e51ad0d24aaad339
2023-02-07 17:29:51 +00:00
Tagir Valeev
f456ed0604 Pattern variable can be used mass cleanup
GitOrigin-RevId: 55839bf0deca5f81d0f7eb5b1c190145a5ea0037
2023-02-07 13:58:20 +00:00
Bas Leijdekkers
7aa80aa0f3 RegExp: more reliable and safe serialization of inspections
GitOrigin-RevId: e3abe8b57986b72747f34e5cb31fae7227cece40
2023-01-23 19:28:17 +00:00
Bas Leijdekkers
6eb6d14019 RegExp: do not allow adding inspection with an existing name
GitOrigin-RevId: 63bf6ccc189cac5bd81c7b4f9eb7876f932b37de
2023-01-23 19:28:16 +00:00
Bas Leijdekkers
a344209553 RegExp: surround rendered regex with gray slashes
GitOrigin-RevId: eb1514d8bf84e1a4c0f459a3b9bc9fdf02a0dc93
2023-01-23 19:28:15 +00:00
Bas Leijdekkers
51b7d597cf RegExp: don't fail on parsing if file ends after a high surrogate character (EA-352432)
GitOrigin-RevId: ed171446eafcb6419e200d4317ce8f141a667d7c
2023-01-23 12:39:23 +00:00
Yuriy Artamonov
f464d039d4 [regexp] IDEA-311133 CheckRegExpForm class loaded without real need on first file opening
GitOrigin-RevId: aeb595ff5ad2cea63d6c3cfe9587194d3c22d31d
2023-01-21 22:06:02 +00:00
Nikolay Chashnikov
2cc08b84bd cleanup: remove redundant '@author' tags from javadoc comments - 13
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: 6b7b3f016410df7452da2bdf99ae16f505fb21c9
2023-01-18 17:02:07 +00:00
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