Skip to content
@noctcore/harness
Search
Ctrl
K
Cancel
GitHub
Select theme
Dark
Light
Auto
Menu
Overview
Getting started
Guides
The manifest and the runner
Writing a lint-meta rule
Baselines and the ratchet
The rule catalog
Pinned tools
Dockerfiles, migrations and images
CI helpers
Web bundle budgets
Mutation testing
Rules
Using the rules
lockfile-registry-resolutions
single-version-dependencies
only-built-dependencies-have-scripts
pnpm-patch-ledger
github-actions-secret-no-install
github-actions-security-no-cancel
Reference
CLI
API
@noctcore/harness
Interfaces
HarnessManifest
HarnessManifestCheck
IMetaCtx
IMetaRule
IViolation
PlannedCheck
StructureLockCheck
StructureLockResult
Type Aliases
CheckStatus
ManifestOutcome
Variables
CONFIG_DIR
DEFAULT_BASELINE_DIR
DEFAULT_REGISTRY_RELATIVE_PATHS
LEGACY_BASELINE_DIR
LEGACY_CONFIG_DIR
LEGACY_MANIFEST_RELATIVE_PATH
LEGACY_REGISTRY_RELATIVE_PATHS
MANIFEST_RELATIVE_PATH
Functions
isGrandfathered
loadBaseline
portableFileGlob
serializeBaseline
@noctcore/harness-mutation
Interfaces
IAcceptance
IAcceptedMutant
IChangedContext
IChangedPlan
IConfigFacts
IDiff
IFinishedVerdict
IGitResult
ILineContext
ILineRange
IMutationDeps
IMutationOutcome
IMutationRequest
IMutationTally
IMutationTarget
IMutationVerdict
INodeMutationOptions
IPlanInput
IRatchetJudgement
IRatchetOptions
IReportedMutant
IRunObservation
IScoreBand
IStrykerExit
Type Aliases
BaselineObservation
MutationStatus
ScoreFinding
Variables
BASELINE_FILE
CONFIG_FILE
COULD_NOT_START
DEFAULT_ACCEPT_HINT
DEFAULT_BASE_REF
DROP_TOLERANCE
LEDGER_FILE
REPORT_DIR
STALE_MARGIN
Functions
acceptedBy
acceptScore
ambiguousEntries
brokeTheRun
checkIdOf
compareToBaseline
configFacts
conservativeScore
describeEntry
describeMutant
directiveLines
exitCodeFor
expiredEntries
finishVerdict
formatDuration
hundredths
incompleteRun
installedFrom
judgeChanged
judgeRun
judgeScore
lineContext
mergeRanges
mutated
mutatePatterns
mutationScore
names
nodeMutationDeps
nothingToCheck
notJudged
parseBaseline
parseDiff
parseLedger
planChangedRun
preflight
ranOutOfTime
readMutants
reportFileRefusal
requestRefusal
reusesResults
runMutation
serializeBaseline
spawnStryker
staleEntries
strykerBin
switchedOff
tallyReport
utcDay
verdictLine
@noctcore/harness/ci
Interfaces
IAffectedBaseOptions
IAffectedEnvOptions
IBaseDeps
IBaseInput
ICiGitDeps
ICommitlintCommand
ICommitlintDeps
ICommitlintOptions
ICommitRange
ICommitRangeInput
IDueCollection
IDueEntry
IDueOptions
IDueReport
IDueSources
IExemptCommit
Type Aliases
BaseDecision
LintPlan
Variables
DEFAULT_WORKSPACE_ROOTS
DUE_FAIL_DAYS
DUE_LIST_DAYS
Functions
affectedBaseFrom
affectedEnvLines
chooseBase
collectDueEntries
commitRange
daysLeft
decideAffectedBase
dueReport
exemptionProblems
exemptionsFor
formatDueReport
headShaOfLatestRun
lintPlan
nodeCiGitDeps
nodeIsWorkspace
nodeSpawnInherit
outsideWorkspaces
readDueSources
runCommitlint
@noctcore/harness/pinned-tools
Interfaces
ICapturedRunDeps
IFetchDeps
IGitleaksDeps
IGitleaksOptions
IGitleaksResult
IGitleaksRunDeps
IHadolintConfig
IHadolintDeps
IHadolintFinding
IHadolintOptions
IImagePin
ILinterPin
ILinterResult
IMigrationDir
IMigrationSelection
INodeFetchOptions
INodeRunOptions
IPinnedTool
IPlaceIo
IReleaseArchive
IRouteDeps
IRunDeps
ISpawned
ISquawkBaseline
ISquawkDeps
ISquawkFinding
ISquawkOptions
IToolCanary
IToolResult
ITrivyIgnoreEntry
ITrivyIgnoreFile
ITrivyImage
ITrivyOptions
ITrivyPaths
ITrivySbomCanary
ITrivyScanDeps
ITrivyScanOptions
ITrivyScanResult
ITrivySecret
ITrivyVulnerability
Type Aliases
CapturedRun
GitleaksRoute
IToolPin
LinterRoute
LinterStatus
LinuxArch
TrivyFinding
TrivyIgnoreSection
TrivyScanTarget
WorkflowLinterId
Variables
ACTIONLINT
DOCKER_COMMAND
GITLEAKS_CONFIG
GITLEAKS_IMAGE
GITLEAKS_VERSION_VARIABLE
HADOLINT
HADOLINT_CONFIG
MIGRATION_FILE
nodePlaceIo
SHELLCHECK
SQUAWK
SQUAWK_CONFIG
SQUAWK_CONFIG_KEYS
TRIVY
TRIVY_CONFIG_FILES
TRIVY_CONTAINER_PATHS
TRIVY_EMPTY_CONFIG
TRIVY_IGNORE_FILE
TRIVY_MAX_IGNORE_DAYS
TRIVY_SECRET_CANARY_RULE
TRIVY_SEVERITY_FLOOR
WORKFLOW_LINTER_TOOLS
WORKFLOW_LINTERS
ZIZMOR
Functions
baselineSeal
canaryProblems
chooseGitleaksRoute
chooseHadolintRoute
chooseRoute
chooseSquawkRoute
chooseToolRoute
chooseTrivyRoute
classifyTrivyFailure
describeTrivyFinding
dockerAvailable
dockerfileProblems
dockerfiles
dockerRunArgs
exitCodeFor
failingFindings
fetchPinned
findDirectives
gitleaksArgs
gitTrackedFiles
hadolintArgs
hadolintDockerArgs
imageVersion
lintArgs
linterVerdict
migrationDirsUnder
migrationPath
migrationProblems
nodeCapturedDeps
nodeFetchDeps
nodeGitleaksDeps
nodeHadolintDeps
nodeRunDeps
nodeSquawkDeps
nodeTrivyScanDeps
osCoverageProblem
parseHadolintReport
parseSquawkReport
parseTrivyReport
parseVersion
pinnedGitleaksVersion
placeBinary
readHadolintConfig
readRepoFile
readTrivyIgnoreFile
renderTrivyIgnoreFile
runCaptured
runGitleaks
runHadolint
runLinter
runSquawk
sbomCanaryProblem
scanImages
secretCanaryProblem
secretCanaryToken
selectMigrations
spawnCaptured
squawkArgs
squawkConfigProblems
squawkDockerArgs
squawkSha256
trivyDockerArgs
trivyScanArgs
trivyScanEnv
workflowFilesUnder
@noctcore/harness/rules
Interfaces
IGithubActionsSecretNoInstallOptions
IGithubActionsSecurityNoCancelOptions
ILockfileRegistryResolutionsOptions
IPnpmPatchLedgerOptions
ISecretExemption
ISingleVersionDependenciesOptions
Variables
GITHUB_ACTIONS_SECRET_NO_INSTALL_ID
GITHUB_ACTIONS_SECURITY_NO_CANCEL_ID
LOCKFILE_REGISTRY_RESOLUTIONS_ID
ONLY_BUILT_DEPENDENCIES_HAVE_SCRIPTS_ID
PNPM_PATCH_LEDGER_ID
RULE_IDS
SINGLE_VERSION_DEPENDENCIES_ID
Functions
checkPnpmPatchLedger
checkSecretNoInstall
checkSecurityWorkflowNoCancel
createGithubActionsSecretNoInstallRule
createGithubActionsSecurityNoCancelRule
createLockfileRegistryResolutionsRule
createOnlyBuiltDependenciesHaveScriptsRule
createPnpmPatchLedgerRule
createSingleVersionDependenciesRule
patchFileHash
References
IMetaCtx
IMetaRule
IViolation
@noctcore/harness/web-budget
Interfaces
IBudgetIo
IBudgetReport
IBuildGraph
IChunk
IDeadImport
IDynamicImportOptions
IFileBudget
INginxStatement
IPrecompressDeps
IPrecompressOptions
IPrecompressRun
IRouteBaseline
IRouteBudget
IServedEncoding
IServedEncodingOptions
IServedRequest
IServedSize
IServedWeighing
IWebBuild
IWebBuildDeps
IWebBuildOptions
Type Aliases
DeadImportReason
SizeMeasure
Variables
BROTLI_QUALITY
BROTLI_SUFFIX
BROWSER_BEHIND_PROXY
BYTES_PER_KB
DEFAULT_MANIFEST_FILE
DEFAULT_SKIPPED_DIRS
nodePrecompressDeps
nodeWebBuildDeps
PRECOMPRESS_MIN_LENGTH
PRECOMPRESS_TYPES
SERVED_MIME_TYPES
Functions
asKb
brotliBytes
buildProblems
checkDynamicImports
checkFileBudgets
checkPrecompressed
checkRoutes
chunksOfSource
countDynamicImports
describeDeadImport
describeEncoding
documentScripts
entryFiles
findDeadDynamicImports
headroomFromArgv
loadRoots
loadWebBuild
matchFiles
measuredSize
newerSourceRoots
nginxStatements
nodeNewestMtime
nodeReadText
ownChunks
parseFileBudgets
parseManifest
parseServedEncoding
precompressDir
precompressedBody
runBudget
servedCompressible
servedMimeType
servedSize
servedVary
staticClosure
unbuilt
FAQ
GitHub
Select theme
Dark
Light
Auto
describeEntry
describeEntry
(
entry
):
string
Parameters
Section titled “Parameters”
entry
Section titled “entry”
IAcceptedMutant
Returns
Section titled “Returns”
string