Repository Analysis

firebase/functions-samples

Collection of sample apps showcasing popular use cases using Cloud Functions for Firebase

0.2 Likely human-written View on GitHub
0.2
Adjusted Score
0.2
Raw Score
100%
Time Factor
2026-05-30
Last Push
12,220
Stars
JavaScript
Language
333,156
Lines of Code
685
Files
62
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 2LOW 60

Pattern Findings

62 matches across 6 categories. Click a row to expand file-level details.

Over-Commented Block40 hits · 40 pts
SeverityFileLineSnippet
LOWPython/pyproject.toml1# Copyright 2023 Google Inc. All Rights Reserved.
LOWPython/pyfmt.py1"""Utility to format Python source files for Firebase docs."""
LOWPython/alerts-to-discord/functions/main.py1# Copyright 2023 Google LLC
LOWPython/taskqueues-backup-images/functions/main.py1# Copyright 2023 Google Inc. All Rights Reserved.
LOWPython/post-signup-event/functions/main.py1# Copyright 2023 Google LLC
LOWPython/testlab-to-slack/functions/main.py1# Copyright 2022 Google Inc. All Rights Reserved.
LOWPython/http-flask/functions/main.py1# Copyright 2023 Google Inc. All Rights Reserved.
LOWPython/remote-config-diff/functions/main.py1# Copyright 2023 Google Inc. All Rights Reserved.
LOWPython/delete-unused-accounts-cron/functions/main.py1# Copyright 2023 Google Inc. All Rights Reserved.
LOWPython/thumbnails/functions/main.py1# Copyright 2023 Google Inc. All Rights Reserved.
LOW…/quickstarts/auth-blocking-functions/functions/main.py1# Copyright 2023 Google LLC
LOWPython/quickstarts/uppercase-rtdb/functions/main.py1# Copyright 2023 Google Inc. All Rights Reserved.
LOW…thon/quickstarts/firestore-sync-auth/functions/main.py1# Copyright 2023 Google Inc. All Rights Reserved.
LOW…thon/quickstarts/firestore-sync-auth/functions/main.py41# [END verifyComment]
LOWPython/quickstarts/callable-functions/functions/main.py1# Copyright 2023 Google LLC
LOW…thon/quickstarts/uppercase-firestore/functions/main.py1# Copyright 2023 Google Inc. All Rights Reserved.
LOWPython/quickstarts/https-time-server/functions/main.py1# Copyright 2023 Google Inc. All Rights Reserved.
LOWPython/quickstarts/https-time-server/functions/main.py21# [END functionsimport]
LOWPython/quickstarts/https-time-server/functions/main.py41# [START usingMiddleware]
LOWPython/quickstarts/custom-events/functions/main.py1# Copyright 2023 Google LLC
LOWPython/quickstarts/custom-events/functions/main.py61 # [END_EXCLUDE]
LOWPython/quickstarts/pubsub-helloworld/functions/main.py1# Copyright 2023 Google Inc. All Rights Reserved.
LOWNode-1st-gen/template-handlebars/functions/index.js41// This HTTPS endpoint can only be accessed by your Firebase Users.
LOWNode-1st-gen/presence-firestore/public/index.js41 // and `false` when disconnected.
LOWNode-1st-gen/presence-firestore/functions/index.js21
LOW…e-1st-gen/authorized-https-endpoint/functions/index.js81// This HTTPS endpoint can only be accessed by your Firebase Users.
LOW…-1st-gen/quickstarts/uppercase-rtdb/functions/index.js21const functions = require('firebase-functions/v1');
LOW…-1st-gen/quickstarts/uppercase-rtdb/functions/index.js41 // [END adminSdkPush]
LOW…gen/quickstarts/uppercase-firestore/functions/index.js41 .add({ original: original });
LOW.github/workflows/test_node.yml1# Copyright 2023 Google LLC
LOW.github/workflows/test_python.yml1# Copyright 2023 Google LLC
LOW.github/workflows/test_node_1st_gen.yml1# Copyright 2023 Google LLC
LOW.github/ISSUE_TEMPLATE/config.yml1# Copyright 2023 Google LLC
LOW…quickstarts/auth-blocking-functions/functions/index.js41 // Only users of a specific domain can sign up.
LOW…quickstarts/auth-blocking-functions/functions/index.js61 // Obtain a document in Firestore of the banned email address.
LOWNode/quickstarts/genkit-helloworld/functions/index.js21// [END import-trigger]
LOWNode/quickstarts/uppercase-rtdb/functions/index.js21const {onRequest} = require("firebase-functions/https");
LOWNode/quickstarts/callable-functions/functions/index.js21
LOWNode/quickstarts/callable-functions/functions/index.js61// Saves a message to the Firebase Realtime Database but sanitizes the
LOWNode/quickstarts/uppercase-firestore/functions/index.js41 // Push the new message into Firestore using the Firebase Admin SDK.
Hyper-Verbose Identifiers13 hits · 12 pts
SeverityFileLineSnippet
LOWPython/fcm-notifications/functions/main.py9def send_follower_notification(event: db_fn.Event[db_fn.Change]) -> None:
LOWPython/alerts-to-discord/functions/main.py57def post_fatal_issue_to_discord(event: crashlytics_fn.CrashlyticsNewFatalIssueEvent) -> None:
LOWPython/alerts-to-discord/functions/main.py122def post_performance_alert_to_discord(event: performance_fn.PerformanceThresholdAlertEvent) -> None:
LOW…/quickstarts/auth-blocking-functions/functions/main.py91def send_verification_email_using_your_smtp_server(email, link):
LOW…-1st-gen/template-handlebars/functions/firebaseUser.js62async function addDecodedIdTokenToRequest(idToken, req) {
LOWNode-1st-gen/coupon-on-purchase/functions/index.js87async function sendHighValueCouponViaFCM(uid, userLanguage) {
LOWNode-1st-gen/exif-images/functions/index.js68function imageMagickOutputToObject(output) {
LOWNode-1st-gen/exif-images/functions/index.js99function makeKeyFirebaseCompatible(key) {
LOWNode-1st-gen/fulltext-search-firestore/public/index.js27function searchAlgoliaUnauthenticated(query) {
LOWNode-1st-gen/fulltext-search-firestore/public/index.js47function searchAlgoliaAuthenticated(query) {
LOWNode-1st-gen/fulltext-search-firestore/public/index.js110async function searchTypesenseUnauthenticated(query) {
LOWNode-1st-gen/fulltext-search-firestore/public/index.js135async function searchTypesenseAuthenticated(query) {
LOWNode-1st-gen/quickstarts/big-ben/functions/index.js68function secondsLeftBeforeEndOfHour(date) {
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMPython/testlab-to-slack/functions/main.py73 # Create the title of the message
MEDIUMPython/testlab-to-slack/functions/main.py76 # Create the details of the message
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippet
LOWPython/quickstarts/pubsub-helloworld/functions/main.py33 # Print the message.
LOWPython/quickstarts/pubsub-helloworld/functions/main.py56 # Print the message in the logs.
LOWPython/quickstarts/pubsub-helloworld/functions/main.py71 # Print the message in the logs.
LOW.github/workflows/targeted-dependency-update.yml63 # Check if PR already exists before creating
Unused Imports2 hits · 2 pts
SeverityFileLineSnippet
LOWPython/taskqueues-backup-images/functions/main.py17
LOWPython/quickstarts/callable-functions/functions/main.py20
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippet
LOWPython/quickstarts/callable-functions/functions/main.py132 except Exception as e: