Bart van Helvert
ebd72b26b4
[jvm] Add documentation JVM test API
...
GitOrigin-RevId: a05f30bea33866ef770cc6db081c7ec7426fd083
2024-02-12 14:16:23 +00:00
Tagir Valeev
340c4d40ba
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
JavaFeature.isAvailable moved to PsiUtil, as we cannot get PsiElement language level inside frontback-api module
GitOrigin-RevId: 8092b1f55f0d90af5bc570f2fb49cdf9ef94485a
2024-02-08 10:07:48 +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
d0d82eba52
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Declare new features: SERIAL_ANNOTATION, NESTMATES, ALWAYS_STRICTFP, COLLECTION_FACTORIES, INNER_NOT_CAPTURE_THIS, STRING_SWITCH
Use more features instead of explicit Java levels
GitOrigin-RevId: e90a96501c218ed44faebb7c882770b50477b6e1
2024-02-08 10:07:38 +00:00
Tagir Valeev
87c2a93f10
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Remove JavaFeature.isFeatureSupported() in favor of isAvailable()
Rename getLevel() into getMinimumLevel()
Avoid use of getMinimumLevel() where possible
Javadocs
GitOrigin-RevId: 4354821d8cfcf88cc1c3830b0e3cb3f221a5c122
2024-02-08 10:07:33 +00:00
Tagir Valeev
a7674dca70
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Create JavaLanguageFeature; move HighlightingFeature functionality there; move preview highlighting related utilities to new PreviewFeatureUtil class
GitOrigin-RevId: 116bcc9feb6fb40a0bd6a25ba10c2f35b41ffea6
2024-02-08 10:07:12 +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
Mikhail Pyltsin
5033bf919e
[java-console] EA-1054212 Support for dumb mode and edt thread in ClassLoggingConsoleFilterProvider
...
- use platform dumb mode notification
- add support for COMMON_LOGGING_MAVEN
GitOrigin-RevId: fc032001197ff5a132f2b7300111c8ef8845dc65
2024-02-07 15:47:33 +00:00
Mikhail Pyltsin
e74f3b9a68
[java-console] EA-1054212 Support for dumb mode and edt thread in ClassLoggingConsoleFilterProvider
...
- this filter is not supposed to be used on edt thread, because usually it calls from `com.intellij.execution.impl.ConsoleViewImpl.updatePredefinedFiltersLater`
GitOrigin-RevId: 1f7bc9549c458a3df5065b3fe5bc1940a279985a
2024-02-07 11:37:58 +00:00
Bart van Helvert
05a82a0f47
[jvm] Set SDK in JvmSdkInspectionTestBase
...
GitOrigin-RevId: 79158e96a0ec0fa9bc6dba7357d5eb3a44354bc8
2024-02-05 18:25:32 +00:00
Mikhail Pyltsin
b76d998616
[java-console] IJ-CR-125130 IDEA-344708 JVM Log navigation doesn't support nested classes
...
- reformat tests
GitOrigin-RevId: 2234cfe824796383a04a66a457b34e0eb421b4e0
2024-02-05 17:45:34 +00:00
Mikhail Pyltsin
a6c3ae7d9d
[java-console] IJ-CR-125130 IDEA-344708 JVM Log navigation doesn't support nested classes
...
- fix tests
- more tests
GitOrigin-RevId: 61d37ef812c1dd7558d5ec8324717dd207c76345
2024-02-02 15:48:41 +00:00
Mikhail Pyltsin
888a48604c
[java-console] IDEA-344708 JVM Log navigation doesn't support nested classes
...
- support local classes
GitOrigin-RevId: 93ecd046a980980e4a25d8b2e76f72b684bb0a26
2024-02-01 17:22:37 +00:00
Mikhail Pyltsin
fd0e68a470
[java-console] IDEA-344708 JVM Log navigation doesn't support nested classes
...
- support double nested classes
GitOrigin-RevId: 169c1c30bc895a838bdedd941d6397fe6de5c0ef
2024-01-31 23:06:53 +00:00
Mikhail Pyltsin
199e367dbd
[java-console] IDEA-344708 JVM Log navigation doesn't support nested classes
...
GitOrigin-RevId: 80c2c932b4630df848b7ff897a1ac50c988b8bcc
2024-01-31 18:39:52 +00:00
Mikhail Pyltsin
7c346df4f3
IJ-CR-123098 [java-console] IDEA-331307 Provide navigation for logs for jvm languages
...
- change comments
GitOrigin-RevId: 5b5269dd752a8aa74998673c99eebadbfae6dbbf
2024-01-31 10:40:37 +00:00
Tagir Valeev
0ceb02ac9a
[jvm-inspections] Move Java test data for EmptyMethodInspection to JVM module; suppression top-level test
...
GitOrigin-RevId: 645e9ea69d7d2c81d65bfe73d6e74dc30c4e22e6
2024-01-30 11:13:43 +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
c6e9c60193
IJ-CR-123098 [java-console] IDEA-331307 Provide navigation for logs for jvm languages
...
- resolve only on links
- reuse `codePointAt`
GitOrigin-RevId: 207034ef37fe94d4cbb6bbe5e3f68c7ce8c0cbdd
2024-01-29 19:41:43 +00:00
Mikhail Pyltsin
9408f6ef14
[java-inspections] IDEA-343899 Similar logs inspection
...
- strict rules for exceptions and additional info
GitOrigin-RevId: 6ca5ca3c64660ed14b3dbc8d9a48ca4c588615a0
2024-01-24 12:12:57 +00:00
Bart van Helvert
89f227b778
[jvm] Don't show SerializableHasSerialVersionUidField fix when not available
...
#EA-950149 Fixed
GitOrigin-RevId: 82e08c62fd5048fd401093e9aa2c81e31562f1ca
2024-01-23 20:38:11 +00:00
Mikhail Pyltsin
c2dc877367
[java-console] IJ-CR-123098 IDEA-331307 Provide navigation for logs for jvm languages
...
- use codePointAt
GitOrigin-RevId: 06ff666ef06d016fe63dd885a63b4b363cd4cd49
2024-01-23 18:36:21 +00:00
Mikhail Pyltsin
4425d1e7b6
[java-console] IJ-CR-123098 IDEA-331307 Provide navigation for logs for jvm languages
...
- use codePointAt
GitOrigin-RevId: 73d99e4609a501583c6f1be447452d99f508f398
2024-01-23 17:18:59 +00:00
Mikhail Pyltsin
a257de686c
[java-inspections] IDEA-331308 Similar logs inspection
...
- check for modules
GitOrigin-RevId: f47d904cb04cc8aaa1b24982a1ede22d3b5bb3b3
2024-01-22 20:07:26 +00:00
Mikhail Pyltsin
e50079fc6b
[java-console] IJ-CR-123098 IDEA-331307 Provide navigation for logs for jvm languages
...
- less allocations
- comments
GitOrigin-RevId: 02fed5473324e7a6414e2ae5a3d34f082ecf10ab
2024-01-19 20:57:44 +00:00
Mikhail Pyltsin
359319c752
[uast-inspection] IDEA-343298 LoggingSimilarMessageInspection should skip empty messages
...
- skip messages with calls
GitOrigin-RevId: e90c1d14ce4f267af3b8907113aa8dda0bf41028
2024-01-18 20:12:49 +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
caeb4b6152
[java-inspections] IJ-CR-123360 IDEA-331308 Similar logs inspection
...
- disable for LoggingPlaceholderCountMatchesArgumentCountInspection
GitOrigin-RevId: c4f87c595008f2e3f3f71594d59c1e5fb3482b1d
2024-01-15 22:12:07 +00:00
Mikhail Pyltsin
0240e1aa2b
[uast-inspections] IJ-CR-123411 IDEA-338588 'string template as argument to logging call' does not catch lines where string is split
...
- fixes after code-review
GitOrigin-RevId: 45b87761d4f67c158fde27c41d8a1421862c60c9
2024-01-13 15:38:46 +00:00
Mikhail Pyltsin
1d4518e357
[java-console] IJ-CR-123098 IDEA-331307 Provide navigation for logs for jvm languages
...
- add read access
GitOrigin-RevId: a8b016dd4680de21b2e36a45cbb45e8d21ed0876
2024-01-13 15:38:40 +00:00
Mikhail Pyltsin
1f6272bff4
[java-inspections] IJ-CR-123360 IDEA-331308 Similar logs inspection
...
- extract some methods
GitOrigin-RevId: b73b6dc6ec6e3424ec31b7f869e47daa9cba429a
2024-01-12 20:45:59 +00:00
Mikhail Pyltsin
5ec234f93c
[java-inspections] IJ-CR-123360 IDEA-331308 Similar logs inspection
...
- IDEA log supports
GitOrigin-RevId: 1458e26aa0baee621340d2ba8cfd88af019e28bc
2024-01-10 13:50:01 +00:00
Mikhail Pyltsin
a552cad2f3
[java-console] IJ-CR-123098 IDEA-331307 Provide navigation for logs for jvm languages
...
- support for shortened logs
GitOrigin-RevId: ac81a1f2297b4706b0d018da47d23a855f4e5bb1
2024-01-10 13:49:54 +00:00
Mikhail Pyltsin
6959a361c2
[java-inspections] IJ-CR-123360 IDEA-331308 Similar logs inspection
...
- added several tests
- fixes after code review
- IDEA log supports
GitOrigin-RevId: de60fa8083b8883c98ba73b0c9741e51dbcb491a
2024-01-10 13:49:46 +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
6680c59ece
[java-inspections] IDEA-331308 Similar logs inspection
...
- not register problem several times
GitOrigin-RevId: f5d432ef20c869cb55aaf7b48d8149196fe2ba4c
2024-01-08 18:01:01 +00:00
Mikhail Pyltsin
4a921ed81b
[uast-inspections] IDEA-338588 'string template as argument to logging call' does not catch lines where string is split
...
- process concatenated StringTemplate
GitOrigin-RevId: ce6b636f24fd62709d804eafc38626bd02642928
2024-01-08 18:00:54 +00:00
Mikhail Pyltsin
190e78d5a9
[java-inspections] IDEA-331308 Similar logs inspection
...
- improvements for description
GitOrigin-RevId: 398f0b8d14cde188be322f36eafda5f07e4d514f
2024-01-08 11:12:12 +00:00
Mikhail Pyltsin
8efd59f2ec
[java-inspections] IDEA-331308 Similar logs inspection
...
GitOrigin-RevId: 33b43026b651dfee14eaa91e978c0c0c2b793ba2
2024-01-08 11:12:08 +00:00
Bart van Helvert
3a5d36c5f7
[jvm] Add test case for Java API usage inspection
...
Adds another test case for when a method has a certain since version but its super method has a lower since version.
GitOrigin-RevId: 5962a0f2d4549b6729fe7c303798bc04b575e5c5
2024-01-05 20:01:46 +00:00
Mikhail Pyltsin
14bcae690d
[java-console] IDEA-331307 Provide navigation for logs for jvm languages
...
- enable by default
GitOrigin-RevId: b1d65de94ff044b58fe6c0d8c8c327f74243b6cf
2024-01-04 12:02:38 +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
98238af2c8
[junit] Move JVM inspection descriptions to JUnit plugin
...
GitOrigin-RevId: 5b9ae09caa46458619063abf81e074033b97ee57
2023-12-29 13:51:51 +00:00
Bart van Helvert
271d362d14
[junit] Move Java JUnit inspections into JUnit plugin
...
#IDEA-341929 Fixed
GitOrigin-RevId: 7dd42203f64380382b3d39c77a409fe652b09941
2023-12-28 23:17:28 +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
a1720d6cb9
[uast] Add comment visitor
...
GitOrigin-RevId: 6e2f6992f504e0c92214c771afbc14d38046a216
2023-12-14 14:04:06 +00:00
Bart van Helvert
316a5db6c8
[jvm] Remove unnecessary extension point for annotation suppressions
...
The extension point was used to run logic for various suppression annotations. Instead of running different logic based on the language, we can run the same logic for all languages. #IDEA-337709
GitOrigin-RevId: 7c51e3774d8d0c5232d37b817d1086ba4ebdda57
2023-12-14 14:04:06 +00:00
Bart van Helvert
627cdfebf7
[jvm] Support attribute value flattening for UAnnotation
...
GitOrigin-RevId: 04775375668219d372f194cf2cd9a036ac0f4d75
2023-12-13 03:15:29 +00:00