Nifty Pony Merchandise

    sort-pmd-rules

    0.0.0 • Public • Published

    sort-pmd-rules

    Given a PMD rule set XML file, sort the rules by their ref attributes, so that you can navigate the file more easily.

    Requirements

    Usage

    From the command line

    sudo npm install -g sort-pmd-rules
    sort-pmd-rules -i pmd-rules.xml -o pmd-rules.xml
    

    Programmatically

    npm install --save sort-pmd-rules
    
    var sortPmdRules = require('sort-pmd-rules');
     
    var opts = {
        inputFile: "./pmd-rules.xml",
        outputFile: "./pmd-rules.xml" //optional property
    };
     
    sortPmdRules(opts, function(err, sortedRules){
        if(err) throw err;
        console.log(sortedRules);
    });

    Keywords

    none

    Install

    npm i sort-pmd-rules

    DownloadsWeekly Downloads

    0

    Version

    0.0.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • aldaviva