Georgii Ustinov
f97041ed4b
[Java. Logging] Fix visibility of LoggingUtil for inspections in JVM module
...
IDEA-342484
GitOrigin-RevId: c491c7a17d39e70995d1bc3c7b6d73d5dae82e33
2024-03-12 16:13:12 +00:00
Bart van Helvert
f896419d92
[jvm] Split JUnit usage provider per framework
...
Will allow for disabling them individually. #IDEA-346510 Fixed
GitOrigin-RevId: 7b879111b92f38a7a55166d67d657520c6d9314d
2024-03-12 01:13:37 +00:00
Mikhail Pyltsin
d4b2f1f75d
[java-inspection] IDEA-337700 Improvements for logging inspections
...
- new inspection LoggingGuardedByConditionInspection
GitOrigin-RevId: 4dc52a70105fb7bdbbf3d6ddbed5db2e6640fd0d
2024-03-08 21:31:58 +00:00
Mikhail Pyltsin
5f382bc662
[java-inspection] IDEA-337700 Improvements for logging inspections
...
- new LogStatementNotGuardedByLogConditionInspection
GitOrigin-RevId: e5cb767b24b33cb450597551dbbf4ece153a81e2
2024-03-07 12:05:26 +00:00
Jinseong Jeon
87949659cd
Showcase wrong unused inspection on callable
...
...that is actually used with class literal
GitOrigin-RevId: 492bee6a5bb61253c81d07b10709fae02b7cadda
2024-02-28 13:40:56 +00:00
Tagir Valeev
cd071eaae4
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Use more JavaFeatures; unify soft keyword processing in JavaLexer and in ForwardCompatibilityInspection
GitOrigin-RevId: f99ac1a35ec4b6b33716b2ace32ee0483f952c54
2024-02-08 10:07:43 +00:00
Tagir Valeev
82deb5011f
[jvm-inspections] KotlinEmptyMethodInspection: moved to JVM category, test superclass updated
...
GitOrigin-RevId: 6f93e40ea1a12bb988ad93f9ad384223122da7bf
2024-02-07 19:29:18 +00:00
Tagir Valeev
0385834f13
[jvm-inspections] Fix EmptyMethod compatibility with Kotlin
...
1. Fix suppression handling for Kotlin in global inspections
2. Fix RefMethodImpl#hasBody for top-level Kotlin functions
3. Move to JVM module
4. Add Kotlin tests
Fixes IDEA-330737 @file:Suppress("EmptyMethod") does not work
GitOrigin-RevId: 83f383e06754f510b6a99e35751263017734bb26
2024-01-29 19:42:30 +00:00
Mikhail Pyltsin
80d07e393f
[uast-inspection] IDEA-343298 LoggingSimilarMessageInspection should skip empty messages
...
- skip messages with calls
GitOrigin-RevId: af793fcd0cfe78f9f5ee1c0b9aa134159a73b9bc
2024-01-18 20:12:45 +00:00
Mikhail Pyltsin
23f1773740
[uast-inspection] IDEA-343298 LoggingSimilarMessageInspection should skip empty messages
...
- skip messages without certain beginnings and ends
GitOrigin-RevId: eb9ef8be4c8629712a0915a539fc7e9dac4c1238
2024-01-17 22:12:41 +00:00
Mikhail Pyltsin
dcc38e5eb7
[uast-inspection] IDEA-331308 Create inspection highlighting non-distinguishable logging sites in a single class
...
- skip error log levels with stacktrace
GitOrigin-RevId: 5662e1f1a5e43fdb371d6597693c0ab875040204
2024-01-17 13:46:03 +00:00
Mikhail Pyltsin
cb7187787c
[uast-inspections] IDEA-134025 Quickfix for "Log condition does not match logging call"
...
GitOrigin-RevId: 9bf9f012525aab45167daf84dd13ebd0a8c135fa
2024-01-08 20:13:25 +00:00
Mikhail Pyltsin
8efd59f2ec
[java-inspections] IDEA-331308 Similar logs inspection
...
GitOrigin-RevId: 33b43026b651dfee14eaa91e978c0c0c2b793ba2
2024-01-08 11:12:08 +00:00
Mikhail Pyltsin
384af015b4
[java-console] IDEA-331307 Provide navigation for logs for jvm languages
...
GitOrigin-RevId: c827937afc1da8cdfe1cc7c1297093df284ecdc8
2024-01-03 12:11:30 +00:00
Bart van Helvert
e43e1dd876
[jvm] Clean up SuppressionAnnotationInspection
...
Improves inspection message and code structure. #IDEA-337709
GitOrigin-RevId: cc1fd2482724ea235a301b770abbcc02d1fcf6cc
2023-12-14 14:04:06 +00:00
Bart van Helvert
58298dd53c
[jvm] Move JUnit inspections into JUnit plugin
...
#IDEA-334017 Fixed
GitOrigin-RevId: 919fb236aeb44c192944eae2bae8da621e5a0e74
2023-12-13 03:15:25 +00:00
Bart van Helvert
566db63b89
[uast] Fix highlighting issues after forcing injection host
...
#KTIJ-27448
GitOrigin-RevId: d88685f6602eac01f087097ce4c13645e210b414
2023-12-08 10:59:35 +00:00
Aleksey Dobrynin
ff17b6dabf
[java, inspection, fix] IDEA-338231
...
- Rename an inspection class
- Add a code example in the documentation
- Support RunWith in interfaces
- Visit classes instead of annotations
GitOrigin-RevId: 2cbbe679fc77e81838cae02a6f4f4242a0e028d5
2023-12-01 11:54:54 +00:00
Karol Lewandowski
ad246cb491
IDEA-337709: Reimplement SuppressionAnnotationInspection to UAST
...
GitOrigin-RevId: 5384975e4786fbc34114065e117f66d930435621
2023-11-27 18:29:28 +00:00
Aleksey Dobrynin
52eece9283
[java, inspection] Detect inherited @RunWith annotation in JUnit 4 (IDEA-338231)
...
GitOrigin-RevId: a1b03ddd5904957286576b281aa97c6947c261e8
2023-11-23 12:15:32 +00:00
Georgii Ustinov
790af0f989
Cancel highlighting for super or delegate call in OverrideOnlyInspection
...
^IDEA-338095 fixed
GitOrigin-RevId: f5b89ee5bd22f5727fcd99109e60222f4a23f4a1
2023-11-21 14:29:41 +00:00
Bart van Helvert
d78141974f
[jvm] Support go to related symbol for method source
...
#IDEA-325969 Fixed
GitOrigin-RevId: 7ae47a6e558b484cf397c7192abf66dc6eebdf22
2023-11-07 20:10:45 +00:00
Bart van Helvert
4e59ec7d32
[jvm] Support storing multiple automatic registered extensions in JUnit malformed inspection
...
#IDEA-312816 Fixed
GitOrigin-RevId: d982956305143719a2e8c1a5b7394d59d43e72fc
2023-11-02 17:37:52 +00:00
Anna Kozlova
be66ff9c01
uast: don't report same parameter value if call doesn't provide argument
...
^KTIJ-27074 fixed
GitOrigin-RevId: 7f707d73e9b5ee087eae7a3c81cfa639eb1dce6c
2023-11-01 16:38:37 +00:00
Georgii Ustinov
26f97f459b
[JUnit] Restrict the visibility of test classes and methods after migrating JUnit4 -> JUnit5
...
Improve 'Migrate to JUnit 5' action ^IDEA-237072 fixed
GitOrigin-RevId: 6bd0f4ccad30aad91b52a02b065c650cd27e4d02
2023-11-01 09:29:33 +00:00
Georgii Ustinov
6233b72cb6
[jvm] Fix false-positive UrlHashCodeInspection
...
Previously, this inspection highlighted the cases like `url.equals(null)` or `url == null`. This commit fixes this behavior
^IDEA-332645 fixed
GitOrigin-RevId: 7448489db08e5bbf75dfc1582788bc1f78f923f2
2023-10-26 15:23:03 +00:00
Bart van Helvert
8377ae5413
[jvm] Move Java SDK tests out of JvmInspectionTestBase
...
GitOrigin-RevId: 0cf4fd08f7a564f3813ad3cd98f8f7d9720afa41
2023-10-23 09:34:05 +00:00
Mikhail Pyltsin
101994d98e
[uast-inspections] IJ-CR-116690 EA-920835 skip invalid types for resolving
...
- process UastErrorType
- add tests
GitOrigin-RevId: 9718ad1103782e94a0b2a9c54bae5a0f101cc984
2023-10-16 14:36:37 +00:00
Bart van Helvert
ba513a4d88
[jvm] Rename shared.testFramework to internal.TestFramework
...
To better highlight that this test framework is for internal usage only. #IDEA-334017
GitOrigin-RevId: c491de2411cdffd6eee3e97a6273982560572f4b
2023-10-11 23:39:50 +00:00
Bart van Helvert
4845f7164a
[jvm] Migrate JVM inspection tests to JDK 21 language and SDK
...
GitOrigin-RevId: 477fad876b95025bb48419f2510d597da6dbc9bd
2023-10-06 21:56:09 +00:00
Bart van Helvert
79bce8459f
[jvm] Split test framework into testBase and testFramework
...
Test bases should only be used in test from jvm-analysis module, the test framework can be shared in multiple modules.
GitOrigin-RevId: cbe47d864eb2c1f3f89189022d76333ed3fe3601
2023-10-06 15:10:52 +00:00
Mikhail Pyltsin
b4c698f763
[uast-inspections] IDEA-333480 support setMessage for slf4j fluent api
...
GitOrigin-RevId: 404bff9bebe88169f44588e209fb3eeba09eaab5
2023-10-02 10:48:06 +00:00
Mikhail Pyltsin
46d30a46d9
[uast-inspection] IDEA-333003 support fluent api for slf4j
...
- now `addArgument` is taken into account and complex cases are skipped
GitOrigin-RevId: acbdd50da7199f24938f76d3a84d0d17857b261e
2023-09-29 11:45:33 +00:00
Georgii Ustinov
883f800574
[Code Analysis. Inspection] IDEA-234302 System.getProperty(str) inspection implementation. Review Refactor
...
GitOrigin-RevId: e793b2306586a3ea6e12691b5d887fe1cf0b2913
2023-09-22 13:59:38 +00:00
Bart van Helvert
7e808906ec
[jvm] Enable remove private test for JUnit inspections
...
#IDEA-319390
GitOrigin-RevId: 5c590474840d682d6452d942965f7dae08b136af
2023-09-22 13:39:47 +00:00
Georgii Ustinov
0382910261
[Code Analysis. Inspection] IDEA-234302 System.getProperty(str) inspection implementation.
...
Call to System.getProperty(str) could be simplified for certain predefined constants. Implementation includes inspection and quickfix.
GitOrigin-RevId: 8b7edf6c4a6849062535ded1c49e733b8fed05a8
2023-09-21 19:51:28 +00:00
Bart van Helvert
7229abad19
[jvm] Enable Kotlin tests for test case without tests inspection
...
Kotlin test framework was fixed and test data was wrong.
GitOrigin-RevId: 20ae6a52de036afcd7101bc72d2493d4015b1ac4
2023-09-11 12:57:55 +00:00
Bart van Helvert
cc61bc25c7
[jvm] Convert TestCaseWithNoTestMethods inspection to JVM
...
#IDEA-331938 Fixed
GitOrigin-RevId: 9ecdc3d6e03d52cb54865067483b4c97e29d3236
2023-09-10 16:39:57 +00:00
Mikhail Pyltsin
b389c297de
[uast-inspections] IDEA-331248 Non-safe string: allow static inter-analysis for taint inference
...
- support if statements during analysis
GitOrigin-RevId: cebd7172ef8964bf557c15662e4b48acb7f48fb0
2023-09-04 19:02:12 +00:00
Lev Serebryakov
5ff20a1b4e
IJPL-53: Add parameter for RunInEdt JUnit5 annotation to take write intent lock. Turn off by default for JUnit5.
...
GitOrigin-RevId: 9093d3828cf88229b3c6a55ad48ccf2d1d201f47
2023-08-30 12:53:14 +00:00
EgorKulikov
00613b9767
[kotlin] merge kt-master to master
...
GitOrigin-RevId: ee9a781cd33d36d8479b20d1e7181e916f7f9cfa
2023-08-11 17:14:41 +00:00
Anna Kozlova
e2d7214918
[kotlin] ensure that UastCallableReferenceExpression preserves receiver expression
...
- uast based visitor in unused declaration should analyse receivers which might contain references to variables/functions/etc
- Currently simple references in receivers are not processed and thus test has false positive
^ KTIJ-23958
- KotlinJavaApiUsageInspectionTest.`test reference in callable reference` doesn't test actual problem because UastVisitorAdapter is used: meaning that psi hierarchy is traversed and converted to uast one-by-one.
GitOrigin-RevId: 01b2c31fe42181c428b2c8767dc18db73bdfd659
2023-08-08 07:37:39 +00:00
Mikhail Pyltsin
c80e4efe26
[java-inspections] IDEA-326706 Filter guards for logs if any of calls are accepted
...
GitOrigin-RevId: 201056e9b3ea856df391fc4aba8d01605cdb053f
2023-08-03 08:52:43 +00:00
Bart van Helvert
ed227e61fe
[jvm] Don't warn about missing nested class annotation when class is abstract or interface
...
#IDEA-326883 Fixed
GitOrigin-RevId: 4a8f9a00934a2b11ad8c4071ac2740f475ec16e9
2023-08-03 00:15:23 +00:00
Bart van Helvert
f7d9e84314
[jvm] Fix false positive when providing multiple args for ExtendWith
...
#IDEA-316605 Fixed
GitOrigin-RevId: 921b6abebe53633a9181135a630ab556ac834ea8
2023-08-02 21:04:01 +00:00
Anna Kozlova
ee5d687203
[uast] [unused declaration] false positive on implicit invoke call on properties (IDEA-295430)
...
GitOrigin-RevId: 3075f11d592ddbe6e076410ae4982a1f30c67eac
2023-07-28 12:59:08 +00:00
Bart van Helvert
27244ec296
[jvm] Consider JUnit version when warning about empty source invalid type
...
#IDEA-322880 Fixed
GitOrigin-RevId: 3c6bef500ded79076ed07b5f741d2525e790a6ee
2023-07-11 22:57:39 +00:00
Bart van Helvert
97f5db9958
[jvm] Fix parameter resolver check on multiple extend annotations
...
#IDEA-324275 Fixed
GitOrigin-RevId: ebdb5ba9ab209243f9fbdbacc85a6759300e7189
2023-07-04 15:13:01 +00:00
Bart van Helvert
0b04ccd639
[jvm] Don't highlight nested test classes with abstract containing class
...
#IDEA-322601 Fixed
GitOrigin-RevId: bc715043bf9e4ba4fca16149a5e51936a51cd806
2023-06-23 17:26:31 +00:00
Bart van Helvert
cf40811d53
[test] Set test inspections to error level
...
Makes test inspections that report code that will give a guaranteed runtime error be at error level by default.
GitOrigin-RevId: 5fd05b4e8e9f9f1f80fa87280eb8166e6dd497f6
2023-06-23 17:26:28 +00:00