Commit Graph

754 Commits

Author SHA1 Message Date
Andrei Iurko
efbebbef0b [qodana] QD-9891 Add reviewed inspections categories and fix json schema validation
GitOrigin-RevId: 7ca2b2fde31a47b41b1940badee13d931bd91102
2024-11-06 14:28:05 +00:00
Andrei Iurko
4111cfc875 [qodana] QD-9891 Add aspects with the highest certainty for inspections
GitOrigin-RevId: 8fad66714287192bd5cbc8396a3d30f1ba139302
2024-10-11 14:49:57 +00:00
Nikolay Chashnikov
3e78ec9042 [plugins] API cleanup: mark deprecated unused API for removal (IJPL-156972)
GitOrigin-RevId: f1b2c24f8eac7cdbc6024323e0849507c70450ec
2024-10-10 23:55:42 +00:00
Vladimir Krivosheev
f88f078dda bazel: update model
GitOrigin-RevId: dcd1f70f9ee2d7f04919b2da0eb725d6c5e54c3d
2024-10-07 12:22:54 +00:00
Vladimir Krivosheev
4a176d4c02 IJ-CR-146078 extract intellij.platform.bootstrap
GitOrigin-RevId: b79efc92829111228e83058e54381d8e02116b6f
2024-10-05 22:01:55 +00:00
Vladimir Krivosheev
a9e7930abe bazel - build lang-impl
GitOrigin-RevId: c4c4dce20bd6e4046644f95f6e7b3f437c51668d
2024-09-27 13:47:17 +00:00
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