Files
p3c/idea-plugin
玄坛 7c9665a951 Fix ArrayIndexOutOfBoundsException in AliMissingOverrideAnnotationInspection
Related to #999

Add checks for empty arrays in `AliMissingOverrideAnnotationInspection.kt` to prevent `ArrayIndexOutOfBoundsException`.

* Add a check for empty `infos` array before accessing elements in the `buildFix` method.
* Add a check for null `psiElement` before calling `buildFix` in the `manualBuildFix` method.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/alibaba/p3c/issues/999?shareId=XXXX-XXXX-XXXX-XXXX).
2024-08-05 17:57:47 +08:00
..
2017-10-16 13:52:06 +08:00
2020-08-23 13:00:53 +08:00
2017-10-13 23:59:40 +08:00
2019-06-12 14:56:03 +08:00
2020-08-23 13:00:53 +08:00
2020-08-23 13:00:53 +08:00
2017-11-16 01:12:50 -06:00
2020-08-23 13:00:53 +08:00
2017-10-13 23:59:40 +08:00

Idea Plugin


Prepare

  • Project JDK: 1.7+
  • Gradle: 3.0+Require JDK1.8+ for gradle

Build

cd p3c-idea
../gradlew clean buildPlugin

Run plugin

cd p3c-idea
../gradlew runIde
# run specific IDEA
../gradlew runIde -Pidea_version=2018.3

Use p3c-common as your plugin dependency

compile 'com.alibaba.p3c.idea:p3c-common:1.0.0'

中文使用手册

Install

Install from repositories

  1. Settings >> Plugins >> Browse repositories...

    Switch language

  2. Search plugin by keyword 'alibaba' then install 'Alibaba Java Coding Guidelines' plugin

    Switch language

  3. Restart to take effect.

Install from local zip file.

  1. Open https://plugins.jetbrains.com/plugin/10046-alibaba-java-coding-guidelines and download the latest version zip file. download
  2. Settings >> Plugins >> Install plugin from disk...,select the downloaded zip file in previous step then restart your idea

Use

  1. Switch language

    Switch language

  2. Inspections

    Real time

    Settings

  3. Code Analyze

    Settings

    We use the idea standard Inspection Results to show our violations.

    Result

    We can also analyze file which is modified before vcs checkin.

    Before Checkin

Other

  1. 中文乱码解决方法

    • Appearance&Behavior -> Appearance -> UI Options -> Name 里面设置成微软雅黑microsoft yahei light

      Font

    • Switch Language to English and restart.

      Switch language