🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@testgorilla/tgo-checker-core

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testgorilla/tgo-checker-core

Shared engine, rule model, AST helpers, and reporter for TestGorilla's deterministic Angular checkers (test + production-code)

latest
npmnpm
Version
0.1.0
Version published
Maintainers
2
Created
Source

TGO Checker Core

@testgorilla/tgo-checker-core — the shared engine and primitives behind TestGorilla's deterministic Angular checkers:

  • @testgorilla/tgo-testing-checker — test-canon rules
  • @testgorilla/tgo-code-checker — production-code-canon rules

Keeping the engine and — critically — the reporter here means both checkers emit the exact same JSON shape, the contract the tgo-graph PR gate consumes via --import-findings.

What's in here

ModuleExports
typesSeverity, RuleCategory, RuleDefinitionBase, RuleViolation, CheckContext<O>, FileResult/CheckResult/SectionResult/GroupedCheckResult, the three *RuleChecker interfaces, FixReplacement/RuleFixer.
configRuleConfig, RulesConfigBase, mergeRuleConfigs, getSeverity.
ast-helpersTypeScript-compiler helpers: parseFile (cached), visit, getLineNumber, matchCallExpression, getFirstStringArg, isInsideCallOf, clearSourceFileCache.
project-rootfindProjectRoot (walks up to the consumer repo root).
engineFileDomain, EngineGroup, runChecks, RunChecksOptions, discoverFiles/categorizeChangedFiles/walkDir/matchesPattern/getFilesForRule/scopeToSrcRoot/filterActiveRules.
reporterprintReport, printJsonReport, buildJsonReport (+ ReporterOptions, SeverityFilter, GroupByMode, RuleNameResolver).

The engine is domain-parameterized

runChecks(projectRoot, config, domain, groups, options) is checker-agnostic. Each checker supplies:

  • a FileDomain — which file-category keys exist, how a path buckets into them, how files group into report sections, plus any rule/file applicability filtering (e.g. the test checker's --type integration|unit);
  • an array of EngineGroups — a rule set plus how to invoke it (grep passes lines; AST/cross-file are guarded; a group can augment the context).

typescript is a peer dependency, so the consumer repo's compiler is used.

nx test tgo-checker-core
nx build tgo-checker-core

FAQs

Package last updated on 30 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts