<commit_before>// Load modules

var ChildProcess = require('child_process');


// Declare internals

var internals = {};


exports.lint = function (settings, callback) {

    var cwd = process.cwd();
    process.chdir(settings.lintingPath);

    var child = ChildProcess.fork(__dirname + '/linters/eslint/index.js');
    child.once('message', function (message) {

        process.chdir(cwd);
        child.kill();
        return callback(null, { eslint: message });
    });
};<commit_msg>Setting cwd on the fork process<commit_after>// Load modules

var ChildProcess = require('child_process');


// Declare internals

var internals = {};


exports.lint = function (settings, callback) {

    var child = ChildProcess.fork(__dirname + '/linters/eslint/index.js', { cwd: settings.lintingPath });
    child.once('message', function (message) {

        child.kill();
        return callback(null, { eslint: message });
    });
};
{'fraction_non_alphanumeric': 0.1476293103448276, 'fraction_numerical': 0.0, 'mean_word_length': 3.4238095238095236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2424690', 'n_tokens_mistral': 282, 'n_tokens_neox': 270, 'n_words': 64}