firebase/firebase-ios-sdk
Firebase SDK for Apple App Development
The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
Most complex files
- Firestore/Protos/cpp/google/firestore/v1/firestore.pb.h1952 cx
- Firestore/Protos/cpp/google/firestore/v1/firestore.pb.cc1345 cx
- scripts/cpplint.py1114 cx
- Firestore/Protos/cpp/google/firestore/v1/query.pb.h738 cx
- Firestore/Protos/cpp/google/firestore/v1/query.pb.cc493 cx
- Firestore/Protos/cpp/google/firestore/v1/write.pb.h491 cx
- Firestore/Protos/cpp/google/firestore/v1/document.pb.h448 cx
- Firestore/core/src/core/expressions_eval.cc428 cx
- Firestore/core/src/model/value_util.cc411 cx
- Firestore/Protos/cpp/google/firestore/v1/write.pb.cc348 cx
Dead code 2.17% unused · 8 findings
- scripts/lldb/firestore.pyunused-file
- scripts/cpplint.py:_IncludeErrorunused-symbol
- scripts/cpplint.py:_RE_PATTERN_REF_PARAMunused-symbol
- scripts/cpplint.py:_RE_PATTERN_CONST_REF_PARAMunused-symbol
- scripts/cpplint.py:_RE_PATTERN_REF_STREAM_PARAMunused-symbol
- Firestore/Protos/lib/pretty_printing.py:textwrapunused-import
- Firestore/Protos/lib/pretty_printing.py:FieldDescriptorProtounused-import
- scripts/lib/checker.py:_output_lockunused-symbol
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 102 generated files: Crashlytics/Protogen/nanopb/crashlytics.nanopb.c, Crashlytics/Protogen/nanopb/crashlytics.nanopb.h, FirebaseInAppMessaging/Sources/Analytics/Protogen/nanopb/fiam.nanopb.c, FirebaseInAppMessaging/Sources/Analytics/Protogen/nanopb/fiam.nanopb.h, FirebaseMessaging/Sources/Protogen/nanopb/me.nanopb.c, FirebaseMessaging/Sources/Protogen/nanopb/me.nanopb.h, FirebasePerformance/Sources/Protogen/nanopb/perf_metric.nanopb.c, FirebasePerformance/Sources/Protogen/nanopb/perf_metric.nanopb.h, FirebaseSessions/SourcesObjC/Protogen/nanopb/sessions.nanopb.c, FirebaseSessions/SourcesObjC/Protogen/nanopb/sessions.nanopb.h, Firestore/Protos/cpp/firestore/bundle.pb.cc, Firestore/Protos/cpp/firestore/bundle.pb.h, Firestore/Protos/cpp/firestore/local/maybe_document.pb.cc, Firestore/Protos/cpp/firestore/local/maybe_document.pb.h, Firestore/Protos/cpp/firestore/local/mutation.pb.cc, Firestore/Protos/cpp/firestore/local/mutation.pb.h, Firestore/Protos/cpp/firestore/local/target.pb.cc, Firestore/Protos/cpp/firestore/local/target.pb.h, Firestore/Protos/cpp/google/api/annotations.pb.cc, Firestore/Protos/cpp/google/api/annotations.pb.h and 82 more.
Largest clones in the code
- 17 lines in 261 placesc-header577 tokensFirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h:1–17FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuthErrors.h:1–17FirebaseAuth/Sources/Public/FirebaseAuth/FIREmailAuthProvider.h:1–17FirebaseAuth/Sources/Public/FirebaseAuth/FIRFacebookAuthProvider.h:1–17FirebaseAuth/Sources/Public/FirebaseAuth/FIRFederatedAuthProvider.h:1–17and 256 more
1/* 2 * Copyright 2017 Google 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, softwareFirst 10 of 17 lines.
- 17 lines in 255 placesobjectivec583 tokensFirebaseAuth/Sources/ObjC/FIRAuth.m:1–17FirebaseAuth/Sources/ObjC/FIRAuthErrorUtils.m:1–17FirebaseAuth/Sources/ObjC/FIRAuthProvider.m:1–17FirebaseAuth/Tests/SampleSwift/ObjCApiTests/EmailPasswordAuthTests.m:1–17FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m:1–17and 250 more
1/* 2 * Copyright 2017 Google 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, softwareFirst 10 of 17 lines.
- 17 lines in 145 placesc-header576 tokensCrashlytics/Crashlytics/Public/FirebaseCrashlytics/FirebaseCrashlytics.h:1–17FirebaseAppDistribution/Sources/FIRAppDistributionMachO.h:1–17FirebaseAppDistribution/Sources/FIRAppDistributionMachOSlice.h:1–17FirebaseAuth/Sources/Public/FirebaseAuth/FIRMultiFactor.h:1–17FirebaseAuth/Tests/SampleSwift/ObjCApiTests/FIRAuthApiTestsBase.h:1–17and 140 more
1/* 2 * Copyright 2019 Google 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, softwareFirst 10 of 17 lines.
7 more
- 17 lines in 115 placesc-header575 tokens
- 17 lines in 100 placesobjectivec576 tokensFirebaseAppDistribution/Sources/FIRAppDistributionMachO.m:1–17FirebaseAppDistribution/Sources/FIRAppDistributionMachOSlice.m:1–17FirebaseAuth/Sources/ObjC/FIRMultiFactorConstants.m:1–17FirebaseAuth/Tests/SampleSwift/ObjCApiTests/AccountInfoTests.m:1–17FirebaseAuth/Tests/SampleSwift/ObjCApiTests/AnonymousAuthTests.m:1–17and 95 more
- 17 lines in 49 placesc-header580 tokensCrashlytics/Crashlytics/Models/Record/FIRCLSRecordApplication.h:1–17Crashlytics/Crashlytics/Models/Record/FIRCLSRecordBase.h:1–17Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter.h:1–17Crashlytics/Crashlytics/Models/Record/FIRCLSReportAdapter_Private.h:1–17FirebaseAppCheck/Interop/Public/FirebaseAppCheckInterop/FIRAppCheckInterop.h:1–17and 44 more
- 17 lines in 49 placescpp576 tokens
- 17 lines in 47 placescpp576 tokens
- 17 lines in 42 placesobjectivec576 tokens
- 15 lines in 37 placesc-header578 tokensFirebaseAnalyticsCoreWrapper/include/dummy.h:1–15FirebaseAppCheck/Sources/Core/FIRAppCheckSettings.h:1–15FirebaseAppCheck/Sources/Core/FIRAppCheckToken+Internal.h:1–15FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppAttestProvider.h:1–15FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckAvailability.h:1–15and 32 more
Largest clones over all files, tests and data included
- 17 lines in 261 placesc-header577 tokensFirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h:1–17FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuthErrors.h:1–17FirebaseAuth/Sources/Public/FirebaseAuth/FIREmailAuthProvider.h:1–17FirebaseAuth/Sources/Public/FirebaseAuth/FIRFacebookAuthProvider.h:1–17FirebaseAuth/Sources/Public/FirebaseAuth/FIRFederatedAuthProvider.h:1–17and 256 more
1/* 2 * Copyright 2017 Google 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, softwareFirst 10 of 17 lines.
- 17 lines in 255 placesobjectivec583 tokensFirebaseAuth/Sources/ObjC/FIRAuth.m:1–17FirebaseAuth/Sources/ObjC/FIRAuthErrorUtils.m:1–17FirebaseAuth/Sources/ObjC/FIRAuthProvider.m:1–17FirebaseAuth/Tests/SampleSwift/ObjCApiTests/EmailPasswordAuthTests.m:1–17FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m:1–17and 250 more
1/* 2 * Copyright 2017 Google 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, softwareFirst 10 of 17 lines.
- 17 lines in 158 placesc-header576 tokensCrashlytics/Crashlytics/Public/FirebaseCrashlytics/FirebaseCrashlytics.h:1–17FirebaseAppDistribution/Sources/FIRAppDistributionMachO.h:1–17FirebaseAppDistribution/Sources/FIRAppDistributionMachOSlice.h:1–17FirebaseAuth/Sources/Public/FirebaseAuth/FIRMultiFactor.h:1–17FirebaseAuth/Tests/SampleSwift/ObjCApiTests/FIRAuthApiTestsBase.h:1–17and 153 more
1/* 2 * Copyright 2019 Google 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, softwareFirst 10 of 17 lines.
- 17 lines in 119 placesc-header575 tokens
- 17 lines in 103 placesobjectivec576 tokensFirebaseAppDistribution/Sources/FIRAppDistributionMachO.m:1–17FirebaseAppDistribution/Sources/FIRAppDistributionMachOSlice.m:1–17FirebaseAuth/Sources/ObjC/FIRMultiFactorConstants.m:1–17FirebaseAuth/Tests/SampleSwift/ObjCApiTests/AccountInfoTests.m:1–17FirebaseAuth/Tests/SampleSwift/ObjCApiTests/AnonymousAuthTests.m:1–17and 98 more
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| objectivec | 838 | 185,927 | 2,558 | 32,094 | 17.26% |
| c-header | 977 | 80,988 | 1,929 | 22,192 | 27.4% |
| swift | 1,001 | 166,282 | 1,405 | 17,766 | 10.68% |
| cpp | 197 | 44,035 | 280 | 4,175 | 9.48% |
| python | 22 | 11,725 | 30 | 446 | 3.8% |
| bash | 69 | 6,142 | 3 | 92 | 1.5% |
| c | 14 | 5,590 | 3 | 52 | 0.93% |
| ruby | 8 | 1,737 | 0 | 0 | 0% |
| javascript | 1 | 229 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| c-header | 1,061 | 134,369 | 3,237 | 41,360 | 30.78% |
| cpp | 419 | 145,159 | 2,670 | 28,770 | 19.82% |
| objectivec | 853 | 187,597 | 2,585 | 32,439 | 17.29% |
| json | 96 | 95,016 | 2,247 | 84,782 | 89.23% |
| swift | 1,012 | 166,763 | 1,406 | 17,780 | 10.66% |
| yaml | 61 | 6,187 | 66 | 815 | 13.17% |
| txt | 40 | 2,571 | 66 | 781 | 30.38% |
| log | 2 | 673 | 60 | 512 | 76.08% |
| python | 24 | 12,208 | 37 | 536 | 4.39% |
| c | 19 | 6,143 | 17 | 248 | 4.04% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Oct 2, 2026 | #2 | 6,884 (+112) | 3,839 | 786,167 | 12,427 | 26.53% | 15.28% | E 37.5 | fbeeaa4 |
| Oct 1, 2026 | #5 | 6,781 (+8) | 3,839 | 786,012 | 12,425 | 26.53% | 15.27% | E 37.5 | 5dd4053 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.