sort-pmd-rules
v0.0.0
Published
Given a PMD rule set XML file, sort the rules so that you can navigate the file more easily.
Downloads
4
Readme
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);
});