'use strict';
var codeCopter = require('../');

/**
 * A pretty harsh analyzer that passes NO files for the reason that "it sucks" starting on line 1.
 *
 * @returns {Object} An object consistent with a code-copter Analysis object bearing the inevitable message that the code in the analyzed file sucks.
 */
function itSucks () {
    return {
        errors: [{
            line: 1,
            message: 'It sucks. Starting here.'
        }],
        pass: false
    };
}

codeCopter.configure({
    analyzers: {
        itSucks: itSucks
    }
});

describe('Inline Analyzer Example', codeCopter);

@@ -147,16 +147,93 @@
 e 1.%0A *%0A
+ * @param %7BFileSourceData%7D fileSourceData - The file source data to analyze.%0A
  * @retu
@@ -400,11 +400,249 @@
 ks (
-) %7B
+fileSourceData) %7B%0A    // OPTIMIZATION: Skip analysis loop and just tell them their code sucks.%0A    //%0A    //for (let sample of fileSourceData) %7B%0A    //  // TODO: Test sample.text to see if it sucks, add error message for sample.line%0A    //%7D%0A
 %0A   

Include reference to parameter received by analyzers