examples/analyzer-plugin/code-copter-analyzer-hell-no-world/index.js
function analyze (fileSourceData) {
    var analysis = new Analysis();
        
    for (let sample of fileSourceData) {
        if (saysHelloWorld(sample.text)) {
            analysis.addError({
                line: sample.line,
                message: 'At least try to look like you didn\'t copy the demo code!'
            });
        }
    }

    return analysis;
}
function analyze (fileSourceData) {
    var analysis = new Analysis();
        
    for (let sample of fileSourceData) {
        if (saysHelloWorld(sample.text)) {
            analysis.addError({
                line: sample.line,
                message: 'At least try to look like you didn\'t copy the demo code!'
            });
        }
    }

    return analysis;
}
function analyze ( fileSourceData ) { var analysis = new Analysis ( ) ; for ( let sample of fileSourceData ) { if ( saysHelloWorld ( sample . text ) ) { analysis . addError ( { line : sample . line , message : 'At least try to look like you didn\'t copy the demo code!' } ) ; } } return analysis ; }
Analyze file source data for the case-insensitive phrase "Hello world".

@param {FileSourceData} fileSourceData - The file source data to analyze.
@returns {Analysis} - The analysis of the file source data.
Analyze file source data for the case - insensitive phrase Hello world .