Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.
This report summarizes scanner evidence for google/libphonenumber, a C++ project with 18,331 GitHub stars. SynthScan examined 312,496 lines of code across 852 source files, recording 604 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.0 (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-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 590 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 93 finding(s).
Which changes need focused human review? 604 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
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 604 distinct pattern matches across 7 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 | tools/script/continuous-integration.sh | 1 | #! /bin/sh | COMMENT |
| LOW | tools/cpp/CMakeLists.txt | 1 | # Copyright (C) 2012 The Libphonenumber Authors | COMMENT |
| LOW | tools/cpp/src/cpp-build/generate_geocoding_data.h | 1 | // Copyright (C) 2012 The Libphonenumber Authors | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 1 | // Copyright (c) 2010 The Chromium Authors. All rights reserved. | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 61 | #endif | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 81 | #else | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 101 | #endif | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 121 | DISALLOW_COPY_AND_ASSIGN(TypeName) | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 141 | // That gcc wants both of these prototypes seems mysterious. VC, for | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 161 | // | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 181 | // !(sizeof(a) & sizeof(*(a))) to size_t in order to ensure the final | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 201 | // Such explicit implicit_casts are necessary in surprisingly many | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 221 | // | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 241 | struct CompileAssert { | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 261 | // elements (and thus is invalid) when the expression is false. | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 281 | // to work around a bug in gcc 3.4.4 and 4.0.1. If we had written | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 301 | // Used to explicitly mark the return value of a function as unused. If you are | COMMENT |
| LOW | tools/cpp/src/base/basictypes.h | 321 | // does nothing to the storage, AND there are no virtual methods, then a | COMMENT |
| LOW | resources/test/geocoding/de/1.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/test/geocoding/en/54.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors | COMMENT |
| LOW | resources/test/carrier/sv/44.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors | COMMENT |
| LOW | resources/test/carrier/en/44.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors | COMMENT |
| LOW | resources/test/carrier/en/1.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors | COMMENT |
| LOW | resources/test/carrier/en/244.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors | COMMENT |
| LOW | resources/timezones/map_data.txt | 1 | # Copyright (C) 2012 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/pl/48.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/vi/84.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/sq/383.txt | 1 | # Copyright (C) 2017 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/sv/358.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/sv/46.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/hy/374.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/be/375.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/kk/7.txt | 1 | # Copyright (C) 2026 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/ja/81.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/el/30.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/it/39.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/it/41.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/ru/375.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/ru/374.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/ru/373.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/ru/7.txt | 1 | # Copyright (C) 2012 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/zh_Hant/886.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/ro/373.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/ro/40.txt | 1 | # Copyright (C) 2012 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/pt/258.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/pt/238.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/pt/239.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/pt/55.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/pt/351.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/pt/245.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/pt/244.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/zh/886.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/uk/380.txt | 1 | # Copyright (C) 2018 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/sr/383.txt | 1 | # Copyright (C) 2017 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/sr/381.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/sr/387.txt | 1 | # Copyright (C) 2017 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/bs/387.txt | 1 | # Copyright (C) 2017 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/ar/966.txt | 1 | # Copyright (C) 2013 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/hr/387.txt | 1 | # Copyright (C) 2017 The Libphonenumber Authors | COMMENT |
| LOW | resources/geocoding/hu/36.txt | 1 | # Copyright (C) 2011 The Libphonenumber Authors | COMMENT |
| 441 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 269 | function testGetInstanceLoadUSMetadata() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 293 | function testGetInstanceLoadDEMetadata() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 315 | function testGetInstanceLoadARMetadata() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 334 | function testGetInstanceLoadInternationalTollFreeMetadata() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 363 | function testGetLengthOfGeographicalAreaCode() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 398 | function testGetLengthOfNationalDestinationCode() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 440 | function testGetCountryMobileToken() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 460 | function testGetSupportedGlobalNetworkCallingCodes() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 472 | function testGetSupportedCallingCodes() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 488 | function testGetSupportedTypesForRegion() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 509 | function testGetSupportedTypesForNonGeoEntity() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 523 | function testGetNationalSignificantNumber() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 580 | function testGetExampleNumberForNonGeoEntity() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 587 | function testConvertAlphaCharactersInNumber() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 598 | function testNormaliseRemovePunctuation() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 608 | function testNormaliseReplaceAlphaCharacters() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 634 | function testNormaliseStripAlphaCharacters() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 644 | function testNormaliseStripNonDiallableCharacters() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 679 | function testFormatAUShortCodeNumber() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 823 | function testFormatOutOfCountryCallingNumber() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 891 | function testFormatOutOfCountryWithInvalidRegion() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 904 | function testFormatOutOfCountryWithPreferredIntlPrefix() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 919 | function testFormatOutOfCountryKeepingAlphaChars() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1042 | function testFormatWithCarrierCode() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1072 | function testFormatWithPreferredCarrierCode() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1119 | function testFormatNumberForMobileDialing() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1375 | function testFormatNumberWithExtension() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1395 | function testFormatInOriginalFormat() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1823 | function testGetRegionCodeForCountryCode() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1831 | function testGetRegionCodeForNumber() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1843 | function testGetRegionCodesForCountryCode() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1858 | function testGetCountryCodeForRegion() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 1868 | function testGetNationalDiallingPrefixForRegion() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2018 | function testIsPossibleNumberWithReason() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2343 | function testTruncateTooLongNumber() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2426 | function testIsViablePhoneNumberNonAscii() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2438 | function testExtractPossibleNumber() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2462 | function testMaybeStripNationalPrefix() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2530 | function testMaybeStripInternationalPrefix() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2611 | function testMaybeExtractCountryCode() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2873 | function testParseNumberWithAlphaCharacters() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2937 | function testParseWithInternationalPrefixes() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 2997 | function testParseNationalNumberArgentina() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3083 | function testFailedParseOnInvalidNumbers() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3361 | function testParseNumbersWithPlusWithNoRegion() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3399 | function testParseNumberTooShortIfNationalPrefixStripped() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3567 | function testParseHandlesLongExtensionsWithExplicitLabels() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3625 | function testParseHandlesLongExtensionsWithAutoDiallingLabels() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3656 | function testParseHandlesShortExtensionsWithAmbiguousChar() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3686 | function testParseHandlesShortExtensionsWhenNotSureOfLabel() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3764 | function testParseItalianLeadingZeros() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3801 | function testParseWithPhoneContext() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3855 | function assertThrowsForInvalidPhoneContext(numberToParse) { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3863 | function testCountryWithNoNumberDesc() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3884 | function testUnknownCountryCallingCode() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3963 | function testIsNumberMatchShortMatchIfDiffNumLeadingZeros() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 3993 | function testIsNumberMatchAcceptsProtoDefaultsAsMatch() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 4015 | function testIsNumberMatchMatchesDiffLeadingZerosIfItalianLeadingZeroFalse() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 4041 | function testIsNumberMatchIgnoresSomeFields() { | CODE |
| LOW | javascript/i18n/phonenumbers/phonenumberutil_test.js | 4064 | function testIsNumberMatchNonMatches() { | CODE |
| 19 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | cpp/CMakeLists.txt | 426 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 428 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 453 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 455 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 510 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 512 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 600 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 602 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 627 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 629 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 696 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 698 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 715 | #---------------------------------------------------------------- | COMMENT |
| MEDIUM | cpp/CMakeLists.txt | 717 | #---------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | javascript/i18n/phonenumbers/phonenumber.pb.js | 544 | // Export getDescriptor static function robust to minification. | COMMENT |
| MEDIUM | …8n/phonenumbers/metadata/regex/RegexGeneratorTest.java | 56 | // Essentially create a "thin" wedge of specific non-determinism with the shorter (5-digit) | COMMENT |
| MEDIUM⚡ | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 717 | // to avoid creating conflicting assignments for different values. Essentially we're trying to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 701 | // Step 1: Determine overlapping ranges from the index table, retaining minimum prefix length. | COMMENT |
| LOW⚡ | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 713 | // Step 2: Determine the "prefix disjoint" ranges in a new table and simplify it. | COMMENT |
| LOW | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 780 | // Step 3: Copy remaining overlapping ranges from the original table back into the result. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 701 | // Step 1: Determine overlapping ranges from the index table, retaining minimum prefix length. | COMMENT |
| LOW⚡ | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 713 | // Step 2: Determine the "prefix disjoint" ranges in a new table and simplify it. | COMMENT |
| LOW | …oogle/i18n/phonenumbers/metadata/table/RangeTable.java | 780 | // Step 3: Copy remaining overlapping ranges from the original table back into the result. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …oogle/i18n/phonenumbers/metadata/regex/EdgeWriter.java | 113 | // If the last thing we saw in this sequence was an "any" edge, don't forget to emit it. | COMMENT |