Repository Analysis

Unitech/pm2

Node.js Production Process Manager with a built-in Load Balancer.

1.3 Likely human-written View on GitHub
1.3
Adjusted Score
1.3
Raw Score
100%
Time Factor
2026-05-21
Last Push
43,196
Stars
JavaScript
Language
65,732
Lines of Code
594
Files
42
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 5HIGH 0MEDIUM 0LOW 37

Pattern Findings

42 matches across 7 categories. Click a row to expand file-level details.

Hallucination Indicators5 hits · 50 pts
SeverityFileLineSnippet
CRITICALtest/programmatic/fclone.mocha.js107 output.c.should.not.have.property('a');
CRITICALtest/programmatic/god.mocha.js137 proc.pm2_env.status.should.be.equal('stopped');
CRITICALtest/programmatic/god.mocha.js146 proc.pm2_env.status.should.be.equal('online');
CRITICALtest/programmatic/send_data_process.mocha.js62 packet.raw.data.success.should.eql(true);
CRITICALtest/programmatic/send_data_process.mocha.js83 packet.raw.data.success.should.eql(true);
Over-Commented Block20 hits · 20 pts
SeverityFileLineSnippet
LOWtest/docker-parallel.sh1#!/usr/bin/env bash
LOWtest/e2e/file-descriptor.sh21# $pm2 start echo.js -i 3
LOWtest/e2e/cli/cli-actions-1.sh141# OUT=`$pm2 logs --nostream --lines 100 PM2 | wc -l`
LOWtest/e2e/cli/cli-actions-1.sh161# spec "Should start web interface"
LOWtest/e2e/cli/cli-actions-1.sh181
LOWtest/e2e/cli/app-configuration.sh61# sleep 2
LOWtest/e2e/cli/startOrX.sh21
LOWtest/e2e/binaries/pm2-runtime.sh41spec "Should application have two watch arguments"
LOWtest/e2e/modules/module.sh101# $pm2 set example-module:var2 true
LOW…ples/test-all-keymetrics-features/process-transpose.js1
LOWlib/completion.js41 if(!env.words || !env.point || !env.line) return script(name, completer, function(err, content) {
LOWlib/tools/fmt.js1// --------------------------------------------------------------------------------------------------------------------
LOWlib/tools/which.js41}
LOWlib/tools/json5.js1// json5.js
LOWlib/templates/init-scripts/pm2-init-amazon.sh1#!/bin/bash
LOWmodules/pm2-axon/test/test.pubsub.missed-messages.js1//
LOWmodules/pm2-axon/test/test.pubsub.missed-messages.js21// case 0:
LOWmodules/pm2-axon/test/test.socket.reconnect.js1
LOWmodules/pm2-axon/test/test.socket.reconnect.js21// pull.on('message', function(msg){
LOWmodules/pm2-axon/test/test.socket.reconnect.js41// push.close();
Hyper-Verbose Identifiers10 hits · 10 pts
SeverityFileLineSnippet
LOWexamples/sourcemap-auto-resolve/API.js668 function restartExistingProcessName(cb) {
LOWexamples/sourcemap-auto-resolve/API.js710 function restartExistingProcessPath(cb) {
LOWlib/ProcessContainer.js234 function getUncaughtExceptionListener(listener) {
LOWlib/API.js757 function restartExistingProcessName(cb) {
LOWlib/API.js821 function restartExistingProcessPathOrStartNew(cb) {
LOWlib/ProcessContainerBun.js293 function getUncaughtExceptionListener(listener) {
LOWlib/API/pm2-plus/helpers.js10function processesAreAlreadyMonitored(CLI, cb) {
LOWlib/API/UX/pm2-ls.js41function listModulesAndAppsManaged(list, commander) {
LOWlib/API/UX/pm2-ls.js363function listHighResourcesProcesses(sys_infos) {
LOWmodules/pm2-io-agent/src/utils/EDS.js8function ExponentiallyDecayingSample (options) {
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOWtest/windows.sh6# Usage:
LOWtest/docker-parallel.sh6# Usage:
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippet
LOWexamples/run-php-python-ruby-bash/leak-mem.py17except Exception:
LOWexamples/run-php-python-ruby-bash/leak-mem.py45 except Exception:
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippet
LOWexamples/run-php-python-ruby-bash/leak-mem.py33
LOWexamples/run-php-python-ruby-bash/leak-mem.py56
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWtest/docker-parallel.sh165# Check if test is excluded