关于《阿里巴巴Java开发规约》插件的安装与使用 https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin Idea Plugin

关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

一、安装

关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

二、idea插件的安装与使用

 关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

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

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

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

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

  3. Restart to take effect.

Use

  1. Switch language

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

  2. Inspections

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

  3. Code Analyze

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

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

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

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

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

  4. https://github.com/alibaba/p3c/tree/master/eclipse-plugin

  5. Eclipse Plugin


  6. Prepare

    • Eclipse Juno+
    • maven3.+
    • JDK 1.7+

    Build

    mvn -U clean install
    

    Install

    1. Help >> Install New Software then enter this update site URL https://p3c.alibaba.com/plugin/eclipse/update

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

    1. Follow the wizard, restart Eclipse to take effect after install success.

    Use

    1. Switch language

      关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

    2. Code Analyze

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin

    关于《阿里巴巴Java开发规约》插件的安装与使用
https://github.com/alibaba/p3c/tree/master/idea-plugin#run-plugin
Idea Plugin