Code Monkey home page Code Monkey logo

Comments (9)

 avatar commented on July 23, 2024 2

很棒的插件,希望可以增加命令行工具,能更方便的集成到 ci 里

from p3c.

zengyoubin avatar zengyoubin commented on July 23, 2024

同求

from p3c.

shiluming avatar shiluming commented on July 23, 2024

同求

from p3c.

weifabing avatar weifabing commented on July 23, 2024

赞同,希望尽快推出

from p3c.

xuantan avatar xuantan commented on July 23, 2024

@smiler158 可以提供下样例

from p3c.

tengzhaoyong avatar tengzhaoyong commented on July 23, 2024

研究出来了,命令行方式如下:
/home/work/pmd-bin-5.8.1/bin/run.sh pmd -d /user/local/workspace/ -R java-ali-other,java-ali-comment -f text

run.sh为pmd官方下载的,-d 指定源代码路径,-R指定阿里巴巴规范 -f 说明输出格式,提供text和html两种格式。
效果如下:
image

from p3c.

fankaidev avatar fankaidev commented on July 23, 2024

直接跑不行啊,会报
SEVERE: Ruleset not found

需要指定rule定义的位置吧?

from p3c.

jiahut avatar jiahut commented on July 23, 2024

p3c-pmd-1.3.6.jar扔到lib里面去就可以了,还不明白的可以email询问: jiahut#gmail.com

from p3c.

keepyourstyle avatar keepyourstyle commented on July 23, 2024

rule 可以配置屏蔽某些检测规则吗?
我的用法是:命令行中直接java-ali-[rule],【rule】直接使用p3c-pmd\src\main\resources\rulesets\java下的文件名就可以?

from p3c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.