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
ee4b8fa0ef
[uast-inspections] IDEA-331248 Non-safe string: allow static inter-analysis for taint inference
...
- added new inner option to check static methods
- configurations for methods and fields are separated
- clarify some comments
GitOrigin-RevId: 9a4287b3b5045d43c88f8d2fb515056fecbc3768
2023-09-01 17:38:36 +00:00
Mikhail Pyltsin
b04e91dc99
[uast-inspections] SourceToSinkFlowInspection
...
- added options to correct max depth of analysis.
GitOrigin-RevId: 9aa6b396bce0873ab8bc97e91109930ba2571729
2023-08-07 15:23:14 +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
Mikhail Pyltsin
aabad19c45
[java-inspections] IDEA-327142 Support not only String for Taint analyzer. Added table
...
GitOrigin-RevId: 8cf47f40490dd82e20e75eaae682ac218f019614
2023-08-02 11:16:43 +00:00
Mikhail Pyltsin
f9a7414857
[java-inspections] IDEA-327142 Support not only String for Taint analyzer
...
GitOrigin-RevId: af27a08d29067d8c02c537e74e86851182ba4266
2023-08-01 15:20:00 +00:00
Mikhail Pyltsin
f79ca70162
IJ-CR-111985 [uast-inspection] IDEA-326309 Process context for unsafe string
...
Narrow visibility scope for taint value context
GitOrigin-RevId: 433ba3ce28840ad344cfe53c8b52df354ae7014e
2023-07-27 10:39:38 +00:00
Mikhail Pyltsin
e67ee5687e
[uast-inspection] IDEA-326309 Process context for unsafe string
...
GitOrigin-RevId: d8caee212e7c3dbb89221bab92d988a001f9406e
2023-07-26 15:10:00 +00:00
Mikhail Pyltsin
2d060a17a9
[uast-inspection] IDEA-326308
...
Add an option to report only unsafe strings from the "Non-safe string is passed to safe method"
GitOrigin-RevId: 5f889b3cc5aaac9f98a6a335da600b0759f56c5c
2023-07-25 19:09:29 +00:00
Bart van Helvert
975be82c24
[jvm] Consider register extensions when checking for parameter resolver context
...
#IDEA-324687 Fixed
GitOrigin-RevId: 830b61dfdda85ff5c7af79d8bbf7a9f9936bc92d
2023-07-14 10:26:45 +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
Tagir Valeev
3a7196c111
[uast-inspections] JavaObsoleteApiUsageInspectionTest: remove false-positive on method references
...
IDEA-323970 Some method references are incorrectly highlighted as 'Obsolete API'
GitOrigin-RevId: 5f44caad2fbc1a598e0e852e7a90d4fb50d8a4ed
2023-07-08 18:05:37 +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
Bart van Helvert
0c29cc71a9
[jvm] Fix doc on JavaApiUsageInspectionWithCustomMockJdkTest
...
GitOrigin-RevId: 84631ed340485fd2a1b6996de3e01d5f00e81c0a
2023-06-22 15:54:47 +00:00
Anna Kozlova
b6f1aecde2
[uast visitor] optimization: convert to uast only while in qualified reference
...
otherwise we might have converted the whole file in the hope to find import statement
GitOrigin-RevId: e1d8d94b190e720509723ac8c082f0cc997c112a
2023-06-14 20:59:15 +00:00
Bart van Helvert
b74b1da1cb
[jvm] Fix false positives on @EmptySource annotated methods
...
Fixes an issue where Collection itself wasn't recognised as a valid type and inheritors with a non-public zero-arg constructor were also falsely recognised as a valid type. #IDEA-313866
GitOrigin-RevId: 614fb604356b249aeae3e551286863f142c31ecb
2023-06-14 14:44:09 +00:00
Mikhail Pyltsin
aee9ccff9b
[java-inspections] IDEA-322306 Skip when arguments are empty. LoggingPlaceholderCountMatchesArgumentCountInspection
...
GitOrigin-RevId: 1420c689a98061e32581d28bac63f853ecf2d32a
2023-06-12 15:32:07 +00:00
Bart van Helvert
dc08ff6740
[junit] Support new EmptySource types
...
Support new types supported when providing an `@EmptySource` in JUnit 5.10.0. #IDEA-313866 Fixed
GitOrigin-RevId: 31d86ceb097aec10d00d07ae6ba4dd2710c65ee1
2023-06-12 09:08:31 +00:00
Mikhail Pyltsin
525f0b3737
[java-inspections] IDEA-271540 support configuration without annotations
...
GitOrigin-RevId: e9222258457e8cb18e62684b1fc6e4499126d15b
2023-06-09 20:45:23 +00:00
Daniil Ovchinnikov
292c324976
IDEA-322044 highlight reference if the highlight element is a reference
...
GitOrigin-RevId: 0102670574bd4f50a6effe4dcc743bf84ce6533d
2023-06-08 16:45:35 +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
726973077d
IJ-CR-107817 [java-inspections] IDEA-271540 Get rid of reading outside files, add support static qualifier
...
GitOrigin-RevId: c2bf552868caae235d62212cbb2b43d2473f46b2
2023-05-31 12:40:02 +00:00
Mikhail Pyltsin
7c7572d4f3
Revert "IJ-CR-107817 [java-inspections] IDEA-271540 Get rid of reading outside files, add support static qualifier"
...
This reverts commit f0e3ed6d04728b2446ba4058d58a1e286952013d.
GitOrigin-RevId: 48e3471ac324e1c1d1b774b84e21595f7ba04be0
2023-05-30 19:43:39 +00:00
Mikhail Pyltsin
c37ef4b599
IJ-CR-107817 [java-inspections] IDEA-271540 Get rid of reading outside files, add support static qualifier
...
GitOrigin-RevId: 93972fc5afa30eb2063d7b8c5a01b9a91adf2caf
2023-05-30 17:48:41 +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
Bart van Helvert
9ea8e1f558
[jvm] Don't warn about since API usage in comments
...
#IDEA-320735 Fixed
GitOrigin-RevId: 68050bbca10b31cc0a592fce30e7e30c8a92366b
2023-05-20 13:17:13 +00:00
Mikhail Pyltsin
ec31ff40ac
[java-inspections] IDEA-319998 base support akka for LoggingPlaceholderCountMatchesArgumentCount
...
GitOrigin-RevId: 83c106f1d93921e7476f2c4dcfc09aca46e8948b
2023-05-10 12:15:34 +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
Bart van Helvert
ef822020db
[jvm] Simplify inspection quickfix preview tests
...
GitOrigin-RevId: ab69d50fb15ec7d54533e053ebbea425aca83828
2023-05-04 12:01:43 +00:00
Bart van Helvert
b47486e7df
[jvm] Fix assertion type checker when calling AssertJ singleElement
...
#IDEA-317950 Fixed
GitOrigin-RevId: 4294f9be5ea139e4ff780986940e89c22cff3f68
2023-05-04 12:01:36 +00:00
Mikhail Pyltsin
5032fa91dd
[java-inspections] IDEA-318681, IDEA-318678, IDEA-318677, IDEA-318676 Improve previews, get rid of external annotations
...
GitOrigin-RevId: 57d45849299ce12c5ec19d84dcabdaaee00c3831
2023-04-25 18:46:31 +00:00
Mikhail Pyltsin
699b5fd32c
[java-inspections] IDEA-318601, IDEA-283813 improve MarkAsSafeFix
...
GitOrigin-RevId: 49cdeaab2f3e856dd18e08064e0b715396ff7793
2023-04-25 11:16:36 +00:00
Mikhail Pyltsin
8d3c5f6c5a
[java-inspections] IDEA-300645 Support for findbugs annotations for "Non-safe string is passed to safe method"
...
GitOrigin-RevId: 5ee19dfb2d5471e094d64f4675fd9be5e081cdd8
2023-04-25 11:16:33 +00:00
Bart van Helvert
edce672a36
[jvm] Move ObsoleteApiUsage inspection from devkit to jvm module
...
#IDEA-316647 Fixed
GitOrigin-RevId: c8253470b2b894d8b39b298c0ab338ba8cbc9001
2023-04-13 15:59:48 +00:00
Mikhail Pyltsin
557ccfa965
IJ-CR-105930 [java-inspections] IDEA-316635 Convert PlaceholderCountMatchesArgumentCountInspection to UAST. Fix pr
...
GitOrigin-RevId: 50d263a6c47eb306318ac811ff2d40762d2bb275
2023-04-13 13:06:24 +00:00
Bart van Helvert
6c880cf89b
[jvm] IDEA-317763 Fix Assert4J extracting check
...
GitOrigin-RevId: 48ee0f650f19c8b20bd8321d5e919c8e8a0263f8
2023-04-11 23:31:38 +00:00
Bart van Helvert
73072e3c77
[jvm] IDEA-265246 Report missing @Nested annotation on JUnit5 tests
...
Also report unexecutable JUnit 4 nested tests
GitOrigin-RevId: 2d0a83136d0140725349729f169acdbaae958f90
2023-04-11 23:31:35 +00:00
Mikhail Pyltsin
c6f4dedf27
IJ-CR-105366 [java-inspection] IDEA-316113. Convert LoggingConditionDisagreesWithLogStatementInspection to uast. Fix pr
...
GitOrigin-RevId: ffb13ddcc80170f742c1c436bc50a39536fbfea0
2023-04-11 15:41:18 +00:00
Mikhail Pyltsin
d170e5214f
IJ-CR-105930 [java-inspections] IDEA-316635 Convert PlaceholderCountMatchesArgumentCountInspection to UAST. Fix pr
...
GitOrigin-RevId: fba1aa2115486d64ddee9edb47f122fe2704e30d
2023-04-11 15:41:12 +00:00
Bart van Helvert
cc8661c04b
[jvm] Migrate UnstableApiInspection tests to JvmInspectionTests API
...
GitOrigin-RevId: c5016bc1991720d45400ef89eb4eae955cb4fa86
2023-04-06 11:09:21 +00:00
Mikhail Pyltsin
9a11232fbd
[java-inspections] IDEA-316635 Convert PlaceholderCountMatchesArgumentCountInspection to UAST inspection
...
GitOrigin-RevId: 3dde1c4966b8b281834b4f4e85894e97f9869136
2023-04-05 15:20:32 +00:00
Bart van Helvert
6a75c69fb7
[jvm] Add UrlHashCodeInspection UAST inspection
...
Merges `EqualsHashCodeCalledOnUrlInspection` and `CollectionContainsUrlInspection` into a single inspection and converts it to UAST. #IDEA-316804 Fixed
GitOrigin-RevId: 135fc9d51bbafa6e6187d9f04ccca451a6e49cbd
2023-04-03 09:39:40 +00:00
Bart van Helvert
f01a7a38fb
[jvm] Ignore describedAs in AssertBetweenInconvertibleTypesInspection
...
Also changes type order in the message. Fixes #IDEA-316538
GitOrigin-RevId: 7e318b6e44ad19adf4b7776b609de8062a5cb9e7
2023-03-29 21:04:39 +00:00
Bart van Helvert
e1569053b2
[jvm] Use hinted visitor adapter in MustAlreadyBeRemovedApiInspection
...
GitOrigin-RevId: 188b2ca5b693dd8713971c76265b05a73f2a5afc
2023-03-29 14:05:50 +00:00
Mikhail Pyltsin
27c08f7f51
[java-inspection] IDEA-316113. Convert LoggingConditionDisagreesWithLogStatementInspection to uat inspection
...
GitOrigin-RevId: 51753120eb5a754997797698d9a1d1f9cd21f94b
2023-03-24 22:55:47 +00:00
Bart van Helvert
37725ee848
[jvm] Consider nested test classes when checking for parameter context
...
#IDEA-314533 Fixed
GitOrigin-RevId: 7eddd73ea6bd85f405560cdd43e3f3f6a4db4671
2023-03-23 14:44:35 +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