Vladimir Krivosheev
b935234c91
IJ-MR-162467 don't export intellij.platform.projectModel
...
GitOrigin-RevId: 11c0bf5ca0f3a6d892658a2b149d85cace9aa2b8
2025-06-14 13:00:48 +00:00
Vladimir Krivosheev
ef0323d07c
IJ-MR-162467 don't export intellij.platform.core
...
GitOrigin-RevId: 05f350c1c087be1bf9b46d8bdac5345a65f55958
2025-06-13 21:52:48 +00:00
Bart van Helvert
d942ea174c
[jvm] Fix RefMethodImpl hasBody check for Kotlin accessors
...
#KTIJ-34354 Fixed
GitOrigin-RevId: 926aab275ad24453f34287cccfe6d9621bf57aee
2025-06-09 20:00:17 +00:00
Jinseong Jeon
b4352ad4f8
UAST: introduce UField.sourceAnnotations
...
and apply it to existing inspections that rely on annotations on
property w/o use-sites (which technically don't belong to UField). #KTIJ-33663
GitOrigin-RevId: 2ff1de00976104ae33beed0b71e544354c7de606
2025-06-09 20:00:17 +00:00
Jinseong Jeon
8e4ffb351b
KT UAST: fix UField modeling of annotation that belongs to \$annotations
...
Only `FIELD` or `PROPERTY_DELEGATE_FIELD` use-site targets are
applicable to fields. Also annotations whose meta-annotation targets
include `FIELD`, but not `PROPERTY`, e.g., @JvmField or
@ScheduledForRemoval
It is not trivial to figure out meta-annotation at UAST level (as it
will trigger expensive resolution). Instead, similar to KotlinUMethod
(where functions and property accessors need similar use-site
computation), we piggy-back on LC's use-site computation.
^KTIJ-33663 fixed
GitOrigin-RevId: 92b95b5ce6d27436d13d92bf40df40c861f884c6
2025-06-09 20:00:17 +00:00
Vladimir Krivosheev
65fe061584
IJ-MR-162467 don't export intellij.platform.analysis
...
GitOrigin-RevId: fcbcb68010b58cb507fee2c47473758b999e471b
2025-06-04 11:16:33 +00:00
Vladimir Krivosheev
fbc9805e89
IJ-MR-162467 don't export intellij.platform.jps.model
...
GitOrigin-RevId: ebaebc90d514e5f3046fe2b973647da4bf156625
2025-05-14 18:10:23 +00:00
Vladimir Krivosheev
7cf9ef2b29
update bazel files
...
GitOrigin-RevId: e78f86bd17affd7892fd1af8e157f033906b1865
2025-05-09 15:36:06 +00:00
Vladimir Krivosheev
644a6b2e81
IJ-MR-162467 don't export intellij.platform.editor.ui
...
GitOrigin-RevId: 8894abe16fb347de7649bfb2d7888b6e6fe0232c
2025-05-09 14:20:40 +00:00
Vladimir Krivosheev
6f8ff07ccc
simplify bazel labels (another step towards using simple names that reflect directory structure)
...
GitOrigin-RevId: 12bfb2d0fa315d87c7a4ade363d0f834cf324b71
2025-05-08 16:58:30 +00:00
Mikhail Pyltsin
38eea8c4fc
[uast-inspections] IDEA-367844 Log inspection doesn't support {} in constant if constant and log are in different classes
...
- resolve references
GitOrigin-RevId: 874571723262565b0969719234506d8e65872725
2025-04-22 13:56:18 +00:00
Bart van Helvert
de515abc33
[jvm] Move automatic test method renamer into internal test framework
...
Also migrates the test to NIO.
GitOrigin-RevId: 5bc36c3527a8bdccdef9abe16207e6f89262459a
2025-04-16 15:46:47 +00:00
Bartek Pacia
0a80fecf2c
[jvm-inspections] fix inconsistencies between OverrideOnlyApiInspection and NonExtendableApiInspection
...
Follow up to made comments in IJ-MR-156853 after it was already merged to master.
Merge-request: IJ-MR-157747
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: 3b4ec6551c0d18f79eeff51954850327538fbeab
2025-03-14 20:25:12 +00:00
Bartek Pacia
06445fb75e
[jvm-inspections] Highlight more improper usages of @ApiStatus.OverrideOnly
...
#IDEA-368649 fixed
Merge-request: IJ-MR-156853
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: 610defac3e82e7d46c4e2554257825ae7fdf8915
2025-03-13 15:29:46 +00:00
Bartek Pacia
1a09a243dc
[jvm-inspections] Highlight improper usages of @ApiStatus.NonExtendable
...
resolve #IDEA-368647
Merge-request: IJ-MR-156895
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: 22125cec784675045f4141a01a1c954eed199476
2025-03-12 15:53:28 +00:00
Bartek Pacia
101ec81418
[jvm-inspections] Highlight improper usage of @ApiStatus.OverrideOnly
...
#IDEA-367313 fixed
Merge-request: IJ-MR-155973
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com >
GitOrigin-RevId: cdaed6390cfede7196f6be28c6e04854e208e72e
2025-02-26 13:18:25 +00:00
Bart van Helvert
69ddce69ae
[java] Ignore static and final methods in OverrideOnlyInspection
...
#IDEA-367314 Fixed
GitOrigin-RevId: 418750107648323fe36a75c492d05a9e499268b2
2025-02-11 00:47:20 +00:00
Johannes Spangenberg
6c7da7b25a
IDEA-367007 Exclude static methods from @OverrideOnly
...
GitOrigin-RevId: 0f67f91edf0558fcab0be98927e0828872ec21d4
2025-02-11 00:47:19 +00:00
Vladimir Krivosheev
56d22a6b8d
don't export intellij.xml.psi - update bazel files
...
GitOrigin-RevId: d32c1dbb965bf356ea3d948cf0ed68727da0b463
2025-01-19 17:03:43 +00:00
Vladimir Krivosheev
4453c70b07
don't export intellij.xml.psi
...
GitOrigin-RevId: 0186a8f9f878122dbb297ca06f64fa7fd4b2e579
2025-01-18 21:21:04 +00:00
Bart van Helvert
3faa2061b9
[jvm] Fix test case without test inspections for mixed languages
...
#KTIJ-32612 Fixed
GitOrigin-RevId: 587db2eca8838a28518939356bedeed52671d43d
2025-01-02 11:56:57 +00:00
Vladimir Krivosheev
0bc1cf1557
update bazel files
...
GitOrigin-RevId: 7320d3eff3aba093692ce66839c720ece6d7c4db
2024-12-30 11:28:24 +00:00
Vladimir Krivosheev
2c56b99fd5
do not export intellij.platform.testFramework
...
GitOrigin-RevId: 4c2c86b3ba376268aba04487e363685656fea2e3
2024-12-26 22:08:08 +00:00
Vladimir Krivosheev
2b781b159a
do not export deps blindly (part 5)
...
GitOrigin-RevId: 27b64867fac677b6b8a07ca82c6ab3cf7044db1e
2024-12-24 11:44:44 +00:00
Vladimir Krivosheev
7b4c77396e
do not export deps blindly (part 5)
...
GitOrigin-RevId: 48daba2ea218703ecd0f60b5b12cc813c8802338
2024-12-23 20:43:00 +00:00
Bart van Helvert
7c0d192e04
[kotlin] Fix false positive in test case without tests for sealed class inheritors for K2
...
In K2 sealed classes don't have public constructors. This fix makes it so `isTestClass` check is always delegated towards the Kotlin logic, which allows for skipping the light classes check. `#KTIJ-32588 Fixed
GitOrigin-RevId: 9510b280b731587b2ecd44e22d22d3ce428e01e9
2024-12-23 14:36:35 +00:00
Bart van Helvert
0e75de5369
[kotlin] Fix K2LoggingPlaceholderCountMatchesArgumentCountInspectionLog4J2Test for K2
...
GitOrigin-RevId: f778e476fccb8ff17c8fb790a486948dac525e54
2024-12-20 00:01:11 +00:00
Bart van Helvert
1e828622db
[kotlin] Fix logging similar messages inspection test for K2
...
GitOrigin-RevId: 0768ff14468d17166563d6c7fb008559a8470810
2024-12-20 00:01:11 +00:00
Bart van Helvert
47af905765
[kotlin] Fix marked for removal inspection test
...
GitOrigin-RevId: 398e90556166bc3a7c83b483761994ed3bb39178
2024-12-20 00:01:11 +00:00
Bartek Pacia
6c1568408c
[jvm-inspections] AssertBetweenInconvertibleTypes: update workaround for IDEA-364405
...
Also mute a single false-positive of AssertBetweenInconvertibleTypes (caused by KTIJ-32456)
(cherry picked from commit 96f27a994f3140ba4fc433476b907156c8fa9fbe)
IJ-MR-151556
GitOrigin-RevId: ec3e7bc5fd2e99c56ef81e5ad0e8f00da2c2b140
2024-12-16 18:31:21 +00:00
Vladimir Krivosheev
98799639aa
do not use _test as lib - test targets do not support this
...
GitOrigin-RevId: f2f49db4294b6a64040dbbd5f1d95e972cbd70a3
2024-12-15 18:32:30 +00:00
Bartek Pacia
7a385958c9
[jvm-analysis] IDEA-364405 small fix for AssertEqualsBetweenInconvertibleTypes
...
Update this inspection to handle AssertJ with Kotlin value classes.
fix #IDEA-364405
(cherry picked from commit 609be028ef94a4aec5aa050fa9282088d33fb8c0)
IJ-MR-151072
GitOrigin-RevId: c75263d7b934d02821c4cf1c61be4733faefe85c
2024-12-10 14:31:58 +00:00
Bartek Pacia
02cb3576cf
[jvm] fix edge case for 'assert equals between inconvertible types' with instances of Kotlin value classes
...
#IDEA-362694 Fixed
(cherry picked from commit 0abfc10798a836bf77c0131871cb5daca2bf6303)
IJ-MR-150993
GitOrigin-RevId: 2509b8d2aa97d157b05eee08e9bbbddc321184f5
2024-12-06 13:27:09 +00:00
Vladimir Krivosheev
17916c90f8
libraries -> lib, resources, opt-in, test deps
...
GitOrigin-RevId: db66ee95dcb0f0553b40c9cc56cd6afed8634cdd
2024-11-27 13:53:42 +00:00
Bart van Helvert
c4b03160fd
[testng] Fix false positive in test case without tests
...
TestNG test cases in Kotlin with all ignored @Test annotations were incorrectly marked as test cases. This also fixes an issue where the gutter icon is shown, even though there are no tests to run. #KTIJ-32167 Fixed
GitOrigin-RevId: 4e378cedd0b5e81c5fdd39f80048a8cd57e273a2
2024-11-22 23:49:49 +00:00
Bartek Pacia
715f8dd9e1
Use (PsiType.equalsToText(JAVA_LANG_VOID) instead of a one-ff isVoid()` extension method
...
(cherry picked from commit 8f6545307fb82439ddd81105d546b8aae39586cf)
IJ-MR-148257
GitOrigin-RevId: ae07ad65d09c3e639d3fae65f25c3b56972a986a
2024-11-07 16:47:08 +00:00
Bartek Pacia
ab2efc39cb
Handle Kotlin Nothing type in assertEquals inspection. #IDEA-361908
...
Prevent false positives by returning early if either type is Kotlin's Nothing type, which resolves to Void in UAST. Added corresponding tests for both Java and Kotlin to ensure accurate detection.
(cherry picked from commit 577118213700aab1cc3eab400b4967784f4169ca)
IJ-MR-148257
GitOrigin-RevId: 3b059e4a1e14a679898603e1bd4de5e6cf90eacc
2024-11-07 16:47:08 +00:00
Bartek Pacia
88aa8a14ef
Re-enable inspection for Kotlin "equals between objects of inconvertible types"
...
- #KTIJ-30462 fix "assertEquals() between objects of inconvertible types" does not work in Kotlin
- add a Kotlin version of all existing Java tests
(cherry picked from commit b4751d600a5514381decd22f7968cee17b109588)
IJ-MR-146934
GitOrigin-RevId: 92392cc262ce440ff13360d576ef15cfbd72bfa4
2024-10-18 09:48:14 +00:00
Bart van Helvert
6e3a46cf36
[jvm] Fix test method without assertions inspection for Kotlin assertions
...
#KTIJ-31326 Fixed
GitOrigin-RevId: bb2cd382795252b986a505405d13419e9269857a
2024-09-14 15:32:51 +00:00
Bart van Helvert
01cfcb6099
[jvm] Fix and enable Java API usage test for K2
...
GitOrigin-RevId: 8420866e4f3b12711825b68fd5cc987143f8d76d
2024-09-14 15:32:51 +00:00
Bart van Helvert
f59622a97b
[jvm] Enable call matcher test
...
GitOrigin-RevId: 6e60b05400606840a6f5070d76284059d000b4cb
2024-09-14 15:32:51 +00:00
Bart van Helvert
c8c478bdbc
[jvm] Properly enable K2 mode for K2 tests
...
Also ignores any failing tests
GitOrigin-RevId: db34ca3d4690285cd7ed4186c76f31e81e7fab46
2024-09-12 10:09:27 +00:00
Bart van Helvert
689dd2e194
[jvm] Extends ExpectedKotlinPluginProvider instead of KotlinPluginProvider
...
GitOrigin-RevId: 282c6cb956cf7d6e14fdf7512e68743963032ee5
2024-09-12 10:09:27 +00:00
Georgii Ustinov
bc8f0bf7c5
[Java. Logging] add tests for logging reference resolver
...
IDEA-357019
GitOrigin-RevId: 2882457613a0c5d0bc55fc2e483de2a27af6df5c
2024-09-09 18:47:39 +00:00
Georgii Ustinov
afa40cc6b8
[Java. Logging] add tests for logging placeholder annotator
...
IDEA-357019
GitOrigin-RevId: 83b43d897241603418cb3a96abba67bb603fba96
2024-08-27 17:21:44 +00:00
Mikhail Pyltsin
b7d3abc522
[uast-inspections] IDEA-357019 Inspection warning 'Number of placeholders do not match number of arguments in logging call' not reported when logger not initialized inline
...
GitOrigin-RevId: e601f8f8c94233af84856b7be2626f71b57325eb
2024-08-15 12:29:18 +00:00
Bart van Helvert
99e28672d9
[jvm] Remove old JUnit 5 test data
...
This test data isn't used by any test.
GitOrigin-RevId: 09f944bfdf3978b89e41d73c4762f8e31e59970e
2024-08-08 16:45:55 +00:00
Bart van Helvert
72b748d5e0
[kotlin] Run Kotlin JVM tests on both K1 and K2 frontend
...
#IDEA-354810 Fixed
(cherry picked from commit d29d3256472dfe368161335732ded20ae95cf34e)
IJ-MR-140910
GitOrigin-RevId: 0a9b3cae7aab473f732012ad91b4e67f97ff8697
2024-08-02 11:11:07 +00:00