Zotero is a free, easy-to-use tool to help you collect, organize, annotate, cite, and share your research sources.
This report presents the forensic synthetic code analysis of zotero/zotero, a JavaScript project with 14,703 GitHub stars. SynthScan v2.0 examined 373,786 lines of code across 1007 source files, recording 308 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 2.6 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 308 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/tests/recognizeDocumentTest.js | 47 | && Zotero.Translate.Search.prototype.translate.restore(); | CODE |
| CRITICAL | test/tests/itemPaneTest.js | 1038 | = preview._reader._internalReader._annotationManager._annotations.find( | CODE |
| CRITICAL | test/tests/itemPaneTest.js | 1054 | = preview._reader._internalReader._annotationManager._annotations.find( | CODE |
| CRITICAL | test/tests/itemPaneTest.js | 1160 | = preview._reader._internalReader._annotationManager._annotations.find( | CODE |
| CRITICAL | test/tests/itemPaneTest.js | 1187 | = preview._reader._internalReader._annotationManager._annotations.find( | CODE |
| CRITICAL | test/tests/itemPaneTest.js | 1215 | = preview._reader._internalReader._annotationManager._annotations.find( | CODE |
| CRITICAL | test/tests/itemPaneTest.js | 2250 | return Zotero.Prefs.get('sidenav.order') || ZoteroPane.itemPane._itemDetails.sidenav._builtInPanes.join(','); | CODE |
| CRITICAL | test/tests/integrationTest.js | 405 | Zotero.Integration.Progress.prototype.show.restore(); | CODE |
| CRITICAL | test/tests/zfsTest.js | 873 | Zotero.Sync.Storage.Local.storageRemainingForLibrary.delete(items[0].libraryID); | CODE |
| CRITICAL | test/tests/zfsTest.js | 893 | Zotero.Sync.Storage.Local.storageRemainingForLibrary.set(items[0].libraryID, 0); | CODE |
| CRITICAL | test/tests/zfsTest.js | 901 | Zotero.Sync.Storage.Local.storageRemainingForLibrary.delete(items[0].libraryID); | CODE |
| CRITICAL | chrome/content/zotero/zoteroPane.js | 5032 | var text = event.currentTarget.ownerDocument.popupNode.ownerDocument.defaultView.getSelection().toString(); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 13250 | //this.state.registry.registry[this.Item.id].disambig.givens = this.state.tmp.disambig_settings.givens.slice(); | COMMENT |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 10548 | done_vars: state.tmp.group_context.tip.done_vars.slice() | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 12237 | this.state.tmp.name_node.top.blobs.pop(); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 12238 | this.state.tmp.name_node.top.blobs.push(blob); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 12336 | myqueue = this.state.tmp.name_node.top.blobs.slice(-1)[0].blobs; | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 12349 | myqueue = this.state.tmp.name_node.top.blobs.slice(-1)[0].blobs; | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 12357 | this.state.tmp.name_node.top.blobs.pop(); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 12374 | this.state.tmp.name_node.top.blobs.pop(); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 13552 | this.state.tmp.name_node.children.push(blob); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 13983 | this.state.tmp.name_node.children.push(blob); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 15257 | state.tmp.group_context.tip.done_vars.push(this.variables_real[0]); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 15456 | state.tmp.group_context.tip.done_vars.push("citation-number"); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/citeproc.js | 24550 | this.state.registry.registry[Item.id].disambig.givens = this.state.tmp.disambig_settings.givens.slice(); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/integration.js | 3508 | serializeCitationItem.itemData = Zotero.Integration.currentSession.style.sys.retrieveItem(citationItem.id); | CODE |
| CRITICAL | …/content/zotero/xpcom/translation/translate_firefox.js | 758 | Zotero.Translate.IO.Read.prototype.__defineGetter__("contentLength", | CODE |
| CRITICAL | chrome/content/zotero/xpcom/storage/storageRequest.js | 108 | Zotero.Sync.Storage.Request.prototype.__defineGetter__('percentage', function () { | CODE |
| CRITICAL | chrome/content/zotero/xpcom/storage/storageRequest.js | 140 | Zotero.Sync.Storage.Request.prototype.__defineGetter__('remaining', function () { | CODE |
| CRITICAL | chrome/content/zotero/xpcom/storage/storageEngine.js | 139 | if (!this.background && Zotero.Sync.Storage.Local.storageRemainingForLibrary.has(libraryID)) { | CODE |
| CRITICAL | chrome/content/zotero/xpcom/storage/storageEngine.js | 141 | Zotero.Sync.Storage.Local.storageRemainingForLibrary.delete(libraryID) | CODE |
| CRITICAL | chrome/content/zotero/xpcom/storage/zfs.js | 227 | var remaining = Zotero.Sync.Storage.Local.storageRemainingForLibrary.get(item.libraryID); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/storage/zfs.js | 272 | let remaining = Zotero.Sync.Storage.Local.storageRemainingForLibrary.get(item.libraryID); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/storage/zfs.js | 595 | Zotero.Sync.Storage.Local.storageRemainingForLibrary.set(item.libraryID, quota - usage); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/sync/syncEventListeners.js | 338 | Zotero.Sync.Storage.Local.uploadCheckFiles.push({ | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feed.js | 119 | value: Object.freeze(Zotero.Feed._super.prototype.libraryTypes.concat(['feed'])) | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feed.js | 168 | || Zotero.Feed._super.prototype._isValidProp.call(this, prop); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feed.js | 217 | return Zotero.Feed._super.prototype._set.call(this, prop, val); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feed.js | 221 | Zotero.Feed._super.prototype._loadDataFromRow.call(this, row); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feed.js | 245 | let proceed = await Zotero.Feed._super.prototype._initSave.call(this, env); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feed.js | 265 | await Zotero.Feed._super.prototype._saveData.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feed.js | 313 | await Zotero.Feed._super.prototype._finalizeSave.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feed.js | 349 | return Zotero.Feed._super.prototype._finalizeErase.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feed.js | 356 | await Zotero.Feed._super.prototype.erase.call(this, options); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feedItem.js | 95 | await Zotero.FeedItem._super.prototype.loadPrimaryData.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feedItem.js | 106 | return Zotero.FeedItem._super.prototype.setField.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feedItem.js | 133 | Zotero.FeedItem._super.prototype.fromJSON.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feedItem.js | 141 | let proceed = await Zotero.FeedItem._super.prototype._initSave.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feedItem.js | 164 | await Zotero.FeedItem._super.prototype._saveData.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/feedItem.js | 186 | return Zotero.FeedItem._super.prototype._finalizeErase.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/item.js | 104 | Zotero.Item.prototype._dataTypes = Zotero.Item._super.prototype._dataTypes.concat([ | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/item.js | 214 | Zotero.Item._super.prototype._setParentKey.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/item.js | 1573 | var editable = Zotero.Item._super.prototype.isEditable.call(this, op); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/item.js | 1612 | return Zotero.Item._super.prototype._initSave.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/item.js | 6107 | var json = this.constructor._super.prototype.toResponseJSON.call(this, options); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/search.js | 45 | Zotero.Search.prototype._dataTypes = Zotero.Search._super.prototype._dataTypes.concat([ | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/search.js | 167 | return Zotero.Search._super.prototype._initSave.apply(this, arguments); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/search.js | 289 | await Zotero.Search._super.prototype._finalizeErase.call(this, env); | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/collection.js | 40 | Zotero.Collection.prototype._dataTypes = Zotero.Collection._super.prototype._dataTypes.concat([ | CODE |
| CRITICAL | chrome/content/zotero/xpcom/data/collection.js | 255 | var proceed = await Zotero.Collection._super.prototype._initSave.apply(this, arguments); | CODE |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | types/gecko/index.d.ts | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public | COMMENT |
| LOW | app/build.sh | 1 | #!/bin/bash -e | COMMENT |
| LOW | app/build.sh | 921 | # Add devtools | COMMENT |
| LOW | app/win/installer/7zstub/src/Common/MyWindows.h | 1 | // MyWindows.h | COMMENT |
| LOW | app/win/installer/7zstub/src/Common/MyWindows.h | 81 | #define E_ABORT ((HRESULT)0x80004004L) | COMMENT |
| LOW | app/win/installer/7zstub/src/Common/MyUnknown.h | 1 | // MyUnknown.h | COMMENT |
| LOW | app/win/installer/7zstub/src/Common/MyUnknown.h | 21 | #include "MyWindows.h" | COMMENT |
| LOW | app/win/installer/7zstub/src/Common/Alloc.cpp | 1 | // Common/Alloc.cpp | COMMENT |
| LOW | app/win/installer/7zstub/src/Common/ComTry.h | 1 | // ComTry.h | COMMENT |
| LOW | app/win/installer/7zstub/src/Common/Alloc.h | 21 | COMMENT | |
| LOW | app/win/installer/7zstub/src/7zip/MyVersion.h | 1 | #define MY_VER_MAJOR 4 | COMMENT |
| LOW | …in/installer/7zstub/src/7zip/UI/Common/OpenArchive.cpp | 1 | // OpenArchive.cpp | COMMENT |
| LOW | …in/installer/7zstub/src/7zip/UI/Common/OpenArchive.cpp | 21 | #endif | COMMENT |
| LOW | …n/installer/7zstub/src/7zip/UI/Common/ArchiverInfo.cpp | 1 | // ArchiverInfo.cpp | COMMENT |
| LOW | …/win/installer/7zstub/src/7zip/UI/Common/OpenArchive.h | 1 | // OpenArchive.h | COMMENT |
| LOW | …taller/7zstub/src/7zip/UI/Common/ArchiveOpenCallback.h | 1 | // ArchiveOpenCallback.h | COMMENT |
| LOW | …staller/7zstub/src/7zip/Archive/Common/CoderMixer2MT.h | 1 | // CoderMixer2MT.h | COMMENT |
| LOW | …staller/7zstub/src/7zip/Archive/Common/CoderMixer2MT.h | 41 | }; | COMMENT |
| LOW | …win/installer/7zstub/src/7zip/Archive/7z/7zExtract.cpp | 1 | // 7zExtract.cpp | COMMENT |
| LOW | …win/installer/7zstub/src/7zip/Archive/7z/7zHandler.cpp | 1 | // 7zHandler.cpp | COMMENT |
| LOW | …p/win/installer/7zstub/src/7zip/Archive/7z/7zHandler.h | 1 | // 7z/Handler.h | COMMENT |
| LOW | …p/win/installer/7zstub/src/7zip/Archive/7z/7zHandler.h | 61 | #ifndef __7Z_SET_PROPERTIES | COMMENT |
| LOW | app/win/installer/7zstub/src/7zip/Archive/7z/7zDecode.h | 1 | // 7zDecode.h | COMMENT |
| LOW | …/win/installer/7zstub/src/7zip/Archive/7z/7zDecode.cpp | 1 | // 7zDecode.cpp | COMMENT |
| LOW | …/win/installer/7zstub/src/7zip/Archive/7z/7zDecode.cpp | 21 | #ifdef COMPRESS_PPMD | COMMENT |
| LOW | …/win/installer/7zstub/src/7zip/Archive/7z/7zDecode.cpp | 41 | COMMENT | |
| LOW | app/win/installer/7zstub/src/7zip/Common/StdAfx.h | 1 | // StdAfx.h | COMMENT |
| LOW | …p/win/installer/7zstub/src/7zip/Common/FileStreams.cpp | 1 | // FileStreams.cpp | COMMENT |
| LOW | …/src/7zip/FileManager/Resource/ProgressDialog/StdAfx.h | 1 | // stdafx.h | COMMENT |
| LOW | …nstaller/7zstub/src/7zip/Bundles/SFXSetup-moz/StdAfx.h | 1 | // StdAfx.h | COMMENT |
| LOW | …stub/src/7zip/Bundles/SFXSetup-moz/ExtractCallback.cpp | 1 | // ExtractCallback.h | COMMENT |
| LOW | …taller/7zstub/src/7zip/Bundles/SFXSetup-moz/resource.h | 1 | #define IDI_ICON3 159 | COMMENT |
| LOW | …7zstub/src/7zip/Bundles/SFXSetup-moz/ExtractCallback.h | 1 | // ExtractCallback.h | COMMENT |
| LOW | …nstaller/7zstub/src/7zip/Bundles/SFXSetup-moz/Main.cpp | 1 | // Main.cpp | COMMENT |
| LOW | …7zstub/src/7zip/Bundles/SFXSetup-moz/ExtractEngine.cpp | 1 | // ExtractEngine.cpp | COMMENT |
| LOW | app/win/installer/7zstub/src/Windows/COM.h | 41 | #define GUIDToString GUIDToStringW | COMMENT |
| LOW | app/win/installer/7zstub/src/Windows/FileDir.cpp | 1 | // Windows/FileDir.cpp | COMMENT |
| LOW | …win/installer/7zstub/src/Windows/Control/ProgressBar.h | 41 | #endif | COMMENT |
| LOW | app/win/installer/7zstub/src/Windows/Control/Dialog.h | 141 | #endif | COMMENT |
| LOW | app/update-packaging/common.sh | 1 | #!/bin/bash | COMMENT |
| LOW | app/update-packaging/common.sh | 241 | # Building updates repeats the same expensive work: the same file contents get | COMMENT |
| LOW | app/scripts/optimizejars.py | 1 | # ***** BEGIN LICENSE BLOCK ***** | COMMENT |
| LOW | app/scripts/optimizejars.py | 21 | # Contributor(s): | COMMENT |
| LOW | app/assets/win/skin/preferences/preferences.css | 1 | /* | COMMENT |
| LOW | app/assets/win/skin/preferences/preferences.css | 21 | # the Initial Developer. All Rights Reserved. | COMMENT |
| LOW | app/assets/mac/chrome/skin/preferences/preferences.css | 1 | /* | COMMENT |
| LOW | app/assets/mac/chrome/skin/preferences/preferences.css | 21 | # the Initial Developer. All Rights Reserved. | COMMENT |
| LOW | app/assets/unix/skin/preferences/preferences.css | 1 | %if 0 | COMMENT |
| LOW | app/assets/unix/skin/preferences/preferences.css | 21 | # Portions created by the Initial Developer are Copyright (C) 2005 | COMMENT |
| LOW | test/tests/supportTest.js | 121 | }); | COMMENT |
| LOW | test/tests/dataObjectsTest.js | 121 | it("should return items sorted hierarchically", async function () { | COMMENT |
| LOW | test/resource/pako_inflate.js | 641 | if (op > whave) { | COMMENT |
| LOW | test/resource/pako_inflate.js | 2081 | strm.msg = 'invalid distance too far back'; | COMMENT |
| LOW | scss/elements/_zoteroSearch.scss | 41 | // A nested group has no box of its own. Each nesting level sets an indent that the | COMMENT |
| LOW | scss/elements/_quickSearchTextbox.scss | 21 | // window and crops just enough on a narrow one, keeping the buttons to its right (collapse/ | COMMENT |
| LOW | scss/abstracts/_placeholders.scss | 1 | // | COMMENT |
| LOW | chrome/content/zotero/collectionTree.jsx | 1641 | return false; | COMMENT |
| LOW | chrome/content/zotero/libraryTree.js | 261 | // and 'copy'/'link' for drags with system-default modifier keys | COMMENT |
| LOW | chrome/content/zotero/zoteroPane.js | 1761 | if (!collectionTreeRows.length) { | COMMENT |
| LOW | chrome/content/zotero/customElements.js | 121 | // This is due to some kind of race condition that arises when the dialog | COMMENT |
| 55 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/tests/schemaTest.js | 286 | function createResponseWithMessage(message) { | CODE |
| LOW | test/tests/translateTest.js | 11 | function saveItemsThroughTranslator(translatorType, items, translateOptions = {}) { | CODE |
| LOW | test/tests/zoteroPaneTest.js | 2186 | async function selectMultipleCollections(collections) { | CODE |
| LOW | test/tests/integrationTest.js | 320 | function setDefaultIntegrationDocPrefs() { | CODE |
| LOW | test/tests/retractionsTest.js | 66 | async function createRetractedItemWithExtraDOI(options = {}) { | CODE |
| LOW | test/tests/collectionViewItemTreeTest.js | 2728 | async function selectMultipleCollections(collections) { | CODE |
| LOW | test/tests/sdtTest.js | 365 | function stubStructuredDocumentTextWorker() { | CODE |
| LOW⚡ | test/tests/sdtTest.js | 379 | function getStaleProcessorVersionSDTPackBytes() { | CODE |
| LOW⚡ | test/tests/sdtTest.js | 383 | function getWrongProcessorTypeSDTPackBytes() { | CODE |
| LOW⚡ | test/tests/sdtTest.js | 387 | function getIncompatibleSchemaMajorSDTPackBytes() { | CODE |
| LOW | test/tests/undoHistoryTest.js | 1255 | function setNoRemoteChangesResponses(lastLibraryVersion) { | CODE |
| LOW | test/tests/citeprocRsBridgeTest.js | 30 | function assertProducedCitationsAreEqual(citation) { | CODE |
| LOW | test/content/support.js | 869 | function generateAllTypesAndFieldsData() { | CODE |
| LOW | test/content/support.js | 1004 | var generateCiteProcJSExportData = async function generateCiteProcJSExportData(currentData) { | CODE |
| LOW | test/content/support.js | 1025 | var generateTranslatorExportData = async function generateTranslatorExportData(legacy, currentData) { | CODE |
| LOW | chrome/content/zotero/locateManager.jsx | 148 | async function restoreDefaultLocateEngines() { | CODE |
| LOW | chrome/content/zotero/itemTreeColumns.jsx | 410 | function getColumnDefinitionsByDataKey(dataKeys) { | CODE |
| LOW | chrome/content/zotero/zoteroPane.js | 4854 | function attachmentsWithExtractableAnnotations(item) { | CODE |
| LOW | chrome/content/zotero/zoteroPane.js | 4861 | function isAttachmentWithExtractableAnnotations(item) { | CODE |
| LOW | chrome/content/zotero/editMenuOverlay.js | 11 | function goUpdateGlobalEditMenuItems(force) { | CODE |
| LOW | chrome/content/zotero/editMenuOverlay.js | 32 | function goUpdateUndoEditMenuItems() { | CODE |
| LOW | chrome/content/zotero/xpcom/cite.js | 161 | "getBibliographyFormatParameters":function getBibliographyFormatParameters(bib) { | CODE |
| LOW | chrome/content/zotero/xpcom/cite.js | 254 | "makeFormattedBibliography":function makeFormattedBibliography(cslEngine, format) { | CODE |
| LOW | chrome/content/zotero/xpcom/plugins.js | 515 | function rebuildUnifiedPluginSource(zoteroLocales) { | CODE |
| LOW | chrome/content/zotero/xpcom/intl.js | 236 | function setOrClearIntlPref(name, type) { | CODE |
| LOW | chrome/content/zotero/xpcom/citeproc.js | 5958 | function blobHasDescendantMergingPunctuation(parentChar,blob) { | CODE |
| LOW | chrome/content/zotero/xpcom/http.js | 580 | function wrapNotificationCallbacks(callbacks) { | CODE |
| LOW | …/content/zotero/xpcom/translation/translate_firefox.js | 163 | function ExposedPropsWaiverHandler() { | CODE |
| LOW | chrome/content/zotero/xpcom/server/server_localAPI.js | 1019 | function buildSearchFromSearchSyntax(parentSearch, searchStrings, condition) { | CODE |
| LOW | chrome/content/zotero/xpcom/data/itemFields.js | 273 | function getFieldIDFromTypeAndBase(itemType, baseField) { | CODE |
| LOW | chrome/content/zotero/xpcom/data/itemFields.js | 306 | function getBaseIDFromTypeAndField(itemType, typeField) { | CODE |
| LOW | chrome/content/zotero/integration/citationDialog.js | 198 | function cleanupBeforeDialogClosing() { | CODE |
| LOW | chrome/content/scaffold/scaffold.js | 2293 | function eslintOutputToModelMarkers(output, modelVersionId) { | CODE |
| LOW | scripts/migrate-fx140/bluebird-to-async.js | 95 | function isStaticPromiseMethodCall(path, methodFilter) { | CODE |
| LOW | scripts/migrate-fx140/static-import.js | 41 | function tryReplacingWithStaticImport( | CODE |
| LOW | scripts/migrate-fx140/static-import.js | 107 | function replaceImportESModuleCall( | CODE |
| LOW | scripts/migrate-fx140/use-import-export-declarations.js | 69 | function collectAndRemoveExportedSymbols(inputFile, root) { | CODE |
| LOW | scripts/migrate-fx140/import-to-import_esmodule.js | 105 | function isMemberExpressionMatchingPatterns(node, patterns) { | CODE |
| LOW | scripts/migrate-fx140/import-to-import_esmodule.js | 153 | function findDefineESModuleGettersStmt(path, expectedIDs) { | CODE |
| LOW | scripts/migrate-fx140/import-to-import_esmodule.js | 421 | function tryReplaceActorDefinition(inputFile, path, name) { | CODE |
| LOW | scripts/migrate-fx140/utils.js | 84 | function memberExpressionsToIdentifiers(memberExpr) { | CODE |
| LOW | scripts/migrate-fx140/utils.js | 114 | function isMemberExpressionWithIdentifiers(node, expectedIDs) { | CODE |
| LOW | scripts/migrate-fx140/utils.js | 132 | function rewriteMemberExpressionWithIdentifiers(node, toIDs) { | CODE |
| LOW | scripts/migrate-fx140/utils.js | 140 | function createMemberExpressionWithIdentifiers(jscodeshift, ids) { | CODE |
| LOW | scripts/migrate-fx140/migrate.py | 507 | def asyncify_rewrite_bluebird_methods(jss, summary): | CODE |
| LOW | scripts/migrate-fx140/migrate.py | 631 | def try_rename_components_conf(command_context, path, jsm_name, esm_name): | CODE |
| LOW | js-build/utils.js | 60 | async function recursivelyRemoveEmptyDirsUp(dirsSeen, invalidDirsCount = 0, removedDirsCount = 0) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/tests/fileTest.js | 524 | const text1KB = Array.from({ length: 64 }, _ => "lorem ipsum foo\n").join(''); | CODE |
| LOW | test/tests/httpTest.js | 602 | let username = "user@example.com"; | CODE |
| LOW | test/tests/itemPaneTest.js | 1881 | let item = await createDataObject('item', { title: 'Lorem Ipsum' }); | CODE |
| LOW | test/tests/itemPaneTest.js | 1886 | fileBaseName: "Lorem Ipsum", // Simulate auto-renaming, normally code would call getRenamedFileBaseNameIfAllowedType | CODE |
| LOW | test/tests/itemPaneTest.js | 1903 | assert.equal(label.value, "Lorem Ipsum.pdf"); | CODE |
| LOW | test/tests/itemPaneTest.js | 1910 | let item = await createDataObject('item', { title: 'Lorem Ipsum' }); | CODE |
| LOW | test/tests/itemPaneTest.js | 1932 | assert.equal(label.value, "Lorem Ipsum.txt"); | CODE |
| LOW | test/tests/itemPaneTest.js | 1963 | let item = await createDataObject('item', { title: 'Lorem Ipsum' }); | CODE |
| LOW | test/tests/itemPaneTest.js | 1968 | fileBaseName: "Lorem Ipsum", | CODE |
| LOW | test/tests/rtfScanTest.js | 20 | testItem2.setField('title', 'Lorem Ipsum'); | CODE |
| LOW | test/tests/attachmentsTest.js | 1494 | item = createUnsavedDataObject('item', { title: 'Lorem Ipsum', itemType: 'journalArticle', libraryID: 1 }); | CODE |
| LOW | test/tests/attachmentsTest.js | 1564 | 'Barius and Pixelus - 1975 - Lorem Ipsum' | CODE |
| LOW | test/tests/attachmentsTest.js | 1600 | ' Lorem Ipsum ' | CODE |
| LOW | test/tests/attachmentsTest.js | 1866 | 'Lorem Ipsum-1975' | CODE |
| LOW | test/tests/attachmentsTest.js | 1908 | 'Barius and Pixelus - 1975 - Lorem Ipsum' | CODE |
| LOW | test/tests/attachmentsTest.js | 2002 | 'Lorem Ipsum' | CODE |
| LOW | test/tests/undoHistoryTest.js | 720 | lastName: 'John Doe', | CODE |
| LOW | test/tests/undoHistoryTest.js | 725 | assert.equal(item.getCreator(0).lastName, 'John Doe'); | CODE |
| LOW | test/tests/mendeleyImportTest.js | 547 | /^<h1>TEST<\/h1>\n<p><span class="highlight" data-annotation="((?:(?:%[0-9A-F]{2}|[^<>'" %])+))">“Highlight text”<\/ | CODE |
| LOW | test/tests/mendeleyImportTest.js | 591 | /^<h1>TEST<\/h1>\n<p><span class="highlight" data-annotation="((?:(?:%[0-9A-F]{2}|[^<>'" %])+))">“A purely peer-to-p | CODE |
| LOW | test/tests/data/mendeleyMock/items-updated.json | 17 | "source": "lorem ipsum", | CODE |
| LOW | test/tests/data/mendeleyMock/items-updated.json | 35 | "source": "lorem ipsum", | CODE |
| LOW | test/tests/data/mendeleyMock/items-simple.json | 14 | "source": "lorem ipsum", | CODE |
| LOW | test/tests/data/mendeleyMock/items-simple.json | 77 | "abstract": "Lorem Ipsum. Nostrud elit ullamco laborum cillum.", | CODE |
| LOW | test/tests/data/mendeleyMock/notebook.json | 72 | "text": "Lorem Ipsum" | CODE |
| LOW | …ests/data/mendeleyMock/items-simple-no-desktop-id.json | 13 | "source": "lorem ipsum", | CODE |
| LOW | …ests/data/mendeleyMock/items-simple-no-desktop-id.json | 74 | "abstract": "Lorem Ipsum. Nostrud elit ullamco laborum cillum.", | CODE |
| LOW | chrome/content/zotero/components/form/input.jsx | 182 | 'maxLength', 'min', 'minLength', 'name', 'placeholder', 'type', 'spellCheck', | CODE |
| LOW | chrome/content/zotero/components/editable/content.jsx | 67 | 'placeholder': !this.hasValue | CODE |
| LOW | chrome/content/zotero/elements/abstractBox.js | 41 | <editable-text multiline="true" data-l10n-id="abstract-field" data-l10n-attrs="placeholder" /> | CODE |
| LOW | chrome/content/zotero/elements/notesContext.js | 34 | <search-textbox data-l10n-id="context-notes-search" data-l10n-attrs="placeholder" | CODE |
| LOW | chrome/content/zotero/elements/styleConfigurator.js | 39 | <div class="placeholder"> | CODE |
| LOW | chrome/content/zotero/elements/editableText.js | 49 | 'placeholder', | CODE |
| LOW | chrome/content/zotero/elements/editableText.js | 134 | return this.getAttribute('placeholder') || ''; | CODE |
| LOW | chrome/content/zotero/elements/editableText.js | 138 | this.setAttribute('placeholder', placeholder || ''); | CODE |
| LOW⚡ | resource/tinymce/tinymce.min.js | 2 | !function(H){"use strict";var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},j=function(n,r){re | CODE |
| LOW | resource/tinymce/themes/modern/theme.min.js | 1 | !function(_){"use strict";var e,t,n,i,r,o=tinymce.util.Tools.resolve("tinymce.ThemeManager"),h=tinymce.util.Tools.resolv | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | app/update-packaging/common.sh | 11 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | app/update-packaging/common.sh | 45 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | app/update-packaging/common.sh | 238 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | app/update-packaging/common.sh | 264 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | app/update-packaging/make_incremental_update.sh | 22 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | app/update-packaging/make_incremental_update.sh | 106 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | app/update-packaging/make_full_update.sh | 22 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | app/update-packaging/make_full_update.sh | 51 | # ----------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scss/scaffold.scss | 36 | #scaffold, #zotero-select-item-dialog { | COMMENT |
| MEDIUM | scss/scaffold.scss | 41 | #scaffold { | COMMENT |
| MEDIUM | chrome/content/zotero/standalone/standalone.js | 1148 | 'chrome://scaffold/content/scaffold.xhtml', | CODE |
| MEDIUM | chrome/content/scaffold/scaffold.js | 33 | var { ZoteroWebTranslationEnvironment } = ChromeUtils.importESModule('chrome://scaffold/content/zoteroWebTranslationEnvi | CODE |
| MEDIUM | chrome/content/scaffold/scaffold.js | 93 | window.messageManager.loadFrameScript('chrome://scaffold/content/content.js', true); | CODE |
| MEDIUM | chrome/content/scaffold/scaffold.js | 735 | window.openDialog("chrome://scaffold/content/load.xhtml", | CODE |
| MEDIUM | chrome/content/scaffold/scaffold.js | 1080 | let value = Zotero.File.getContentsFromURL(`chrome://scaffold/content/templates/${template}.js`); | CODE |
| MEDIUM | chrome/content/scaffold/scaffold.js | 1322 | window.openDialog("chrome://scaffold/content/select.xhtml", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | chrome/content/zotero/zoteroPane.js | 4921 | // but it is not as robust as XUL. Unfortunately we cannot use the original XUL | COMMENT |
| MEDIUM | chrome/content/zotero/xpcom/citeproc.js | 13886 | // XXX Needs a more robust solution than this | COMMENT |
| MEDIUM⚡ | resource/tinymce/tinymce.min.js | 2 | !function(H){"use strict";var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},j=function(n,r){re | CODE |
| MEDIUM⚡ | resource/tinymce/tinymce.min.js | 2 | !function(H){"use strict";var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},j=function(n,r){re | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | chrome/content/zotero/xpcom/editorInstance.js | 346 | // TODO: implement navigating to note editor location | COMMENT |
| LOW | chrome/content/zotero/xpcom/collectionTreeRow.js | 549 | // TODO: implement? | COMMENT |
| LOW | chrome/content/zotero/xpcom/reader.js | 2311 | // TODO: implement these inside reader after redesign is done there | COMMENT |
| LOW | chrome/content/zotero/xpcom/sync/syncLocal.js | 1343 | // TODO: Fix tests so this doesn't happen | COMMENT |
| LOW | chrome/content/zotero/xpcom/data/notes.js | 109 | // TODO: implement this | COMMENT |
| LOW | chrome/content/zotero/elements/noteEditor.js | 319 | // TODO: implement this | COMMENT |
| LOW | chrome/content/scaffold/templates/newWeb.js | 68 | // TODO: implement or add a scrape function template | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | chrome/content/zotero/xpcom/citeproc.js | 6297 | print(JSON.stringify(parent, function(key, val) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/scripts/optimizejars.py | 38 | CODE | |
| LOW | scripts/generate-isbn-ranges.py | 3 | CODE | |
| LOW | scripts/migrate-fx140/migrate.py | 13 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/scripts/createprecomplete.py | 62 | # Open the file so it exists before building the list of files and open it | COMMENT |
| LOW | test/runtests.sh | 177 | # Check if build watch process is running | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | chrome/content/zotero/xpcom/storage/zfs.js | 82 | // Step 1: Request file metadata from the API | COMMENT |
| LOW | chrome/content/zotero/xpcom/storage/zfs.js | 159 | // Step 2: Download the file from storage | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | chrome/content/zotero/xpcom/storage/zfs.js | 82 | // Step 1: Request file metadata from the API | COMMENT |
| LOW | chrome/content/zotero/xpcom/storage/zfs.js | 159 | // Step 2: Download the file from storage | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/scripts/optimizejars.py | 188 | CODE |