adobe/brackets

View on GitHub
src/extensions/default/PhpTooling/client.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function validatePhpExecutable has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function validatePhpExecutable(confParams) {
    executablePath = confParams["executablePath"] ||
        (process.platform === 'win32' ? 'php.exe' : 'php');

    memoryLimit = confParams["memoryLimit"] || '4095M';
Severity: Minor
Found in src/extensions/default/PhpTooling/client.js - About 1 hr to fix

    Function serverOptions has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var serverOptions = function () {
            return new Promise(function (resolve, reject) {
                var server = net.createServer(function (socket) {
                    console.log('PHP process connected');
                    socket.on('end', function () {
    Severity: Minor
    Found in src/extensions/default/PhpTooling/client.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status