Nikita Eshkeev
436eee6cf4
[javadoc] IDEA-285556 Support language injection into snippet
...
Implement updating the content of a snippet tag with the help from a method implementer. A snippet might invoke overriding a method though a completion and when a parent method is inserted it might contain javadoc. In this case it's impossible to recreate a snippet tag because the new text for the tag contains "/**" and "*/" that come from the parent method's javadoc. The implemented method implementer helps to strip a method's javadoc if it's present.
Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com >
GitOrigin-RevId: 42b315ed2670701e50574a383f0442df69accd35
2022-01-20 02:16:47 +00:00
Nikita Eshkeev
715e914e30
[javadoc] IDEA-285556 Support language injection into snippet
...
Fix injection for empty snippets. The range to inject is now starts after the colon and ends when the body ends. If no colon exist, then use the whole body as an injection point.
GitOrigin-RevId: c7961f13c30212f52aad45a121bcf11b70ce8f2b
2022-01-20 02:16:46 +00:00
Nikita Eshkeev
34ec0bb7c9
[javadoc] IDEA-285556 Support language injection into snippet
...
Add an enclosing class for snippets in order not to make users define a class in a snippet code to eliminate syntax errors when the code consists of a set of instructions
GitOrigin-RevId: c6f52f94d51fdc6393c8a9fdc0ddb615e8d37b17
2022-01-15 01:44:09 +00:00
Nikita Eshkeev
6ffd9bc4b6
[javadoc] IDEA-285556 Support language injection into snippet
...
JEP-413 says that by default a snippet tag's body is in JAVA language, so JavadocInjector injects JAVA into a snippet tag automatically. The injector relies on the lang attribute to inject a language, if the attribute is not present, then JAVA is used.
In order to make a user's live easier the injector doesn't make user guess the correct language name, instead if the injector didn't find a language by the value from the `lang` attribute it traverses throughout all the registered languages and looks for the one the name of which matches the specified ignoring case. That is the case for java: in our code base the language goes by the `JAVA` id, but users tend to write the language name in lowercase ("java") or with only the first letter in the capital case ("Java")
Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com >
GitOrigin-RevId: cca8c90bb5ad04485f1bf4119b9936114e5492e4
2021-12-28 19:34:50 +00:00
Roman Ivanov
c9ec981d20
[java] fix test data
...
GitOrigin-RevId: c574abaafb637d2f403ab9c209c62c70b8d46f66
2021-12-28 14:22:23 +00:00
Roman Ivanov
9a51f2b953
Revert "[java] fix language level required for @snippet"
...
This reverts commit 093605a5d64aba4de5c9331ad6fc604e9f014328.
GitOrigin-RevId: a7de981964bbe6f30876c6aad8e9179c391d6aa4
2021-12-28 14:22:17 +00:00
Roman Ivanov
2345574a96
[java] fix language level required for @snippet
...
GitOrigin-RevId: 093605a5d64aba4de5c9331ad6fc604e9f014328
2021-12-28 12:13:42 +00:00
Roman Ivanov
2717b57828
[java] highlight @snippet javadoc tag if not available at a given language level
...
GitOrigin-RevId: 7e2a20fbc52b2c8fa72018103ace9a5dc13aa454
2021-12-28 12:13:40 +00:00
Nikita Eshkeev
c9e32ed723
[javadoc][snippet] IDEA-285783 Add snippet to allowed javadoc tags
...
GitOrigin-RevId: 326a6039748ff843277f9731853d06e6ac9cc417
2021-12-27 22:09:54 +00:00
Anna Kozlova
f55ce0722f
remove Java 15 Preview language level (IDEA-273436)
...
GitOrigin-RevId: efe6feafd81a99bde15e892530c1085fc4fb8772
2021-08-31 06:25:32 +00:00
Anna Kozlova
fd17a8bb75
language level 16, remove language level 14_preview (IDEA-257409)
...
GitOrigin-RevId: 1f9626ba04ffd9588b0cf9b8a9f699faa613359b
2020-12-14 20:59:58 +00:00
Andrey.Cherkasov
1a75f19cff
Don't warn about missing tag description on void methods
...
GitOrigin-RevId: 7125c41e5adfb4a45f96b6f5c9b6db12a9a0da6d
2020-11-23 13:25:11 +00:00
Andrey.Cherkasov
3af0d4d509
IDEA-251250 fix texts for JavaDocLocalInspection
...
GitOrigin-RevId: 8897fd1a878deea3a724b8632fadd2e3b9095f06
2020-10-23 14:57:53 +00:00
Anna Kozlova
580a5c69f5
records: support javadoc parameters pointing record components (IDEA-238925)
...
GitOrigin-RevId: fb76f16282ee0b18eb7b0512fcc9b2e812adb19b
2020-04-29 09:15:17 +00:00
Tagir Valeev
2beb7c007b
IDEA-236574 False-positive warning appears when inheritDoc is used in @throws tag
...
GitOrigin-RevId: 0214fca1f2111eb90cef9d4ecda31aeafe68895b
2020-04-02 08:03:47 +00:00
Daniel Schmidt
909433482c
Differentiate between type parameters and parameters (IDEA-226683)
...
PR#1243
GitOrigin-RevId: a91176d9f95e2803da7c1973c58ce4ee492fb703
2019-11-19 11:09:41 +00:00
Pavel Dolgov
2f8ed67c62
Java: Recognize @systemProperty tag in Javadoc (IDEA-210273)
2019-04-17 14:52:11 +03:00
Artemiy Sartakov
25643b9c89
PsiDocMethodOrFieldRef: fixed javadoc resolve for references without param types (IDEA-205390)
2019-01-16 12:45:09 +07:00
Roman Shevchenko
2bad8db30c
[java] allows '@author' tag in module docs
2018-08-30 09:03:45 +03:00
Alexey Kudravtsev
34f65ccec8
javadoc references must resolve despite current resolve scope (Too often javadoc for interface references implementation which should not show up red)
2018-08-10 15:44:39 +03:00
Roman Shevchenko
dad46c21f1
[java] returns type parameter name to "missing tag" warning
2018-06-15 12:20:17 +03:00
Anna Kozlova
fb62ac70cd
fix testdata
2018-06-14 20:35:33 +03:00
Anna Kozlova
b3a949ef5f
javadoc inspection: check missed type parameters javadoc (IDEA-192696)
2018-05-28 18:54:02 +03:00
Anna.Kozlova
99027d3bc5
fix test data (IDEA-CR-30316)
2018-03-07 14:36:37 +01:00
Anna Kozlova
54a49e7777
restore javadoc references for non-phisical methods, e.g. enum#valueOf
...
IDEA-187289
looks like there is no fields which can be generated, so only methods are checked through processDeclarations
2018-03-07 08:02:41 +01:00
Roman Shevchenko
f0b9a97b8c
[tests] updates module-related testdata
2017-11-27 16:34:02 +01:00
peter
9b48840ed4
don't include trailing dot into java reference (IDEA-177789)
2017-11-13 21:07:20 +01:00
Roman Shevchenko
96373cd2c9
[java] supports @uses, @provides and @hidden tags in Javadoc inspection
2017-10-05 21:25:08 +02:00
Roman Shevchenko
a714a3703c
[tests] merges Javadoc inspection tests; drops duplicates
2017-10-05 13:36:32 +02:00
Roman Shevchenko
0d61e56b64
[java] recognizes @index Javadoc tag (IDEA-160185)
2017-06-09 17:50:49 +03:00
Roman Shevchenko
e16815fb9f
[java] drops improperly added Javadoc tag
2017-06-08 19:14:48 +03:00
Roman Shevchenko
0588a4d12c
[java] recognizes @moduleGraph tag
2017-04-07 18:53:56 +02:00
Roman Shevchenko
2a47148d94
[tests] message texts in Javadoc highlighting tests
2017-04-07 18:48:45 +02:00
Bas Leijdekkers
5e8b71d109
Add module-info.java checking to "Declaration has problems in Javadoc references" inspection
2017-03-12 17:08:12 +01:00
Roman Shevchenko
98d2e29dfa
[java] fixes Javadoc inspection false positive on @see tag (IDEA-168195)
2017-02-20 20:06:58 +01:00
Roman Shevchenko
9aef1ccba3
[java] allows @author tag on method Javadoc (IDEA-159020)
2016-12-02 20:29:33 +01:00
Roman Shevchenko
c4e8bf5219
[java] fixes javadoc inspection false positive for split @see tags (IDEA-158662)
2016-07-18 20:55:24 +02:00
Alexander Zolotov
1df198f2ef
Highlighting issue links: ignore invalid replacement patterns (EA-83133)
2016-06-09 14:32:08 +03:00
Roman Shevchenko
24da7ad563
[java] accepts quoted strings and HTML refs after @see tag (IDEA-156403)
2016-05-26 17:34:38 +03:00
Roman Shevchenko
77a63a0eea
[java] @see tag ref verification (IDEA-97635)
2016-03-09 13:28:11 +01:00
Roman Shevchenko
55af2c9fdd
Cleanup (test data corrected)
2016-03-09 11:24:07 +01:00
Roman Shevchenko
f759a56f8f
[tests] javadoc highlighting tests merger and cleanup
2016-03-07 17:24:51 +01:00
Alexander Zolotov
b0b31e7d50
IDEA-62743 Render issue links in Java comments
2015-08-25 16:46:27 +03:00
Roman Shevchenko
a9bbf772d6
IDEA-87252 (a couple more javadoc tests)
2015-07-06 18:33:32 +03:00
Dmitry Jemerov
256fd71176
don't perform any additional parsing on the contents of the {@code} tag in javadoc (IDEA-95956)
2015-01-21 13:47:36 +01:00
Anna Kozlova
fc2f15f64e
java 8 javadoc tags @apiNote, @implNote, @implSpec
2014-12-24 14:26:26 +01:00
Maxim.Mossienko
7126e14983
open mail client on mailto: links
2014-12-22 13:40:05 +01:00
Maxim.Mossienko
2f73716a0e
IDEA-64131 support for links in comments
2014-12-22 13:15:25 +01:00
Anna Kozlova
f05cd24dfe
EA-62157 - IAE: PsiUtil.getLanguageLevel
...
process further when package-info doesn't correspond any package
2014-10-28 12:00:19 +01:00
Alexey Kudravtsev
c7b78f76a2
IDEA-120784 "Class is public should be declared in a file named <Classname>.java" for inner interface
2014-02-18 13:55:52 +04:00