Cov txheej txheem:

Java PMD yog dab tsi?
Java PMD yog dab tsi?

Video: Java PMD yog dab tsi?

Video: Java PMD yog dab tsi?
Video: to my ex… 2024, Kaum ib hlis
Anonim

Txog PMD . PMD yog ib qhov code analyzer. Nws pom cov kev ua haujlwm tsis zoo xws li kev hloov pauv tsis siv, khoob khoob khoob, tsim khoom tsim khoom, thiab lwm yam. Nws txhawb Java , JavaScript, Salesforce.com Apex thiab Visualforce, PLSQL, Apache Velocity, XML, XSL. Tsis tas li ntawd nws muaj xws li CPD, tus luam-paste-detector.

Ib yam li ntawd, PMD daim ntawv puv yog dab tsi?

PMD (Programming Mistake Detector) yog qhov qhib qhov chaw zoo li qub tus lej ntsuas ntsuas uas qhia txog cov teeb meem pom hauv daim ntawv thov code.

Tsis tas li ntawd, dab tsi yog PMD hauv dab noj hnub? PMD dab noj hnub Kev qhia. PMD sawv cev rau Programming Mistake Detector. Nws yog qhov cuab yeej tshawb xyuas cov lej pub dawb uas pab koj nrhiav cov kab hauv koj java code thiab txhim kho cov cai zoo.

Ib yam li ntawd, koj tuaj yeem nug, koj yuav ua li cas thiaj li khiav PMD?

Khiav PMD ntawm kab hais kom ua

  1. Ntaus pmd [filename|jar lossis zip file uas muaj qhov chaws|directory] [cov ntaub ntawv qhia] [ruleset file], i.e:
  2. Yog tias koj siv JDK 1.3 lossis koj tsuas yog xav khiav PMD yam tsis muaj cov ntaub ntawv batch, koj tuaj yeem ua:

Findbugs yog dab tsi?

Nrhiav kab yog qhov qhib qhov cuab yeej rau kev txheeb xyuas cov lej zoo li qub ntawm Java program. Nws scans byte code rau qhov hu ua kab laum kom pom qhov tsis xws luag thiab / lossis cov lej tsis txaus ntseeg. Txawm tias Nrhiav kab xav tau cov ntaub ntawv sau ua ke hauv chav kawm nws tsis tas yuav ua tiav cov cai rau kev tshuaj xyuas.

Pom zoo: