Bas Leijdekkers
72560d6fb3
SSR: remove recursive search option from UI (part of IDEA-210186)
...
GitOrigin-RevId: 87f4c99bce98b912a5c67b193a4464b9a4f8032e
2021-08-01 09:58:26 +00:00
Bas Leijdekkers
497139d8a2
SSR: don't traverse psi elements in inspection (IDEA-273812)
...
GitOrigin-RevId: 1c2cbdc64e7486e65623a0231c894389a9e0eb1b
2021-08-01 09:58:25 +00:00
Bas Leijdekkers
2e0a90a168
SSR: remove unnecessary profile method
...
GitOrigin-RevId: 64cf62260e366c9e6b58d3c7067a4aec3f1b92d1
2021-08-01 09:58:23 +00:00
Bas Leijdekkers
607c333a10
SSR: simplify JavaDoc comment matching
...
GitOrigin-RevId: 108eea02074e7e1c71701184b3337a4e721536b5
2021-07-29 17:16:07 +00:00
Andrey.Cherkasov
e3454c471c
[SSR] reuse the com.intellij.psi.util.JavaPsiPatternUtil#skipParenthesizedPatternDown method
...
GitOrigin-RevId: 2c4d7e4ca89a892ec8d0885bf8fe430f3a1888ac
2021-07-26 10:45:54 +00:00
Andrey.Cherkasov
0c5a2bb01c
[java] Remove deprecated usages of com.intellij.psi.PsiSwitchLabelStatementBase#getCaseValues
...
GitOrigin-RevId: ae60854a2211c5461c1b08f348ad57e86c786879
2021-07-15 17:45:58 +00:00
Bas Leijdekkers
2968d430ae
SSR: avoid unnecessary index access (EA-328708)
...
GitOrigin-RevId: f45e2d5e03cdc14f21cb2397939cfc58cce549a9
2021-07-07 12:09:57 +00:00
Bas Leijdekkers
ad52a88a84
SSR: restore matching of pattern matching instanceof after psi changes
...
GitOrigin-RevId: 0453297690ca7d4d4ee39b8e69fb3b1ac29dcf1b
2021-06-16 10:27:22 +00:00
Bas Leijdekkers
2810dc5dbc
SSR: restore case statement pattern error checking after psi changes
...
GitOrigin-RevId: 48ed634eeb599fc47fabd647452d985d5a9b4dc0
2021-06-16 10:27:14 +00:00
Vladimir Krivosheev
6b31441cbd
IDEA-271005 Puppet plugin: Cannot create class com.intellij.lang.puppet.rubyShared.CreatePuppetModuleAction
...
GitOrigin-RevId: 6184fa5ae397b17a5807e8c2a079593937d74dce
2021-06-08 11:04:47 +00:00
Bas Leijdekkers
36dca10264
SSR: add existing template to find Local classes
...
GitOrigin-RevId: 5dd04e6d12f0814fa2f08cc4076481976f8eb0f8
2021-05-13 08:31:27 +00:00
Bas Leijdekkers
3db2df23db
SSR: remove unused object
...
GitOrigin-RevId: f8bf70db96ab2da2135a5ed8119c8962f60e1357
2021-04-26 16:56:51 +00:00
Nikolay Chashnikov
7de89ec4b5
[structural search] get rid of dependency from platform.structuralSearch to java.structuralSearch (IDEA-267482)
...
StructuralSearchTemplateBuilder was converted to a service, and Java-specific code was moved to its implementation in Java plugin.
GitOrigin-RevId: ba0b597442c1502fd2aeab2062d8f53a476de064
2021-04-20 14:43:31 +03:00
Nikolay Chashnikov
92cf4bedfd
[platform] move java-specific class from platform.structuralSearch to java.structuralSearch (IDEA-267482)
...
This is a preliminary commit to ensure that Git will detect rename properly.
GitOrigin-RevId: e9115cefe0231401941c0bbb9af508a06ac16ecf
2021-04-20 14:43:28 +03:00
Bas Leijdekkers
124dc2d2bb
SSR: support searching for JDK 16 pattern matching instanceof (IDEA-265535)
...
GitOrigin-RevId: ec3c3a479a1783c3690ca425377eefb9ef9673c6
2021-03-31 16:04:53 +00:00
Bas Leijdekkers
f1d0374426
SSR: add "Double-checked locking" existing template
...
GitOrigin-RevId: 0d0e682bf319273c9903c8d6a5994de2ed9b17f4
2021-03-31 16:04:52 +00:00
Bas Leijdekkers
57330c6206
SSR: support searching for records (IDEA-265528)
...
GitOrigin-RevId: 37069a22619940db77728b5f58c228c3e59f2691
2021-03-31 16:04:51 +00:00
Vladimir Krivosheev
0ec818456e
rename according to module file name convention
...
GitOrigin-RevId: 66a48c64dd478f96758885afa5e915d366bcb88f
2021-03-30 07:08:32 +00:00
Bas Leijdekkers
ff795c9175
SSR: no more count filter needed (or allowed) on "target" elements (IDEA-264212)
...
GitOrigin-RevId: 1bbaa7c691bae249eb322f83cefca25d7d8293fa
2021-03-18 08:40:08 +00:00
Bas Leijdekkers
baf0d15156
SSR: fix inspection warnings
...
GitOrigin-RevId: 4bf0251b6e041dc6a5abc8842048002304f35943
2021-03-04 15:15:00 +00:00
Bas Leijdekkers
a2425130fe
SSR: fix NPE when switching to replace with empty search template (IDEA-260919)
...
GitOrigin-RevId: d295a29907d0ea5a8715eebb0dce4df0f652750f
2021-02-02 08:53:58 +00:00
Tagir Valeev
ba4305a463
String.repeat used
...
GitOrigin-RevId: 33df64e10d10fdbeec3dff5fd2b6d1e10a993a0a
2021-01-28 05:40:21 +00:00
Bas Leijdekkers
734f559705
SSR: let existing templates with "a class" in the name only match classes (IDEA-255916)
...
GitOrigin-RevId: 5d69dab2b8c8eef15561a36c64bc6f3601a941cf
2021-01-22 14:12:38 +00:00
Bas Leijdekkers
823b8e89d2
SSR: move convenience method to global matching visitor for use by other matching visitors
...
GitOrigin-RevId: d00e5b4cbdf3f07d3fd2ff8c9a0c9ab7f40141fa
2021-01-14 13:51:43 +00:00
Bas Leijdekkers
d9a5f3609d
SSR: fix exception on invalid search template (IDEA-259106)
...
GitOrigin-RevId: 2baa413344e36389a2614407417f18f8a913f765
2021-01-11 12:14:08 +00:00
Bas Leijdekkers
4cc5e6267c
SSR: fix same variable validation in scope match (IDEA-259108)
...
GitOrigin-RevId: d6f716d22f55ddb1817718913fea7eb69035eaf4
2021-01-11 09:21:39 +00:00
Bas Leijdekkers
15de7bbd89
SSR: make java replacement template validation more strict (IDEA-201479)
...
GitOrigin-RevId: c46e39ec12126eda9db49b0c00f29cc3a37cf2e7
2021-01-08 16:26:56 +00:00
Bas Leijdekkers
cd3fd6f7c6
SSR: create fewer iterator objects
...
GitOrigin-RevId: f151b1c1a3b95fdb258754839280e58d0800b62f
2021-01-05 16:07:36 +00:00
Bas Leijdekkers
159b1a42b3
SSR: fix NPE
...
GitOrigin-RevId: 9af6fc64163de9cd95577a368164e43d13b0318c
2020-12-21 18:13:26 +00:00
Bas Leijdekkers
a79aef6a3e
SSR: fix more '<' in pattern problems (IDEA-228320)
...
GitOrigin-RevId: 46e28459871d434fe16ce7d20303e2c4b1085cfe
2020-12-21 18:13:24 +00:00
Vladimir Krivosheev
87210d6e8b
reduce trove usages
...
GitOrigin-RevId: ca792a82834004ea24beed791b1771261eef920b
2020-11-18 19:43:30 +00:00
Bas Leijdekkers
f2befb5cd1
SSR: match java primitive arrays correctly with variable (IDEA-254985)
...
GitOrigin-RevId: 861e73221045f495283303b8b1162aaa88d3d7fa
2020-11-10 09:56:47 +00:00
Alexey Kudravtsev
bde2f5872e
fix incorrect NotNull
...
GitOrigin-RevId: 472611f90b4171f58e0a90b27b6be0429e162e3c
2020-10-12 14:49:18 +00:00
Louis Vignier
1a1464c3cf
SSR: Fix typo in Java predefined template name
...
GitOrigin-RevId: 230961789ccff56f82b950033238659be6d0ead7
2020-10-12 13:06:59 +00:00
Louis Vignier
454d5a1d0c
SSR: Format createConfiguration calls
...
GitOrigin-RevId: cdc088160e36488438963b6968c2b1b607d43d06
2020-10-12 12:28:14 +00:00
Louis Vignier
37ff912258
IDEA-247689 SSR: Add refName to configurations
...
This commit makes it possible to refer to configurations by refName when available.
It will be possible to internationalize predefined templates names without breaking existing templates using the reference filter.
GitOrigin-RevId: 7d1b7f2f537e2ab2b7efa37af45def58fa0241c1
2020-10-08 10:11:55 +00:00
Bas Leijdekkers
1dbf8597f6
Revert "IDEA-245442 SSR: Refer to configurations by a unique id"
...
This reverts commit 1e9a6111
GitOrigin-RevId: 2763b59bab56636e92a92446ab2d8e8353490fa5
2020-09-27 18:21:41 +00:00
Louis Vignier
ec197262e1
IDEA-245442 SSR: Refer to configurations by a unique id
...
The name of a configuration is not unique, so lists of configuration names can omit some. Using "name (type, predefined)" instead of "name" makes it possible to continue referring to configurations by a String, which is unique.
GitOrigin-RevId: 1e9a61119979f64676a983a88601cbe6ba0de5cd
2020-09-23 08:13:23 +00:00
Bas Leijdekkers
3bafcd9746
SSR: minor cleanup
...
GitOrigin-RevId: 69c2c7a8b01c62ca15f3480de551166f138425ea
2020-09-18 09:57:08 +00:00
Bas Leijdekkers
f441adc9d5
SSR: commenting (IDEA-CR-66769)
...
GitOrigin-RevId: 9926216433c7eea3dc6ad62731e533cdd44bdbe0
2020-09-18 09:57:06 +00:00
Bas Leijdekkers
42f880926a
SSR: correct handling of dumb mode (EA-220872, EA-232640, IDEA-247874)
...
GitOrigin-RevId: cc94a106953cd564f64bae67f865cbe661647b19
2020-09-09 14:12:10 +00:00
Bas Leijdekkers
af8f1aa985
SSR: pattern context i18n (IDEA-249583)
...
GitOrigin-RevId: fcd4fa3a5469b46e6c532db8986a9f67b5b36338
2020-09-01 12:39:02 +00:00
Louis Vignier
26a0af9d47
i18n: extract SSR related strings to SSRBundle
...
GitOrigin-RevId: f8a3ba74b3667390365c16bf50a67b15f3962a0c
2020-08-03 14:09:06 +00:00
Bas Leijdekkers
748c5d1a67
SSR: allow to find only variables without type element (i.e. lambda parameters) (IDEA-246940)
...
GitOrigin-RevId: 4e88f8c38e798eb7fa44b0c51ac2af598215edde
2020-08-02 18:35:45 +00:00
Bas Leijdekkers
7094b8cd26
SSR: find lambda parameters with variable declaration pattern
...
GitOrigin-RevId: 195e38771ea9fbe6a0bb29cd846f69857aec988a
2020-08-02 18:35:42 +00:00
Alexey Kudravtsev
ce28f375ce
notnull
...
GitOrigin-RevId: a62047f61869bc1971b700232adbde58019ad265
2020-07-21 10:38:54 +00:00
Vladimir Krivosheev
3d280e4fb2
cleanup (final)
...
GitOrigin-RevId: 446f1aef2550b74b13c788fceaa36967a6f0b9c9
2020-07-15 17:06:10 +00:00
Vladimir Krivosheev
d4e9b09e26
cleanup (final)
...
GitOrigin-RevId: 93607e195763f2acf29ee0d7a280d7e07e8d2f14
2020-06-26 12:21:17 +03:00
yopox
d99fa1594f
SSR: Comments containing a given word predefined template
...
In the template `// $before$ bug $after$`, the spaces around bug are now optional.
(.*?) can match multiple lines. The previous pattern will match any comment (including PsiDocComment) containing bug.
GitOrigin-RevId: 25f5ddfb52630d8e793568b5081ca9c06b20729a
2020-06-18 20:14:58 +03:00
yopox
28bdd4c75a
IDEA-243739 SSR: Improve comments matching
...
LiteralWithSubstitutionHandler was taking into account the complete comment text when matching.
By making it possible to add an offset when matching, we can make end of line / block comments match with other comments types when the pattern contains variables.
GitOrigin-RevId: fb7a46dddbcd49177954352271cddc9aeadad9c6
2020-06-17 22:02:07 +03:00