bin/yardstick.js
function walk(data, name) {
        // Fade out anonymous functions.

        if (name.indexOf('anon@') === 0) {
            name = name.grey;
        }

        rows.push([ prefix + name, data.ecc, data.arity, data.codeLines, data.commentLines, Math.round(100 * data.commentLines / data.codeLines) ]);

        // Add two spaces to the prefix before the next depth, to illustrate
        // the hierarchy in the table.

        prefix += '  ';
        _.each(data.children, walk);
        prefix = prefix.slice(0,prefix.length-2);
    }
function walk(data, name) {
        // Fade out anonymous functions.

        if (name.indexOf('anon@') === 0) {
            name = name.grey;
        }

        rows.push([ prefix + name, data.ecc, data.arity, data.codeLines, data.commentLines, Math.round(100 * data.commentLines / data.codeLines) ]);

        // Add two spaces to the prefix before the next depth, to illustrate
        // the hierarchy in the table.

        prefix += '  ';
        _.each(data.children, walk);
        prefix = prefix.slice(0,prefix.length-2);
    }
function walk ( data , name ) { // Fade out anonymous functions. if ( name . indexOf ( 'anon@' ) === 0 ) { name = name . grey ; } rows . push ( [ prefix + name , data . ecc , data . arity , data . codeLines , data . commentLines , Math . round ( 100 * data . commentLines / data . codeLines ) ] ) ; // Add two spaces to the prefix before the next depth, to illustrate // the hierarchy in the table. prefix += '  ' ; _ . each ( data . children , walk ) ; prefix = prefix . slice ( 0 , prefix . length - 2 ) ; }
Walk the metrics structure and add each member to the table rows.
Walk the metrics structure and add each member to the table rows .