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
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
Bart van Helvert
a106f72138
[jvm] Change logging inspection test data to adopt KotlinStringTemplateUPolyadicExpression
...
#KTIJ-27448
GitOrigin-RevId: 580823f3d28aa4c2f80ac0a2d8d23e7f30474185
2023-12-08 10:59:35 +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
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
Mikhail Pyltsin
dea129dd78
[uast-inspections] IDEA-324304 "String template as argument to logging call" where the argument is an exception
...
GitOrigin-RevId: fdba04156f50430ce2b78bdc2dce82a8ccb09a53
2023-07-14 16:14:46 +00:00
Mikhail Pyltsin
525f0b3737
[java-inspections] IDEA-271540 support configuration without annotations
...
GitOrigin-RevId: e9222258457e8cb18e62684b1fc6e4499126d15b
2023-06-09 20:45:23 +00:00
Mikhail Pyltsin
230662f4db
[java-inspections] IDEA-321902 support loop for TaintAnalyzer
...
GitOrigin-RevId: d31d9f304f2d364fec5fb73dfbfdcf934a858243
2023-06-07 12:18:45 +00:00
Mikhail Pyltsin
cb5c4e6c21
[java-inspections] IDEA-271540 Get rid of reading outside files
...
GitOrigin-RevId: f4f050d70dd90e1185c7cb46dba4fb12b7a0f2ba
2023-05-29 13:37:14 +00:00
Mikhail Pyltsin
093c7887c4
[java-inspections] IDEA-271540 fix tests
...
GitOrigin-RevId: 61cf311514002058d81a1b6e0016660e355be985
2023-05-09 16:51:53 +00:00
Mikhail Pyltsin
0fde0c0521
[java-inspections] IDEA-271540 general improvements for tainted analysis
...
GitOrigin-RevId: b6b84c387f260a3de7615ddff6d8ac1072849bcf
2023-05-09 13:35:42 +00:00
Mikhail Pyltsin
4edcb035e7
[java-inspections] IDEA-282916 Improve tainted analysis, support local methods
...
GitOrigin-RevId: 27871a7bbab9f093863d110711f7bb67c9b09fd9
2023-05-05 16:37:52 +00:00
Mikhail Pyltsin
8579ca0616
[java-inspections] IDEA-318681, IDEA-318678, IDEA-318677, IDEA-318676 Improve tainted analysis
...
GitOrigin-RevId: 93ef8d87e4dadd2b5cbfcc16b91610503df95664
2023-05-05 16:37:48 +00:00
Mikhail Pyltsin
699b5fd32c
[java-inspections] IDEA-318601, IDEA-283813 improve MarkAsSafeFix
...
GitOrigin-RevId: 49cdeaab2f3e856dd18e08064e0b715396ff7793
2023-04-25 11:16:36 +00:00
Bart van Helvert
cc8661c04b
[jvm] Migrate UnstableApiInspection tests to JvmInspectionTests API
...
GitOrigin-RevId: c5016bc1991720d45400ef89eb4eae955cb4fa86
2023-04-06 11:09:21 +00:00
Bart van Helvert
e1569053b2
[jvm] Use hinted visitor adapter in MustAlreadyBeRemovedApiInspection
...
GitOrigin-RevId: 188b2ca5b693dd8713971c76265b05a73f2a5afc
2023-03-29 14:05:50 +00:00
Bart van Helvert
d4c43b6aca
[jvm] Take extracting call into account while checking assertEquals types
...
IDEA-311934 Fixed
GitOrigin-RevId: c856b24a687e8e5aab4c68621510f3f56c22c688
2023-02-21 20:32:19 +00:00
Tagir Valeev
50f2f5e439
[java-inspections] UnstableApiUsageInspection: preserve deprecation fix if available
...
Fixes IDEA-312028 Quick-fix to replace deprecated API with alternative doesn't work if API is marked with @ScheduledForRemoval
GitOrigin-RevId: b6f0bdada85685f84da56a328d5fa3f41e833772
2023-02-16 15:05:23 +00:00
Mikhail Pyltsin
009300fc21
[jvm-inspections] IDEA-310343 Patterns as arguments for logging
...
GitOrigin-RevId: 95c45d47447b70188c9d2b869923ff12e2b5898d
2023-01-25 16:48:24 +00:00
Mikhail Pyltsin
e1803d1e64
[jvm-inspections] IDEA-310343 Patterns as arguments for logging
...
GitOrigin-RevId: 1cd24345ff2dc8b3892c8b4347c85ae51aa6017c
2023-01-23 18:01:33 +00:00
Bart van Helvert
029674a658
[jvm] Improve test failed line tests
...
GitOrigin-RevId: c9e1ea42ada52ddefab05dd054177720c44f8e76
2023-01-14 14:43:30 +00:00
Olga Klisho
24f3296304
[java] (IDEA-292972) fix of Malformed parameterized tests inspection with parameterized collections
...
GitOrigin-RevId: 331515798801d4ec644654b7531e4b919bbeebd9
2022-04-30 00:23:35 +00:00
Olga Klisho
3df6e23751
[java] (IDEA-282971) AssertEqualsBetweenInconvertibleTypesInspection rewritten to UAST
...
(cherry picked from commit 3e96d0baadfb6dc6ccb950d8652c8a1094a0f493)
IJ-CR-23780
GitOrigin-RevId: c200c6e7d8093e9df6c8935366e204d2ae2d653d
2022-04-29 12:49:07 +00:00
Bart van Helvert
9b5f50fe8b
[jvm] KTIJ-21579 Introduce 'Make static' fix for Kotlin JVM API
...
GitOrigin-RevId: b4d09587a5fdb777bf3f10831985c1b6204ac197
2022-04-19 19:04:02 +00:00
Bart van Helvert
2869e6f219
[jvm] JUnit spelling fixes
...
GitOrigin-RevId: 5d006f3a2f47e385926d6bfc96e8c2a9d5da8c1b
2022-04-15 12:55:44 +00:00
Anna Kozlova
11c6289e63
[java] redundant requires: move to uast to take kotlin into account (IDEA-195821)
...
GitOrigin-RevId: 7712cfec0bf27cc4dc15999829fd4fc2c4279da8
2022-04-06 21:15:10 +00:00
Bart van Helvert
13cd01b4f8
[jvm] Move JUnit inspections to jvm module
...
Refactors JUnit inspections by moving them to the JVM module and putting them in the `Jvm Languages/Test frameworks` group path.
GitOrigin-RevId: 261325aeee56c7de6c39413c6bb76b7be0fb8727
2022-04-02 10:58:27 +00:00
Bart van Helvert
6f567952cd
[jvm] Remove UAST call matcher API
...
Replaces usages with CallMatcher API.
GitOrigin-RevId: 26ea3df0834cf0c208288fd54a2c49abb8e87563
2022-03-24 13:54:06 +00:00
Bart van Helvert
0d054dca47
[jvm] Refactor JUnit 5 converter test
...
GitOrigin-RevId: c6c226a85e8a03c98389e18bb4281759ed3f0968
2022-03-22 13:06:40 +00:00
Bart van Helvert
8d5104dc4a
[jvm] Refactor JUnit assertions converter test
...
GitOrigin-RevId: 0991d17d86b9a531ac787333e3c01985076d9175
2022-03-22 13:06:37 +00:00
Bart van Helvert
43f283d606
[jvm] Refactor JUnit rule tests
...
GitOrigin-RevId: 4ee6cca502dd99ddfdafc31318a56b5d402ef19d
2022-03-14 14:48:28 +00:00
Artemiy Sartakov
1745c22fce
SourceToSinkFlowInspection: support for kotlin property auto generated accessors (IDEA-282918)
...
GitOrigin-RevId: 818a39dcdd4988f8ad2294c3487f9f88f6e3fa7b
2021-12-03 06:41:33 +00:00
Artemiy Sartakov
83c934c331
SourceToSinkFlowInspection: support for if expression in kotlin (IDEA-282918)
...
GitOrigin-RevId: fe989e2feb4df19a6922134c879a6e2d3166fb7a
2021-12-03 06:41:30 +00:00
Bart van Helvert
604876328c
[jvm] Fix Kotlin source to sink flow test
...
GitOrigin-RevId: 13ae01d6d5d957dc2438bf951c6ffe5de3b3f548
2021-11-18 19:39:17 +00:00
Bart van Helvert
f234756946
[jvm] Merge test data and test for test only inspection
...
GitOrigin-RevId: 04432d7df1e5bd905b1acf64fac71547788245d6
2021-10-28 10:48:20 +00:00
Bart van Helvert
9e41c51f56
[jvm] Make SerializableHasSerialVersionUidFieldInspection tests text based
...
GitOrigin-RevId: c7152db8b1b6c6a3fb8181db0d69ea5549ddd4ce
2021-08-23 17:35:23 +00:00
Bart van Helvert
81c6d6078c
[jvm] IDEA-207232 Add SerializableHasSerialVersionUidField Kotlin QF
...
GitOrigin-RevId: f112acd03903a718fe749d2eded93fc7e8c3b084
2021-08-23 17:35:18 +00:00
Artemiy Sartakov
f6986efbcc
SourceToSinkFlowInspection: added local inference
...
1. local inference for methods
2. fix to mark variables as safe
3. fixed error message in case when tainted value returned from untainted method
GitOrigin-RevId: 2398b6c10883616a505d2443543528e6cc96e9dc
2021-08-18 09:46:16 +00:00
Bart van Helvert
baee78808e
[jvm] Fix unstableApiUsage Kotlin tests
...
GitOrigin-RevId: a150eca65401473cff0cd7e76fa22a9e2a68ee4d
2021-08-16 17:27:52 +00:00
Bart van Helvert
1f208e63e2
[jvm] Fix scheduledForRemoval Kotlin tests
...
GitOrigin-RevId: 68977271e9dd17a90d5d4ba0d51d236a1afdaffe
2021-08-16 17:27:51 +00:00
Bart van Helvert
f676921032
[jvm] Fix overrideOnly Kotlin tests
...
GitOrigin-RevId: 6d08c00caba1b661e800344de688d744308bfb18
2021-08-16 17:27:49 +00:00
Bart van Helvert
53e7c03568
[jvm] IDEA-207232 Migrate "Serializable class without 'serialVersionUID'" to UAST
...
Quickfix does not work in Kotlin yet.
GitOrigin-RevId: 400f0cd6e410a8e323aef72ddb1e70cf98d8e796
2021-08-16 13:56:51 +00:00
Bart van Helvert
bceb99a5f1
[jvm] Ignore calls to super in ThreadRunInspection
...
GitOrigin-RevId: e79d56472118c453c0a2aca4e44a24111750ada4
2021-08-12 10:24:55 +00:00
Bart van Helvert
c2bb202092
[jvm] IDEA-274018 Migrate "ThreadRunInspection" to UAST
...
GitOrigin-RevId: 7fa2409aefa3718c76f6104ae950a3484b79c322
2021-08-11 09:15:32 +00:00
Bart van Helvert
db7e4cb2ec
[jvm] IDEA-269740 TestOnlyInspection add test for use-site targets
...
GitOrigin-RevId: fabc6ddc59d0c14d2c91722cd3dc9f26c21757a6
2021-08-05 16:51:18 +00:00
Bart van Helvert
72379c315e
[jvm] IDEA-271571 Don't highlight @TestOnly usages in doc
...
GitOrigin-RevId: e9011bbb9d881333316563cde008af0e4ab0d954
2021-08-03 14:34:40 +00:00
Bart van Helvert
402eec8632
[jvm] IDEA-262698 Convert JUnit conversion inspections to UAST
...
Converts JUnit5AssertionsConverter and JUnit5Converter to UAST.
GitOrigin-RevId: 3c3cd6d7b23585e8ae9acc331aebc2ba8f8c5039
2021-08-03 12:28:25 +00:00
Artemiy Sartakov
4c26f710ff
SourceToSinkFlowInspection: cr fixes (IJ-CR-10092):
...
1. RestrictionInfoBuilder -> RestrictionInfoFactory
2. removed redundant extends from wildcards for RestrictionInfoFactory
3. specified package for Untainted annotation in description
4. replaced 'sink' with 'safe method' in inspection descriptions
5. TaintValue#getName -> TaintValue#getAnnotationName
6. formatting
GitOrigin-RevId: d87b8aa8b39653fa18bb96efe8cd90db81764b56
2021-06-23 09:27:39 +00:00
Artemiy Sartakov
403e0956f1
SourceToSinkFlowInspection: added inspection to detect unsafe flows from source to sink (IDEA-271540)
...
GitOrigin-RevId: af964bc79c2625794c4ad53159368bb0849d727e
2021-06-15 06:33:15 +00:00