AngularJS - HTML enhanced for web apps!
This report summarizes scanner evidence for angular/angular.js, a JavaScript project with 58,417 GitHub stars. SynthScan examined 326,321 lines of code across 1233 source files, recording 175 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.
Can maintainers explain intent, assumptions, and trade-offs? 123 finding(s).
Are imports declared and package/API names verified? 52 finding(s).
Are wrappers, guards, and repeated structures necessary? 94 finding(s).
Which changes need focused human review? 175 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 175 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CHANGELOG.md | 7414 | .directive('patternModelOverwrite', function patternModelOverwriteDirective() { | CODE |
| LOW | CHANGELOG.md | 7530 | .directive('patternModelOverwrite', function patternModelOverwriteDirective() { | CODE |
| LOW | test/AngularSpec.js | 1902 | function testErrorFromDifferentContext(createError) { | CODE |
| LOW | test/ngAria/ariaSpec.js | 1235 | function expectAriaAttrOnEachElement(elem, ariaAttr, expected) { | CODE |
| LOW | test/ng/locationSpec.js | 860 | function updatePathOnLocationChangeSuccessTo(newPath, newParams) { | CODE |
| LOW | test/ng/anchorScrollSpec.js | 104 | function spyOnJQLiteDocumentLoaded(fake) { | CODE |
| LOW | test/ng/anchorScrollSpec.js | 113 | function unspyOnJQLiteDocumentLoaded() { | CODE |
| LOW | test/ng/anchorScrollSpec.js | 391 | function expectScrollingWithOffset(identifierCountMap, offsetList) { | CODE |
| LOW | test/ng/anchorScrollSpec.js | 406 | function expectScrollingWithoutOffset(identifierCountMap) { | CODE |
| LOW | test/ng/anchorScrollSpec.js | 514 | function createAndSetYOffsetElement(position) { | CODE |
| LOW | test/ng/compileSpec.js | 295 | function assertLeadingOrTrailingWhitespaceInDirectiveName(name) { | CODE |
| LOW | test/ng/compileSpec.js | 7832 | function ParentOrSiblingController() { this.name = 'ParentOrSibling'; } | CODE |
| LOW | test/ng/compileSpec.js | 7833 | function ParentOrSiblingOptController() { this.name = 'ParentOrSiblingOpt'; } | CODE |
| LOW | test/ng/compileSpec.js | 12829 | function testCompileLinkDataCleanup(template) { | CODE |
| LOW | test/ng/compileSpec.js | 12857 | function testReplaceElementCleanup(dirOptions) { | CODE |
| LOW | test/ng/parseSpec.js | 4055 | function tryParseAndIgnoreException(expression) { | CODE |
| LOW | test/ng/animateSpec.js | 413 | function setupClassManipulationSpies() { | CODE |
| LOW | test/ng/animateSpec.js | 420 | function setupClassManipulationLogger(log) { | CODE |
| LOW | test/auto/injectorSpec.js | 1024 | function createInjectorWithFactory(serviceName, serviceDef) { | CODE |
| LOW | test/ngRoute/routeSpec.js | 2544 | function addRouteWithAsyncRedirect(fromPath, toPath) { | CODE |
| LOW | test/e2e/tests/anchor-scroll.spec.js | 167 | function execWithTempViewportHeight(tempHeight, fn) { | CODE |
| LOW | test/ngAnimate/animateCssSpec.js | 18 | function getPossiblyPrefixedStyleValue(element, styleProp) { | CODE |
| LOW | test/ngMock/angular-mocksSpec.js | 1318 | function throwErrorAddingDeclarationStack() { | CODE |
| LOW | test/ngMock/angular-mocksSpec.js | 3525 | function assertThrowsErrorMatching(fn, re) { | CODE |
| LOW | test/helpers/privateMocks.js | 33 | function browserSupportsCssAnimations() { | CODE |
| LOW | test/helpers/testabilityPatch.js | 314 | function generateInputCompilerHelper(helper) { | CODE |
| LOW | docs/config/processors/keywords.js | 14 | module.exports = function generateKeywordsProcessor(log, readFilesProcessor) { | CODE |
| LOW | docs/config/processors/pages-data.js | 43 | module.exports = function generatePagesDataProcessor(log) { | CODE |
| LOW | docs/config/processors/index-page.js | 10 | module.exports = function generateIndexPagesProcessor() { | CODE |
| LOW | docs/config/processors/versions-data.js | 12 | module.exports = function generateVersionDocProcessor(gitData) { | CODE |
| LOW | docs/config/processors/versions-data.js | 46 | function processAllVersionsResponse(versions) { | CODE |
| LOW | docs/config/processors/versions-data.js | 140 | function createSnapshotStableLabel(version) { | CODE |
| LOW | i18n/src/closureI18nExtractor.js | 111 | function canonicalizeForJsonStringify(unused_key, object) { | CODE |
| LOW | src/jqLite.js | 908 | function specialMouseHandlerWrapper(target, event, handler) { | CODE |
| LOW | src/loader.js | 401 | function invokeLaterAndSetModuleName(provider, method, queue) { | CODE |
| LOW | src/ngMessages/messages.js | 731 | function ngMessageDirectiveFactory(isDefault) { | CODE |
| LOW | src/ng/sce.js | 311 | function isResourceUrlAllowedByPolicy(url) { | CODE |
| LOW | src/ng/animate.js | 149 | function addRemoveClassesPostDigest(element, add, remove) { | CODE |
| LOW | src/ng/q.js | 682 | function markQStateExceptionHandled(state) { | CODE |
| LOW | src/ng/urlUtils.js | 136 | function urlIsAllowedOriginFactory(trustedOriginUrls) { | CODE |
| LOW | src/ng/parse.js | 654 | function findConstantAndWatchExpressions(ast, $filter, parentIsPure) { | CODE |
| LOW | src/ng/parse.js | 1825 | function expressionInputDirtyCheck(newValue, oldValueOfValue, compareObjectIdentity) { | CODE |
| LOW | src/ng/location.js | 875 | function setBrowserUrlWithFallback(url, replace, state) { | CODE |
| LOW | src/ng/browser.js | 175 | function cacheStateAndFireUrlChange() { | CODE |
| LOW | src/ng/interpolate.js | 360 | function parseStringifyInterceptor(value) { | CODE |
| LOW | src/ng/http.js | 106 | return function jQueryLikeParamSerializer(params) { | CODE |
| LOW | src/ng/http.js | 136 | function defaultHttpResponseTransform(data, headers) { | CODE |
| LOW | src/ng/http.js | 1114 | function completeOutstandingRequest() { | CODE |
| LOW | src/ng/http.js | 1351 | function createShortMethodsWithData(name) { | CODE |
| LOW | src/ng/http.js | 1532 | function sanitizeJsonpCallbackParam(url, cbKey) { | CODE |
| LOW | src/ng/compile.js | 1990 | (function registerNativePropertyContexts() { | CODE |
| LOW | src/ng/compile.js | 2494 | function detectNamespaceForChildElements(parentElement) { | CODE |
| LOW | src/ng/compile.js | 2629 | function mergeConsecutiveTextNodes(nodeList, idx, notLiveList) { | CODE |
| LOW | src/ng/compile.js | 2867 | function groupElementsLinkFnWrapper(linkFn, attrStart, attrEnd) { | CODE |
| LOW | src/ng/compile.js | 3392 | function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement, slotName) { | CODE |
| LOW | src/ng/compile.js | 3773 | function addTextInterpolateDirective(directives, text) { | CODE |
| LOW | src/ng/compile.js | 3851 | function sanitizeSrcsetPropertyValue(value) { | CODE |
| LOW | src/ng/compile.js | 3900 | function addAttrInterpolateDirective(node, directives, value, name, isNgAttr) { | CODE |
| LOW | src/ng/compile.js | 4069 | function initializeDirectiveBindings(scope, attrs, destination, bindings, directive) { | CODE |
| LOW | src/ng/directive/ngTransclude.js | 196 | function ngTranscludeCloneAttachFn(clone, transcludedScope) { | CODE |
| 34 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/ng/directive/inputSpec.js | 167 | expect(inputElm.attr('placeholder')).toBe('Test'); | CODE |
| LOW⚡ | test/ng/directive/inputSpec.js | 170 | helper.attrs.$set('placeholder', ''); | CODE |
| LOW⚡ | test/ng/directive/inputSpec.js | 174 | expect(inputElm.attr('placeholder')).toBe(''); | CODE |
| LOW⚡ | test/ng/directive/inputSpec.js | 177 | helper.attrs.$set('placeholder', 'Test Again'); | CODE |
| LOW⚡ | test/ng/directive/inputSpec.js | 181 | expect(inputElm.attr('placeholder')).toBe('Test Again'); | CODE |
| LOW⚡ | test/ng/directive/inputSpec.js | 184 | helper.attrs.$set('placeholder', undefined); | CODE |
| LOW⚡ | test/ng/directive/inputSpec.js | 188 | expect(inputElm.attr('placeholder')).toBeUndefined(); | CODE |
| LOW | test/ng/directive/inputSpec.js | 232 | expect(inputElm.attr('placeholder')).toBe('Test'); | CODE |
| LOW | test/ng/directive/inputSpec.js | 272 | expect(inputElm.attr('placeholder')).toBe('Test'); | CODE |
| LOW | test/ng/directive/inputSpec.js | 280 | expect(inputElm.attr('placeholder')).toBe('Test'); | CODE |
| LOW | test/ng/directive/inputSpec.js | 293 | expect(inputElm.attr('placeholder')).toBe('Test'); | CODE |
| LOW⚡ | test/ng/filter/filterSpec.js | 649 | {id: 0, details: {email: 'admin@example.com', role: 'admin'}}, | CODE |
| LOW⚡ | test/ng/filter/filterSpec.js | 655 | expr = {details: {email: 'user@example.com', role: 'adm'}}; | CODE |
| LOW⚡ | test/ng/filter/filterSpec.js | 658 | expr = {details: {email: 'admin@example.com', role: 'adm'}}; | CODE |
| LOW⚡ | test/ng/filter/filterSpec.js | 661 | expr = {details: {email: 'admin@example.com', role: 'adm'}}; | CODE |
| LOW⚡ | test/ng/filter/filterSpec.js | 664 | expr = {details: {email: 'admin@example.com', role: 'admin'}}; | CODE |
| LOW | test/ng/filter/filterSpec.js | 680 | expr = {details: {email: 'admin@example.com', role: 'min'}}; | CODE |
| LOW | test/ng/filter/filterSpec.js | 683 | expr = {details: {email: 'admin@example.com', role: 'adm'}}; | CODE |
| LOW | …nchmarks/bootstrap-compile-bp/bootstrap-theme.tpl.html | 560 | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non m | CODE |
| LOW | …nchmarks/bootstrap-compile-bp/bootstrap-theme.tpl.html | 560 | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non m | CODE |
| LOW | src/ng/directive/ngTransclude.js | 43 | * $scope.title = 'Lorem Ipsum'; | COMMENT |
| LOW | src/ng/directive/ngTransclude.js | 44 | * $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...'; | COMMENT |
| LOW | src/ng/directive/ngTransclude.js | 141 | * $scope.title = 'Lorem Ipsum'; | COMMENT |
| LOW | src/ng/directive/ngTransclude.js | 143 | * $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...'; | COMMENT |
| LOW | src/ng/directive/ngController.js | 88 | * {type: 'email', value: 'john.smith@example.org'} | COMMENT |
| LOW | src/ng/directive/ngController.js | 97 | * this.contacts.push({type: 'email', value: 'yourname@example.org'}); | COMMENT |
| LOW | src/ng/directive/ngController.js | 125 | * .toBe('john.smith@example.org'); | COMMENT |
| LOW | src/ng/directive/ngController.js | 137 | * .toBe('yourname@example.org'); | COMMENT |
| LOW | src/ng/directive/ngController.js | 172 | * {type:'email', value:'john.smith@example.org'} | COMMENT |
| LOW | src/ng/directive/ngController.js | 180 | * $scope.contacts.push({type:'email', value:'yourname@example.org'}); | COMMENT |
| LOW | src/ng/directive/ngController.js | 209 | * .toBe('john.smith@example.org'); | COMMENT |
| LOW | src/ng/directive/ngController.js | 221 | * .toBe('yourname@example.org'); | COMMENT |
| LOW⚡ | src/ng/filter/orderBy.js | 160 | {name: 'John', phone: '555-1212', age: 10}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 161 | {name: 'Mary', phone: '555-9876', age: 19}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 162 | {name: 'Mike', phone: '555-4321', age: 21}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 163 | {name: 'Adam', phone: '555-5678', age: 35}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 164 | {name: 'Julie', phone: '555-8765', age: 29} | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 239 | {name: 'John', phone: '555-1212', age: 10}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 240 | {name: 'Mary', phone: '555-9876', age: 19}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 241 | {name: 'Mike', phone: '555-4321', age: 21}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 242 | {name: 'Adam', phone: '555-5678', age: 35}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 243 | {name: 'Julie', phone: '555-8765', age: 29} | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 371 | {name: 'John', phone: '555-1212', age: 10}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 372 | {name: 'Mary', phone: '555-9876', age: 19}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 373 | {name: 'Mike', phone: '555-4321', age: 21}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 374 | {name: 'Adam', phone: '555-5678', age: 35}, | CODE |
| LOW⚡ | src/ng/filter/orderBy.js | 375 | {name: 'Julie', phone: '555-8765', age: 29} | CODE |
| LOW⚡ | src/ng/filter/filter.js | 74 | <div ng-init="friends = [{name:'John', phone:'555-1276'}, | CODE |
| LOW⚡ | src/ng/filter/filter.js | 76 | {name:'Mike', phone:'555-4321'}, | CODE |
| LOW⚡ | src/ng/filter/filter.js | 77 | {name:'Adam', phone:'555-5678'}, | CODE |
| LOW⚡ | src/ng/filter/filter.js | 78 | {name:'Julie', phone:'555-8765'}, | CODE |
| LOW⚡ | src/ng/filter/filter.js | 79 | {name:'Juliette', phone:'555-5678'}]"></div> | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CHANGELOG.md | 641 | // responseInterceptor-1 | COMMENT |
| LOW | CHANGELOG.md | 1501 | User.get({id: 1}, onSuccess, onError); | COMMENT |
| LOW | test/ng/compileSpec.js | 12481 | // <span ng-if="val1" class="ng-scope"></span> | COMMENT |
| LOW | test/ng/compileSpec.js | 12501 | expect(ngIf1Scope.$id).not.toEqual(ngIf2Scope.$id); | COMMENT |
| LOW | test/ng/compileSpec.js | 12561 | // | COMMENT |
| LOW | test/ng/compileSpec.js | 12581 | COMMENT | |
| LOW | test/ng/compileSpec.js | 12601 | // <!-- end ngRepeat: val in val0 --> | COMMENT |
| LOW | test/ng/sceSpecs.js | 601 | describe('when $sanitize is available', function() { | COMMENT |
| LOW | docs/config/processors/pages-data.js | 161 | return page.docType !== 'componentGroup'; | COMMENT |
| LOW | i18n/closure/datetimeSymbols.js | 1 | // Copyright 2011 The Closure Library Authors. All Rights Reserved. | COMMENT |
| LOW | i18n/closure/currencySymbols.js | 1 | // Copyright 2009 The Closure Library Authors. All Rights Reserved. | COMMENT |
| LOW | i18n/closure/numberSymbols.js | 1 | // Copyright 2011 The Closure Library Authors. All Rights Reserved. | COMMENT |
| LOW | i18n/closure/datetimeSymbolsExt.js | 1 | // Copyright 2011 The Closure Library Authors. All Rights Reserved. | COMMENT |
| LOW | i18n/closure/numberSymbolsExt.js | 1 | // Copyright 2011 The Closure Library Authors. All Rights Reserved. | COMMENT |
| LOW | i18n/closure/pluralRules.js | 1 | // Copyright 2012 The Closure Library Authors. All Rights Reserved. | COMMENT |
| LOW | i18n/src/closureI18nExtractor.js | 101 | ///@@ is a crazy place holder to be replaced before writing to file | COMMENT |
| LOW | .circleci/config.yml | 1 | # Configuration file for https://circleci.com/gh/angular/angular.js | COMMENT |
| LOW | .circleci/env.sh | 61 | setPublicVar DIST_TAG $( cat package.json | grep distTag | sed -E 's/^\s*"distTag"\s*:\s*"([^"]+)"\s*,\s*$/\1/' ) | COMMENT |
| LOW | .circleci/env-helpers.inc.sh | 1 | #################################################################################################### | COMMENT |
| LOW | .circleci/env-helpers.inc.sh | 41 | # Create a function to set an environment variable, when called. | COMMENT |
| LOW | .circleci/env-helpers.inc.sh | 61 | # | COMMENT |
| LOW | src/ng/anchorScroll.js | 221 | // top of the viewport. | COMMENT |
| LOW | src/ng/parse.js | 21 | // various means such as obtaining a reference to native JS functions like the Function constructor. | COMMENT |
| LOW | src/ng/directive/ngRepeat.js | 521 | // iterator, and the value is objects with following properties. | COMMENT |
| LOW | src/ng/directive/select.js | 161 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/ng/sce.js | 805 | * That said, here's how you can completely disable SCE: | COMMENT |
| MEDIUM | src/ng/sce.js | 809 | * // Completely disable SCE. For demonstration purposes only! | COMMENT |
| MEDIUM | src/ngResource/resource.js | 372 | * It's worth noting that the success callback for `get`, `query` and other methods gets called with | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .circleci/env-helpers.inc.sh | 41 | # Create a function to set an environment variable, when called. | COMMENT |