⁠
joe: Include much more detail in inspection descriptions
- <!--
- Minecraft Development for IntelliJ
-
- https://mcdev.io/
-
- Copyright (C) 2026 minecraft-dev
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation, version 3.0 only.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
- -->
-
- <html>
- <body>
- Reports when @At("CTOR_HEAD") is missing unsafe
- </body>
- </html>
- <!--
- Minecraft Development for IntelliJ
-
- https://mcdev.io/
-
- Copyright (C) 2026 minecraft-dev
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation, version 3.0 only.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
- -->
-
- <html>
- <body>
- <p>
- Reports when <code>@At("CTOR_HEAD")</code> is missing <code>unsafe</code>
- </p>
- <!-- tooltip end -->
- <p>
- Sponge Mixin restricts where injectors can inject into constructors, and <code>CTOR_HEAD</code> fails without
- <code>unsafe = true</code>. Fabric's version of Mixin doesn't have this restriction, so by default this inspection is
- disabled when Fabric Mixin is present.
- </p>
- <pre><code>
- @Inject(method = "<init>", at = @At("CTOR_HEAD")) // bad
- @Inject(method = "<init>", at = @At(value = "CTOR_HEAD", unsafe = true)) // good
- </code></pre>
- </body>
- </html>