You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
p3c/idea-plugin
骏烈 a375ac4796 Source code 7 years ago
..
doc/images Source code 7 years ago
gradle/wrapper Source code 7 years ago
p3c-common Source code 7 years ago
p3c-idea Source code 7 years ago
.gitignore Source code 7 years ago
README.md Source code 7 years ago
build.gradle Source code 7 years ago
gradle.properties Source code 7 years ago
gradlew Source code 7 years ago
gradlew.bat Source code 7 years ago
settings.gradle Source code 7 years ago

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

  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.

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 vsc checkin.

    Before Checkin