AI Slop Code RIsk Monitor

firebase/firebase-ios-sdk

Firebase SDK for Apple App Development

5.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for firebase/firebase-ios-sdk, a C++ project with 6,935 GitHub stars. SynthScan examined 686,865 lines of code across 3718 source files, recording 3551 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 5.2 (Moderate 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.

5.2
Adjusted Signal
5.2
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
6.9K
Stars
C++
Language
686.9K
Lines of Code
3.7K
Files
3.6K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 22.1/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 3476 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

Are imports declared and package/API names verified? 33 finding(s).

Agent Over-Engineering Ratio 1.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 174 finding(s).

PR Review Velocity Impact 23.7/100 · LOW

Which changes need focused human review? 3551 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 10MEDIUM 61LOW 3480

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 3551 distinct pattern matches across 18 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.

Over-Commented Block3191 hits · 3058 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# Copyright 2017 Google LLCCOMMENT
LOWPackage.swift1// swift-tools-version:6.2.1COMMENT
LOWSymbolCollisionTest/SymbolCollisionTest/AppDelegate.h1// Copyright 2018 GoogleCOMMENT
LOW…mbolCollisionTest/SymbolCollisionTest/ViewController.m1// Copyright 2018 GoogleCOMMENT
LOWSymbolCollisionTest/SymbolCollisionTest/main.m1// Copyright 2018 GoogleCOMMENT
LOWSymbolCollisionTest/SymbolCollisionTest/AppDelegate.m1// Copyright 2018 GoogleCOMMENT
LOW…mbolCollisionTest/SymbolCollisionTest/ViewController.h1// Copyright 2018 GoogleCOMMENT
LOW…seSharedSwift/Tests/third_party/DataEncoderTests.swift161// let first: StringCOMMENT
LOW…seSharedSwift/Tests/third_party/DataEncoderTests.swift181//COMMENT
LOW…dSwift/Sources/FirebaseRemoteConfigValueDecoding.swift1// Copyright 2021 Google LLCCOMMENT
LOW…rd_party/FirebaseDataEncoder/FirebaseDataEncoder.swift1// This file is derived from swift/stdlib/public/Darwin/Foundation/JSONEncoder.swiftCOMMENT
LOW…rd_party/FirebaseDataEncoder/FirebaseDataEncoder.swift61}COMMENT
LOW…rd_party/FirebaseDataEncoder/FirebaseDataEncoder.swift101// JSON EncoderCOMMENT
LOW…rd_party/FirebaseDataEncoder/FirebaseDataEncoder.swift161COMMENT
LOW…rd_party/FirebaseDataEncoder/FirebaseDataEncoder.swift321COMMENT
LOW…rd_party/FirebaseDataEncoder/FirebaseDataEncoder.swift1121 /// 1. Capitalizes the word starting after each `_`COMMENT
LOW…eTooling/Sources/PodspecsTester/InitializeSource.swift61 case .success:COMMENT
LOW…eTooling/Sources/PodspecsTester/InitializeSource.swift81 Shell.executeCommand("git tag -af \(testingTag) -m 'spectesting'", workingDir: sdkRepoPath)COMMENT
LOW…leaseTooling/Sources/ZipBuilder/ResourcesManager.swift41 for resource in existingResources {COMMENT
LOW…leaseTooling/Sources/ZipBuilder/ResourcesManager.swift101 // Find the right framework for these bundles to be embedded in - the folder structure isCOMMENT
LOWReleaseTooling/Sources/ZipBuilder/CarthageUtils.swift21struct CarthageBuildOptions {COMMENT
LOWReleaseTooling/Sources/ZipBuilder/CarthageUtils.swift161 // encoder with the `.withoutEscapingSlashes` option on `outputFormatting` like this:COMMENT
LOWReleaseTooling/Sources/ZipBuilder/ZipBuilder.swift81COMMENT
LOWReleaseTooling/Sources/ZipBuilder/ZipBuilder.swift501 zipDir: zipDir, carthageDir: carthageDir)COMMENT
LOWReleaseTooling/Sources/ZipBuilder/ZipBuilder.swift801COMMENT
LOWReleaseTooling/Sources/ZipBuilder/ZipBuilder.swift861 }COMMENT
LOWReleaseTooling/Sources/ZipBuilder/CocoaPodUtils.swift161 // Get the pods in the format of [PodInfo].COMMENT
LOWReleaseTooling/Sources/ZipBuilder/CocoaPodUtils.swift421 // Get the components of the line to parse them individually. Ignore any whitespace onlyCOMMENT
LOW…pDistributionInternal/Tests/Unit/ApiServiceTests.swift1// Copyright 2023 Google LLCCOMMENT
LOW…ernal/Tests/Unit/FakeUtils/URLSessionPartialMock.swift1// Copyright 2023 Google LLCCOMMENT
LOW…nInternal/Tests/Unit/FakeUtils/FakeInstallations.swift1// Copyright 2023 Google LLCCOMMENT
LOW…rebaseAppDistributionInternal/Sources/ApiService.swift1// Copyright 2023 Google LLCCOMMENT
LOW…tributionInternal/Sources/FeedbackViewController.swift1// Copyright 2023 Google LLCCOMMENT
LOW…aseAppDistributionInternal/Sources/InAppFeedback.swift1// Copyright 2023 Google LLCCOMMENT
LOW…eAppDistributionInternal/Sources/Internal/Logger.swift1//COMMENT
LOW…nInternal/Sources/Internal/InstallationsProtocol.swift1// Copyright 2023 Google LLCCOMMENT
LOWFirebaseFirestoreInternal/dummy.m1// Copyright 2023 Google LLCCOMMENT
LOW…toreInternal/FirebaseFirestore/FIRLocalCacheSettings.h1// Copyright 2023 Google LLCCOMMENT
LOWFirebaseFirestoreInternal/FirebaseFirestore/FIRMinKey.h1// Copyright 2026 Google LLCCOMMENT
LOW…storeInternal/FirebaseFirestore/FIRDocumentReference.h1// Copyright 2023 Google LLCCOMMENT
LOWFirebaseFirestoreInternal/FirebaseFirestore/FIRFilter.h1// Copyright 2023 Google LLCCOMMENT
LOW…estoreInternal/FirebaseFirestore/FIRSnapshotMetadata.h1// Copyright 2023 Google LLCCOMMENT
LOW…Internal/FirebaseFirestore/FIRAggregateQuerySnapshot.h1// Copyright 2023 Google LLCCOMMENT
LOWFirebaseFirestoreInternal/FirebaseFirestore/FIRQuery.h1// Copyright 2023 Google LLCCOMMENT
LOW…irestoreInternal/FirebaseFirestore/FIRPipelineBridge.h1// Copyright 2026 Google LLCCOMMENT
LOW…nal/FirebaseFirestore/FIRPersistentCacheIndexManager.h1// Copyright 2023 Google LLCCOMMENT
LOW…ebaseFirestoreInternal/FirebaseFirestore/FIRGeoPoint.h1// Copyright 2023 Google LLCCOMMENT
LOWFirebaseFirestoreInternal/FirebaseFirestore/FIRMaxKey.h1// Copyright 2026 Google LLCCOMMENT
LOW…storeInternal/FirebaseFirestore/FIRFirestoreSettings.h1// Copyright 2023 Google LLCCOMMENT
LOW…irestoreInternal/FirebaseFirestore/FIRAggregateQuery.h1// Copyright 2023 Google LLCCOMMENT
LOW…eInternal/FirebaseFirestore/FIRSnapshotListenOptions.h1// Copyright 2024 Google LLCCOMMENT
LOW…irestoreInternal/FirebaseFirestore/FIRAggregateField.h1// Copyright 2023 Google LLCCOMMENT
LOW…baseFirestoreInternal/FirebaseFirestore/FIRFieldPath.h1// Copyright 2023 Google LLCCOMMENT
LOW…FirestoreInternal/FirebaseFirestore/FIRBSONTimestamp.h1// Copyright 2026 Google LLCCOMMENT
LOW…eFirestoreInternal/FirebaseFirestore/FIRBSONObjectId.h1// Copyright 2026 Google LLCCOMMENT
LOW…aseFirestoreInternal/FirebaseFirestore/FIRFieldValue.h1// Copyright 2023 Google LLCCOMMENT
LOW…aseFirestoreInternal/FirebaseFirestore/FIRInt32Value.h1// Copyright 2026 Google LLCCOMMENT
LOW…FirestoreInternal/FirebaseFirestore/FIRQuerySnapshot.h1// Copyright 2023 Google LLCCOMMENT
LOW…reInternal/FirebaseFirestore/FIRListenerRegistration.h1// Copyright 2023 Google LLCCOMMENT
LOW…irestoreInternal/FirebaseFirestore/FIRDocumentChange.h1// Copyright 2023 Google LLCCOMMENT
3131 more matches not shown…
Hyper-Verbose Identifiers132 hits · 140 pts
SeverityFileLineSnippetContext
LOW…lytics/Crashlytics/Rollouts/StringToHexConverter.swift17// This is a swift rewrite for the logic in FIRCLSFile for the function FIRCLSFileHexEncodeString()COMMENT
LOWcmake/external/leveldb_patch_test.py27 def test_snappy_detect_line_is_commented_and_replaced(self):CODE
LOWcmake/external/leveldb_patch_test.py47 def test_snappy_detect_line_has_indent_and_eol_preserved(self):CODE
LOWcmake/external/leveldb_patch_test.py67 def test_snappy_detect_line_does_not_affect_surrounding_lines(self):CODE
LOWcmake/external/leveldb_patch_test.py95 def test_snappy_include_is_amended(self):CODE
LOWcmake/external/leveldb_patch_test.py125 def test_snappy_include_lines_adopt_indenting_and_eol_convention(self):CODE
LOWcmake/external/leveldb_patch_test.py155 def test_snappy_include_line_does_not_affect_surrounding_lines(self):CODE
LOWcmake/external/leveldb_patch_test.py193 def test_leveldb_snappy_link_line_is_commented_and_replaced(self):CODE
LOWcmake/external/leveldb_patch_test.py213 def test_leveldb_snappy_link_line_has_indent_and_eol_preserved(self):CODE
LOWcmake/external/leveldb_patch_test.py233 def test_leveldb_snappy_link_line_does_not_affect_surrounding_lines(self):CODE
LOWcmake/external/leveldb_patch_test.py261 def test_all_patches_combined(self):CODE
LOWcmake/external/leveldb_patch.py122 def _on_leveldb_include_start(self) -> Iterable[str]:CODE
LOWcmake/external/leveldb_patch.py136 def _on_leveldb_snappy_link_line(self, line: LineComponents) -> Iterable[str]:CODE
LOWGeminiLanguageModel/scripts/typegen/upgrade_spec.py269def infer_required_properties(schemas: dict[str, Any]) -> None:CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/merge.py172def strip_prefix_from_schemas(CODE
LOW…iLanguageModel/scripts/typegen/swift_typegen/models.py49 def needs_explicit_coding_key(self) -> bool:CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/graph.py222def build_direct_dependency_graph(CODE
LOW…nguageModel/scripts/typegen/swift_typegen/processor.py364 def _resolve_swift_type_string(CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py58 def test_infer_required_properties(self):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py84 def test_extract_standalone_enums(self):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py136 def test_extract_standalone_enums_prefers_superset_cases(self):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py211 def test_extract_standalone_enums_unions_non_superset_cases(self):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py273 def test_extract_standalone_enums_model_stage(self):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py308 def test_extract_standalone_enums_skips_non_enum_name_collision(self):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py335 def test_extract_standalone_enums_prefixes_tool_type(self):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py351 def test_extract_standalone_enums_uses_given_prefixes(self):CODE
LOW⚡…nguageModel/scripts/typegen/tests/test_upgrade_spec.py366 def test_upgrade_nullables_string_type(self):CODE
LOW⚡…nguageModel/scripts/typegen/tests/test_upgrade_spec.py372 def test_upgrade_nullables_list_type(self):CODE
LOW⚡…nguageModel/scripts/typegen/tests/test_upgrade_spec.py378 def test_upgrade_nullables_ref(self):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py424 def test_deep_merge_replaces_non_dict_destination_values(self):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py435 def test_deep_merge_removes_type_and_items_on_ref(self):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py451 def test_main_auto_fetches_when_input_file_missing(self, mock_urlopen):CODE
LOW…nguageModel/scripts/typegen/tests/test_upgrade_spec.py490 def test_main_uses_cached_input_file_without_fetch_flag(self, mock_urlopen):CODE
LOW…miniLanguageModel/scripts/typegen/tests/test_output.py43 def test_write_files_writes_sources(self):CODE
LOW…miniLanguageModel/scripts/typegen/tests/test_output.py58 def test_write_files_creates_output_dir(self):CODE
LOW…miniLanguageModel/scripts/typegen/tests/test_output.py63 def test_write_files_removes_case_conflicting_files(self):CODE
LOW…miniLanguageModel/scripts/typegen/tests/test_output.py96 def test_find_swift_format_prefers_path(self, which, run):CODE
LOW…miniLanguageModel/scripts/typegen/tests/test_output.py104 def test_find_swift_format_falls_back_to_xcrun(self, which, run, _):CODE
LOW…miniLanguageModel/scripts/typegen/tests/test_output.py116 def test_run_swift_format_warns_when_missing(self, _):CODE
LOW…miniLanguageModel/scripts/typegen/tests/test_output.py127 def test_run_swift_format_warns_on_failure(self, _, run):CODE
LOW…miniLanguageModel/scripts/typegen/tests/test_output.py137 def test_run_swift_format_skips_empty_paths(self, find):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py25 def test_schema_merging_order_preservation(self):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py37 def test_merge_properties_applies_divergence_resolution(self):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py48 def test_merge_properties_promotes_numeric_types(self):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py60 def test_strip_prefix_from_schemas(self):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py94 def test_strip_prefix_uses_backend_tag(self):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py114 def test_strip_prefix_applies_divergences_on_name_collision(self):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py139 def test_merge_schemas_combines_backend_provenance(self):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py167 def test_merge_properties_unions_enum_cases(self):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py202 def test_merge_schemas_unions_standalone_enum_cases(self):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py250 def test_strip_prefix_annotates_backend_enum_cases(self):CODE
LOWGeminiLanguageModel/scripts/typegen/tests/test_merge.py273 def test_rename_schemas_and_refs_applies_acronyms(self):CODE
LOW…miniLanguageModel/scripts/typegen/tests/test_config.py24 def test_provenance_key_builds_extension_key(self):CODE
LOW⚡…miniLanguageModel/scripts/typegen/tests/test_config.py36 def test_generator_config_defaults(self):CODE
LOW⚡…miniLanguageModel/scripts/typegen/tests/test_config.py42 def test_from_file_missing_raises(self):CODE
LOW⚡…miniLanguageModel/scripts/typegen/tests/test_config.py46 def test_from_file_parses_generator_config(self):CODE
LOW⚡…miniLanguageModel/scripts/typegen/tests/test_config.py75 def test_backend_rejects_unknown_tag(self):CODE
LOW⚡…miniLanguageModel/scripts/typegen/tests/test_config.py79 def test_backend_rejects_empty_prefix(self):CODE
LOW⚡…miniLanguageModel/scripts/typegen/tests/test_config.py83 def test_rejects_duplicate_backend_prefixes(self):CODE
LOW⚡…miniLanguageModel/scripts/typegen/tests/test_config.py92 def test_rejects_duplicate_backend_tags(self):CODE
72 more matches not shown…
Excessive Try-Catch Wrapping39 hits · 83 pts
SeverityFileLineSnippetContext
MEDIUM…ng/Sources/ManifestParser/GHAMatrixSpecCollector.swift64 print("Error while enumerating files: \(error.localizedDescription)")CODE
MEDIUMFirestore/Swift/Source/SwiftAPI/Pipeline/Pipeline.swift47/// print("Error in example 1: \(error)")COMMENT
MEDIUMFirestore/Swift/Source/SwiftAPI/Pipeline/Pipeline.swift60/// print("Error in example 2: \(error)")COMMENT
MEDIUMFirestore/Swift/Source/SwiftAPI/Pipeline/Pipeline.swift71/// print("Error in example 3: \(error)")COMMENT
MEDIUM…seAuth/Tests/SampleSwift/SwiftApiTests/TestsBase.swift52 print("Error signing out: \(error)")CODE
MEDIUM⚡…ple/ViewControllers/AccountLinkingViewController.swift280 print("Error: Player not authenticated with Game Center.")CODE
MEDIUM⚡…ple/ViewControllers/AccountLinkingViewController.swift287 print("Error getting Game Center credential: \(error.localizedDescription)")CODE
MEDIUM⚡…ple/ViewControllers/AccountLinkingViewController.swift292 print("Error: Missing Game Center credential")CODE
MEDIUM⚡…ple/ViewControllers/AccountLinkingViewController.swift299 print("Error linking Game Center to Firebase: \(error.localizedDescription)")CODE
MEDIUM⚡…cationExample/ViewControllers/AuthViewController.swift314 print("Error logging into Game Center: \(error.localizedDescription)")CODE
MEDIUM⚡…cationExample/ViewControllers/AuthViewController.swift330 print("Error getting Game Center credential: \(error.localizedDescription)")CODE
MEDIUM⚡…cationExample/ViewControllers/AuthViewController.swift335 print("Error signing into Firebase with Game Center: \(error.localizedDescription)")CODE
MEDIUM…cationExample/ViewControllers/AuthViewController.swift415 print("Error: No user logged in")CODE
MEDIUM…cationExample/ViewControllers/AuthViewController.swift421 print("Error: Error refreshing token")CODE
MEDIUM…cationExample/ViewControllers/AuthViewController.swift433 print("Error: Unable to access claims.")CODE
MEDIUM…cationExample/ViewControllers/AuthViewController.swift614 print("Error: Action code continue URL is nil.")CODE
MEDIUM…cationExample/ViewControllers/AuthViewController.swift643 print("Error: Action code continue URL is nil.")CODE
MEDIUM…cationExample/ViewControllers/AuthViewController.swift764 print("Error: User must be logged in first.")CODE
MEDIUM…cationExample/ViewControllers/AuthViewController.swift863 print("Error: No current user")CODE
MEDIUM…cationExample/ViewControllers/AuthViewController.swift895 print("Error: No current user")CODE
MEDIUM…e/tvOSSample/tvOSSample/EmailLoginViewController.swift40 print("Error signing in: \(error!)")CODE
MEDIUM…e/tvOSSample/tvOSSample/EmailLoginViewController.swift55 print("Error signing up: \(error!)")CODE
MEDIUM…ple/tvOSSample/tvOSSample/DatabaseViewController.swift70 print("Error grabbing value from Snapshot!")CODE
MEDIUMFirebaseRemoteConfig/Swift/RemoteConfig+Async.swift44 /// print("Error listening for remote config updates: \(error)")COMMENT
LOW…nts/skills/style_and_commit/scripts/format_markdown.sh89 except Exception as e:CODE
LOW…imulator-test-recording/scripts/run_test_and_record.sh59except Exception:CODE
LOWscripts/xcresult_logs.py75 except Exception as e:CODE
MEDIUM…ts/create_spec_repo/Sources/SpecRepoBuilder/main.swift318 print("Error: cannot find \(sdk_repo_path).")CODE
MEDIUM…ts/create_spec_repo/Sources/SpecRepoBuilder/main.swift332 print("Error: cannot determine if \(dir.path) is a directory or not.")CODE
MEDIUM…ts/create_spec_repo/Sources/SpecRepoBuilder/main.swift348 print("Error while enumerating files \(repoPath): \(error.localizedDescription)")CODE
MEDIUM…ts/create_spec_repo/Sources/SpecRepoBuilder/main.swift353 print("Error occurred while removing \(repoPath)/\(sdkRepoName): \(error)")CODE
LOW.github/workflows/_build.yml120 except Exception as error:CODE
MEDIUM.github/workflows/_build.yml121 print(f"Error setting env vars: {error}")CODE
LOW.github/workflows/_spm.yml105 except Exception as error:CODE
MEDIUM.github/workflows/_spm.yml106 print(f"Error setting env vars: {error}")CODE
LOW.github/workflows/_spm.yml163 except Exception as error:CODE
MEDIUM.github/workflows/_spm.yml164 print(f"Error setting env vars: {error}")CODE
MEDIUMFirebaseStorage/Tests/Unit/StorageTestHelpers.swift55 print("Error \(error)")CODE
MEDIUMFirebaseAI/Tests/Unit/APITests.swift98 print("Error generating content: \(error)")CODE
Deep Nesting60 hits · 45 pts
SeverityFileLineSnippetContext
LOWcmake/external/leveldb_patch.py94CODE
LOWGeminiLanguageModel/scripts/typegen/upgrade_spec.py172CODE
LOWGeminiLanguageModel/scripts/typegen/upgrade_spec.py269CODE
LOWGeminiLanguageModel/scripts/typegen/upgrade_spec.py291CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/merge.py26CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/merge.py172CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/merge.py247CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/merge.py308CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/merge.py194CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/merge.py270CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/graph.py76CODE
LOW…nguageModel/scripts/typegen/swift_typegen/processor.py29CODE
LOW…nguageModel/scripts/typegen/swift_typegen/processor.py197CODE
LOW…iLanguageModel/scripts/typegen/swift_typegen/output.py140CODE
LOW…iniLanguageModel/scripts/typegen/swift_typegen/docc.py120CODE
LOW…miniLanguageModel/scripts/typegen/tests/test_config.py101CODE
LOW…niLanguageModel/scripts/typegen/tests/test_pipeline.py48CODE
LOWFirestore/Protos/build_protos.py340CODE
LOWFirestore/Protos/build_protos.py410CODE
LOWscripts/xcresult_logs.py188CODE
LOWscripts/check_test_inclusion.py48CODE
LOWscripts/check_test_inclusion.py71CODE
LOWscripts/make_release_notes.py248CODE
LOWscripts/cpplint.py946CODE
LOWscripts/cpplint.py1652CODE
LOWscripts/cpplint.py1680CODE
LOWscripts/cpplint.py1762CODE
LOWscripts/cpplint.py1993CODE
LOWscripts/cpplint.py2115CODE
LOWscripts/cpplint.py2462CODE
LOWscripts/cpplint.py3267CODE
LOWscripts/cpplint.py3538CODE
LOWscripts/cpplint.py3609CODE
LOWscripts/cpplint.py3663CODE
LOWscripts/cpplint.py3791CODE
LOWscripts/cpplint.py4149CODE
LOWscripts/cpplint.py4227CODE
LOWscripts/cpplint.py4493CODE
LOWscripts/cpplint.py4620CODE
LOWscripts/cpplint.py4770CODE
LOWscripts/cpplint.py5169CODE
LOWscripts/cpplint.py5588CODE
LOWscripts/cpplint.py5922CODE
LOWscripts/cpplint.py5950CODE
LOWscripts/cpplint.py6363CODE
LOWscripts/cpplint.py6576CODE
LOWscripts/cpplint.py6678CODE
LOWscripts/cpplint.py1182CODE
LOWscripts/cpplint.py1366CODE
LOWscripts/cpplint.py1561CODE
LOWscripts/cpplint.py1926CODE
LOWscripts/cpplint.py3012CODE
LOWscripts/cpplint.py3069CODE
LOWscripts/api_diff_report/api_diff_report.py67CODE
LOWscripts/api_diff_report/api_diff_report.py145CODE
LOWscripts/api_diff_report/api_diff_report.py170CODE
LOWscripts/api_diff_report/api_diff_report.py202CODE
LOWscripts/api_diff_report/pr_commenter.py40CODE
LOWscripts/nanopb/proto_generator.py220CODE
LOWscripts/nanopb/proto_generator.py320CODE
Self-Referential Comments13 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMcmake/external/leveldb_patch.py61 # Create a stamp file so the patch isn't applied twice.COMMENT
MEDIUMFirestore/Protos/build_protos.py133 # Create a temporary file to which to write the tweaked script.STRING
MEDIUM…zingResources/Serializer/Corpus/ConvertTextToBinary.sh39# Create a folder to write binary protos to. This is our corpus.COMMENT
MEDIUM…imulator-test-recording/scripts/run_test_and_record.sh92 # Create a dedicated build commandCOMMENT
MEDIUMscripts/configure_test_keychain.sh36# Create a test keychain.COMMENT
MEDIUM⚡scripts/add_copyright.sh36# Define the base branch (defaulting to main).COMMENT
MEDIUMscripts/xcresult_logs.py62 # Create a symbolic link to the xcresult bundle in a deterministic directoryCOMMENT
MEDIUMscripts/cpplint.py1396 # Create a testcase for each fileCOMMENT
MEDIUMscripts/cpplint.py6005 # The following function is just a speed up, no semantics are changed.STRING
MEDIUMscripts/check_firestore_symbols.sh77# Create a temporary directory for the test package. The test package defines anCOMMENT
MEDIUMscripts/check_firestore_symbols.sh88# Create the package's subdirectories.COMMENT
MEDIUM.github/workflows/_build.yml146 # This file is used as a template for other workflows, soCOMMENT
MEDIUM.github/actions/testing_report_generation/app.rb148# Create a new issue if there exists failed workflows.COMMENT
Docstring Block Structure6 hits · 30 pts
SeverityFileLineSnippetContext
HIGH…iLanguageModel/scripts/typegen/swift_typegen/config.py121Returns the configured backend for a schema prefix. Args: prefix: Schema name prefix. RetuSTRING
HIGH…iLanguageModel/scripts/typegen/swift_typegen/config.py142Loads generator configuration from a YAML overrides file. Args: path: Path to the YAML overrides fiSTRING
HIGH…iLanguageModel/scripts/typegen/swift_typegen/config.py183Parses one generatorConfig.backends entry. Args: entry: A mapping with 'prefix' and 'tag' keys. ReturnSTRING
HIGH…anguageModel/scripts/typegen/swift_typegen/pipeline.py70Loads the generator configuration from the overrides YAML file. Args: overrides_file: Path to the overridesSTRING
HIGH…anguageModel/scripts/typegen/swift_typegen/pipeline.py91Selects the backends to strip and merge, in merge order. Merge order is always BACKEND_TAGS order (Developer API fiSTRING
HIGH…anguageModel/scripts/typegen/swift_typegen/pipeline.py123Loads `components.schemas` from an OpenAPI specification file. Args: openapi_spec: Path to the OpenAPI specSTRING
Example Usage Blocks19 hits · 28 pts
SeverityFileLineSnippetContext
LOWCrashlytics/ProtoSupport/generate_crashlytics_protos.sh18# Example usage:COMMENT
LOW…restore/Swift/Source/SwiftAPI/Firestore+Pipeline.swift31 /// Example usage:COMMENT
LOWFirestore/Swift/Source/SwiftAPI/Pipeline/Pipeline.swift618 /// Example usage:COMMENT
LOWFirestore/Swift/Source/SwiftAPI/Pipeline/Pipeline.swift685 /// Example usage:COMMENT
LOW…ift/Source/SwiftAPI/Pipeline/Aggregates/CountAll.swift21/// Example usage:COMMENT
LOW…/Source/SwiftAPI/Pipeline/Expressions/Expression.swift2601 /// Example usage:COMMENT
LOW…/Source/SwiftAPI/Pipeline/Expressions/Expression.swift2625 /// Example usage:COMMENT
LOW…/Source/SwiftAPI/Pipeline/Expressions/Expression.swift2646 /// Example usage:COMMENT
LOW…Swift/Source/SwiftAPI/Pipeline/Expressions/Field.swift71 /// Example usage:COMMENT
LOW…Swift/Source/SwiftAPI/Pipeline/Expressions/Field.swift93 /// Example usage:COMMENT
LOW…I/Pipeline/Expressions/FunctionExpressions/Score.swift26/// Example usage:COMMENT
LOW…rebaseAuth/Tests/SampleSwift/generate_refresh_token.sh23# Usage:COMMENT
LOW…eInAppMessaging/ProtoSupport/generate_nanopb_protos.sh18# Example usage:COMMENT
LOWscripts/rotate_secrets.sh19# Usage:COMMENT
LOWscripts/style.sh17# Usage:COMMENT
LOWscripts/ai-infra/export_repo_skills.sh22# Usage:COMMENT
LOWscripts/nanopb/generate_protos.sh18# Example usage:COMMENT
LOWFirebaseMessaging/ProtoSupport/generate_protos.sh18# Example usage:COMMENT
LOWFirebasePerformance/ProtoSupport/generate_protos.sh18# Example usage:COMMENT
AI Slop Vocabulary9 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUM…niAPIDataModels/GenerateContent/GenerationConfig.swift440 /// the model to perceive more detail, which can lead to a more nuancedCOMMENT
MEDIUM…GenerateContent/GenerationConfig+MediaResolution.swift29 /// the model to perceive more detail, which can lead to a more nuancedCOMMENT
MEDIUMFirestore/Example/Tests/Util/FSTIntegrationTestCase.mm319 // which testing environment we're using. Essentially `setUpDefaults` determinesCOMMENT
MEDIUMFirestore/Example/Tests/API/FSTUserDataReaderTests.mm118 // See comments in FSTUserDataReader regarding handling of signed char. Essentially, signedCOMMENT
MEDIUMFirestore/third_party/re2/re2/prefilter_tree.h114 // These are all the nodes formed by Compile. Essentially, there isCOMMENT
MEDIUM…restore/Swift/Source/SwiftAPI/Firestore+Pipeline.swift46 /// - They do not utilize or update the local SDK cache.COMMENT
MEDIUMFirebaseDatabase/Sources/FViewProcessor.m674 // Essentially we'll just get our existing server cache for the affectedCOMMENT
LOWscripts/cpplint.py3059 # Here we can just use a shallow copy since we are the lastCOMMENT
MEDIUMFirebaseAI/Sources/Types/Public/ThinkingConfig.swift17/// Gemini 2.5 series models and newer utilize a thinking process before generating a response. ThisCOMMENT
Unused Imports21 hits · 21 pts
SeverityFileLineSnippetContext
LOWGeminiLanguageModel/scripts/typegen/upgrade_spec.py18CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/merge.py17CODE
LOW…iLanguageModel/scripts/typegen/swift_typegen/config.py17CODE
LOW…iLanguageModel/scripts/typegen/swift_typegen/models.py17CODE
LOW…iLanguageModel/scripts/typegen/swift_typegen/render.py17CODE
LOW…iLanguageModel/scripts/typegen/swift_typegen/naming.py17CODE
LOW…niLanguageModel/scripts/typegen/swift_typegen/graph.py17CODE
LOW…nguageModel/scripts/typegen/swift_typegen/processor.py17CODE
LOW…miniLanguageModel/scripts/typegen/swift_typegen/cli.py17CODE
LOW…anguageModel/scripts/typegen/swift_typegen/pipeline.py17CODE
LOW…iLanguageModel/scripts/typegen/swift_typegen/output.py17CODE
LOW…iniLanguageModel/scripts/typegen/swift_typegen/docc.py17CODE
LOW…iLanguageModel/scripts/typegen/tests/test_processor.py15CODE
LOWFirestore/Protos/build_protos.py20CODE
LOWFirestore/Protos/nanopb_cpp_generator.py20CODE
LOWFirestore/Protos/lib/pretty_printing.py17CODE
LOWFirestore/Protos/lib/pretty_printing.py19CODE
LOWscripts/check_test_inclusion.py20CODE
LOWscripts/lib/checker.py15CODE
LOWscripts/nanopb/nanopb_objc_generator.py20CODE
LOWscripts/nanopb/proto_generator.py28CODE
Redundant / Tautological Comments17 hits · 18 pts
SeverityFileLineSnippetContext
LOW⚡scripts/add_copyright.sh27# Check if git is available.COMMENT
LOW⚡scripts/add_copyright.sh39# Check if BASE_BRANCH exists.COMMENT
LOWscripts/add_copyright.sh91 # Check if file already has copyright.COMMENT
LOWscripts/add_copyright.sh115 # Check if first line starts with #!COMMENT
LOWscripts/check_secrets.sh18# Check if secrets are available for multiple CI'sCOMMENT
LOWscripts/cpplint.py2993 # Check if token is an unmatched '<'.COMMENT
LOWscripts/cpplint.py3621 # Check if the // may be in quotes. If so, ignore itSTRING
LOWscripts/cpplint.py4576 # Check if the body is emptySTRING
LOWscripts/cpplint.py4867 # Check if the line is a header guard.STRING
LOWscripts/cpplint.py5302 # Check if people are using the verboten C basic types. The only exceptionSTRING
LOWscripts/cpplint.py5314 # Check if some verboten operator overloading is going onSTRING
LOWscripts/cpplint.py5490 # Check if some verboten C functions are being used.STRING
LOWscripts/cpplint.py6168 # Set end_col to check whole lines after we are done with theSTRING
LOWscripts/check_firestore_symbols.sh45# Check if the given repo path is valid.COMMENT
LOWscripts/check_firestore_symbols.sh58# Check if the given xcframework path is valid.COMMENT
LOWscripts/zip/zip_quickstart_test.sh45# Check if the scheme exists before attempting to build.COMMENT
LOW.github/actions/testing_report_generation/app.rb134# Check if there exists any cron jobs.COMMENT
Verbosity Indicators9 hits · 17 pts
SeverityFileLineSnippetContext
LOW⚡…ple/ViewControllers/AccountLinkingViewController.swift278 // Step 1: Ensure Game Center AuthenticationCOMMENT
LOW⚡…ple/ViewControllers/AccountLinkingViewController.swift284 // Step 2: Get Game Center Credential for LinkingCOMMENT
LOW⚡…ple/ViewControllers/AccountLinkingViewController.swift296 // Step 3: Link Credential with Current Firebase UserCOMMENT
LOW⚡…cationExample/ViewControllers/AuthViewController.swift310 // Step 1: System Game Center LoginCOMMENT
LOW⚡…cationExample/ViewControllers/AuthViewController.swift325 // Step 2: Link to FirebaseCOMMENT
LOWFirebaseDatabase/Tests/Unit/FSyncPointTests.m190 // Step 1: find location range in expectedCOMMENT
LOWFirebaseDatabase/Tests/Unit/FSyncPointTests.m203 // Step 2: foreach in actual, asserting locationCOMMENT
LOWFirebaseDatabase/Tests/Unit/FSyncPointTests.m215 // Step 3: slice each arrayCOMMENT
LOW…baseDatabase/Sources/Core/View/Filter/FLimitedFilter.m151 // We need to check if the `nextChild` is actually in range beforeCOMMENT
Structural Annotation Overuse8 hits · 16 pts
SeverityFileLineSnippetContext
LOW⚡…ple/ViewControllers/AccountLinkingViewController.swift278 // Step 1: Ensure Game Center AuthenticationCOMMENT
LOW⚡…ple/ViewControllers/AccountLinkingViewController.swift284 // Step 2: Get Game Center Credential for LinkingCOMMENT
LOW⚡…ple/ViewControllers/AccountLinkingViewController.swift296 // Step 3: Link Credential with Current Firebase UserCOMMENT
LOW⚡…cationExample/ViewControllers/AuthViewController.swift310 // Step 1: System Game Center LoginCOMMENT
LOW⚡…cationExample/ViewControllers/AuthViewController.swift325 // Step 2: Link to FirebaseCOMMENT
LOWFirebaseDatabase/Tests/Unit/FSyncPointTests.m190 // Step 1: find location range in expectedCOMMENT
LOWFirebaseDatabase/Tests/Unit/FSyncPointTests.m203 // Step 2: foreach in actual, asserting locationCOMMENT
LOWFirebaseDatabase/Tests/Unit/FSyncPointTests.m215 // Step 3: slice each arrayCOMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…ore/Internal/Tests/Unit/HeartbeatControllerTests.swift0{ "version": 2, "heartbeats": [ { "agent": "dummy_agent", "dates": ["2021-11-01"] } ] }STRING
HIGH…seCore/Internal/Tests/Unit/HeartbeatsBundleTests.swift0{ "version": 2, "heartbeats": [ { "agent": "dummy_agent", "dates": ["2021-11-01"] } ] }STRING
HIGH…sts/Integration/HeartbeatLoggingIntegrationTests.swift0{ "version": 2, "heartbeats": [ { "agent": "dummy_agent", "dates": ["2021-11-01"] } ] }STRING
Fake / Example Data12 hits · 12 pts
SeverityFileLineSnippetContext
LOWReleaseTooling/Sources/ZipBuilder/main.swift326 let tempDir = FileManager.default.temporaryDirectory(withName: "placeholder")STRING
LOW…restore/Swift/Tests/Integration/PipelineApiTests.swift219 // "mother": "Jane Doe"COMMENT
LOW…restore/Swift/Tests/Integration/PipelineApiTests.swift230 // "mother": "Jane Doe"COMMENT
LOW…wift/Tests/Integration/BsonTypesIntegrationTests.swift981 "b": ["key": "placeholder"],CODE
LOWFirebaseAuth/Tests/Unit/UserTests.swift33 let kPhoneNumber = "555-1234"CODE
LOW…ationExampleUITests/AuthenticationExampleUITests.swift98 let testEmail = "test@test.com"CODE
LOW…ationExampleUITests/AuthenticationExampleUITests.swift129 let testEmail = "test@test.com"CODE
LOW…ationExampleUITests/AuthenticationExampleUITests.swift160 let testEmail = "test@test.com"CODE
LOW…ationExampleUITests/AuthenticationExampleUITests.swift257 let testEmail = "test@test.com"CODE
LOW…ationExampleUITests/AuthenticationExampleUITests.swift299 let testEmail = "test@test.com"CODE
LOW…ationExampleUITests/AuthenticationExampleUITests.swift323 let testEmail = "test@test.com"CODE
LOW…seAI/Tests/TestApp/Tests/Integration/SchemaTests.swift158 "The civic number and street name, for example, '123 Main Street'.")CODE
TODO Padding4 hits · 8 pts
SeverityFileLineSnippetContext
LOWFirebaseDatabase/Sources/Core/FPersistentConnection.m1400// TODO: Add tests!COMMENT
LOW⚡FirebaseRemoteConfig/Tests/Unit/RCNConfigContentTest.m252 // TODO: Add test case once new eTag based logic is implemented.COMMENT
LOW⚡FirebaseRemoteConfig/Tests/Unit/RCNConfigContentTest.m256 // TODO: Add test case once new eTag based logic is implemented.COMMENT
LOW⚡FirebaseRemoteConfig/Tests/Unit/RCNConfigContentTest.m260 // TODO: Add test case once new eTag based logic is implemented.COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHFirestore/core/src/util/byte_stream_apple.mm46 // Still not found, or the buffer happens to be of the sized as requested.COMMENT
Modern AI Meta-Vocabulary6 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMFirebaseAI/Sources/GenerativeModel.swift124 /// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)STRING
MEDIUMFirebaseAI/Sources/GenerativeModel.swift126 /// [few-shot](https://developers.google.com/machine-learning/glossary/generative#few-shot-prompting)STRING
MEDIUMFirebaseAI/Sources/GenerativeModel.swift153 /// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)STRING
MEDIUMFirebaseAI/Sources/GenerativeModel.swift155 /// [few-shot](https://developers.google.com/machine-learning/glossary/generative#few-shot-prompting)STRING
MEDIUMFirebaseAI/Sources/GenerativeModel.swift189 /// [zero-shot](https://developers.google.com/machine-learning/glossary/generative#zero-shot-prompting)STRING
MEDIUMFirebaseAI/Sources/GenerativeModel.swift191 /// [few-shot](https://developers.google.com/machine-learning/glossary/generative#few-shot-prompting)STRING
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/infra.codeql.yml58 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT