We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f75d01 commit acde23eCopy full SHA for acde23e
index.php
@@ -23,6 +23,12 @@
23
$tempRulesFile = sys_get_temp_dir() . '/' . uniqid() . '.xml';
24
file_put_contents($tempRulesFile, $rules ?: 'rulesets/java/quickstart.xml'); // Fallback to basic rules if none provided
25
26
+ if (!function_exists('shell_exec')) {
27
+ http_response_code(500);
28
+ echo json_encode(['error' => 'shell_exec is disabled']);
29
+ exit;
30
+ }
31
+
32
// Run PMD via shell_exec
33
$pmdOutput = shell_exec('pmd check -d ' . escapeshellarg($tempCodeFile) . ' -R ' . escapeshellarg($tempRulesFile) . ' -f json 2>&1');
34
0 commit comments