Branch: master
Find file History
骏烈
Latest commit eda2993 Nov 12, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
doc/images add screenshot Oct 16, 2017
gradle/wrapper Source code Oct 13, 2017
p3c-common p3c-pmd version 1.3.6 Nov 12, 2018
p3c-idea idea version 1.0.6 Nov 12, 2018
.gitignore Source code Oct 13, 2017
README.md syntax highlighted of java code blocks Oct 20, 2017
README_cn.md 中文乱码字体描述 Nov 16, 2017
build.gradle Source code Oct 13, 2017
gradle.properties p3c-pmd version 1.3.6 Nov 12, 2018
gradlew Source code Oct 13, 2017
gradlew.bat Source code Oct 13, 2017
settings.gradle Source code Oct 13, 2017

README.md

Idea Plugin


Prepare

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

Build

cd p3c-idea
gradle clean buildPlugin

Run plugin

cd p3c-idea
gradle runIde
# run specific IDEA
gradle runIde -Pidea_version=14.1.7

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