Repository Analysis

apache/pouchdb

:kangaroo: - PouchDB is a pocket-sized database.

5.8 Low AI signal View on GitHub
5.8
Adjusted Score
5.8
Raw Score
100%
Time Factor
2026-05-30
Last Push
17,573
Stars
JavaScript
Language
119,946
Lines of Code
391
Files
105
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 63HIGH 1MEDIUM 4LOW 37

Pattern Findings

105 matches across 7 categories. Click a row to expand file-level details.

Hallucination Indicators63 hits · 640 pts
SeverityFileLineSnippet
CRITICALtests/integration/test.get.js216 doc._revisions.ids.length.should.equal(3, 'correct revisions length');
CRITICALtests/integration/test.get.js240 doc._revisions.ids.length.should.equal(4, 'correct revisions length');
CRITICALtests/integration/test.get.js616 doc._revisions.ids.length.should.equal(2, 'got two revs');
CRITICALtests/integration/test.replication.js1237 res.rows.should.have.length.above(0, 'first');
CRITICALtests/integration/test.replication.js1242 res.rows.should.have.length.above(0, 'second');
CRITICALtests/integration/test.attachments.js3308 doc._attachments.one.revpos.should.equal(1);
CRITICALtests/integration/test.attachments.js3312 doc._attachments.two.revpos.should.equal(2);
CRITICALtests/integration/test.attachments.js3313 doc._attachments.one.revpos.should.equal(1);
CRITICALtests/integration/test.attachments.js3316 doc._attachments.one.revpos.should.equal(3);
CRITICALtests/integration/test.attachments.js3317 doc._attachments.two.revpos.should.equal(2);
CRITICALtests/integration/test.attachments.js3341 doc._attachments.one.revpos.should.equal(1);
CRITICALtests/integration/test.attachments.js3349 doc._attachments.two.revpos.should.equal(2);
CRITICALtests/integration/test.attachments.js3350 doc._attachments.one.revpos.should.equal(1);
CRITICALtests/integration/test.attachments.js3355 doc._attachments.one.revpos.should.equal(3);
CRITICALtests/integration/test.attachments.js3356 doc._attachments.two.revpos.should.equal(2);
CRITICALtests/integration/test.attachments.js267 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js302 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js339 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js381 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js450 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js527 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js623 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js668 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js746 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js839 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js936 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js996 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js1109 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js1170 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js1289 att.data.should.not.be.a('string');
CRITICALtests/integration/test.attachments.js2575 doc._attachments.mytext.data.should.equal('TXl0ZXh0');
CRITICALtests/integration/test.attachments.js2738 res._attachments.should.not.include.keys('mytext1');
CRITICALtests/integration/test.attachments.js3372 doc._attachments.one.revpos.should.equal(1);
CRITICALtests/integration/test.revs_diff.js37 results.somestuff.missing.should.have.length(1);
CRITICALtests/integration/test.revs_diff.js64 results.somestuff.missing.should.have.length(1);
CRITICALtests/integration/test.revs_diff.js77 results.foo.missing.should.deep.equal(revs, 'listed all revs');
CRITICALtests/integration/test.revs_diff.js154 results.constructor.missing.should.have.length(1);
CRITICALtests/integration/test.viewadapter.js90 viewRequest.result.objectStoreNames.length.should.equal(0);
CRITICALtests/integration/test.viewadapter.js100 docRequest.result.objectStoreNames.length.should.equal(7);
CRITICALtests/integration/test.viewadapter.js139 viewRequest.result.objectStoreNames.length.should.equal(7);
CRITICALtests/integration/test.viewadapter.js148 docRequest.result.objectStoreNames.length.should.equal(7);
CRITICALtests/integration/test.sync.js41 result.pull.errors.should.have.length(0);
CRITICALtests/integration/test.sync.js201 result.pull.errors.should.have.length(0);
CRITICALtests/integration/test.sync.js221 result.pull.errors.should.have.length(0);
CRITICALtests/integration/test.sync.js241 result.pull.errors.should.have.length(0);
CRITICALtests/integration/test.sync.js265 result.pull.errors.should.have.length(0);
CRITICALtests/integration/test.sync.js285 result.pull.errors.should.have.length(0);
CRITICALtests/integration/test.sync.js578 result.pull.errors.should.have.length(0);
CRITICALtests/integration/test.changes.js187 results.results.length.should.be.at.least(2);
CRITICALtests/integration/test.changes.js1411 ch.doc._conflicts.length.should.equal(1);
CRITICALtests/integration/test.all_docs.js288 result.doc._conflicts.should.be.instanceof(Array);
CRITICALtests/integration/test.all_docs.js289 result.doc._conflicts.should.have.length(2);
CRITICALtests/integration/test.all_docs.js303 row.doc._conflicts.should.be.instanceof(Array);
CRITICALtests/integration/test.all_docs.js304 row.doc._conflicts.should.have.length(2);
CRITICALtests/integration/test.bulk_docs.js1035 doc._revisions.ids.length.should.equal(expected);
CRITICALtests/integration/test.bulk_docs.js1072 doc._revisions.ids.length.should.equal(LIMIT);
CRITICALtests/integration/test.basics.js1116 fullDocs[0].ok._revisions.ids.should.have.length(num);
CRITICALtests/find/test-suite-1/test.array.js43 explainResp.index.name.should.deep.equal('_all_docs');
CRITICALtests/find/test-suite-1/test.array.js59 explainResp.index.name.should.deep.equal('name-index');
CRITICALtests/mapreduce/test.persisted.js312 res.rows.length.should.be.within(0, 2);
3 more matches not shown…
Over-Commented Block24 hits · 24 pts
SeverityFileLineSnippet
LOWbin/test-webpack.sh1#!/usr/bin/env -S bash -e
LOWtests/integration/leveldown.migration.js101 it('should work', function () {
LOWtests/integration/leveldown.migration.js121 //var docsB = [{
LOWtests/integration/test.issue2674.js41// 5. On client B I synchronized its local db with remote db (in the same way
LOWtests/integration/test.compaction.js521 // We're testing some functionality specific to the implementation
LOWtests/integration/deps/pouchdb-3.2.0-postfixed.js1// PouchDBVersion320 3.2.0
LOWtests/integration/deps/pouchdb-7.3.1-postfixed.js1// PouchDBVersion731 7.3.1
LOWtests/integration/deps/pouchdb-2.0.0-postfixed.js4921},{"./adapters/http":2,"./adapters/idb":3,"./adapters/leveldb":20,"./adapters/websql":4,"./deps/ajax":6,"./deps/errors":
LOWtests/integration/deps/pouchdb-2.0.0-postfixed.js6241//
LOWtests/integration/deps/pouchdb-2.2.0-postfixed.js4741// for a better overview of what this is doing, read:
LOWtests/integration/deps/pouchdb-2.2.0-postfixed.js6521 } else {
LOWtests/integration/deps/pouchdb-8.0.1-postfixed.js1// PouchDBVersion801 8.0.1
LOWtests/integration/deps/pouchdb-3.0.6-postfixed.js5701},{"./adapters/http":2,"./adapters/idb":3,"./adapters/leveldb":26,"./adapters/websql":5,"./deps/ajax":8,"./deps/errors":
LOWtests/integration/deps/pouchdb-3.0.6-postfixed.js7601 return fun.call(this, args);
LOWtests/fuzzy/test.fuzzy.js1'use strict';
LOWtests/find/test-suite-1/test.skip.js261
LOWtests/find/test-suite-1/test.skip.js281// // should have one document less because skip: 1
LOWdocs/src/less/bootstrap/forms.less101// input[type="datetime"]
LOWdocs/src/less/bootstrap/forms.less321
LOWdocs/src/less/bootstrap/responsive-utilities.less1//
LOWdocs/src/less/bootstrap/normalize.less321
LOWdocs/src/less/bootstrap/mixins.less1//
LOWdocs/src/less/bootstrap/mixins.less61}
LOWdocs/src/less/bootstrap/mixins.less881 color: @text-color;
Hyper-Verbose Identifiers12 hits · 14 pts
SeverityFileLineSnippet
LOWbin/build-pouchdb.js126function buildPluginsForBrowserify() {
LOWtests/misc/sync-gateway-config-server.js7function createSyncGatewayConfigServer() {
LOWtests/integration/test.replication.js575 function ensureCheckpointIsMissing(db, replicationId) {
LOWtests/integration/browser.migration.js18 function usingDefaultPreferredAdapters() {
LOWtests/integration/worker.js23function postAttachmentThenAllDocs(name) {
LOWtests/integration/test.viewadapter.js42 function getDbNamesFromLevelDBFolder(name) {
LOWtests/integration/deps/pouchdb-2.0.0-postfixed.js2635 function countUndeletedNonlocalDocs(e) {
LOWtests/find/test-issues/test.issue7810.js44 function assertWithAndWithoutLengthOf(results, docLen) {
LOWtests/memleak/test.memleak.js73 function SomewhatDummyPouchAdapter(opts,callback) {
LOWtests/memleak/test.memleak.js76 api._close = function SomewhatDummyPouchAdapterClose(callback) {
LOWtests/memleak/test.memleak.js83 api._info = function SomewhatDummyPouchAdapterInfo(callback) {
LOWtests/memleak/test.memleak.js98 SomewhatDummyPouchAdapter.valid = function SomwehatDummyPouchAdapterValid() { return true; };
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippet
MEDIUMbin/release.sh18# Create a temporary build directory
MEDIUMdocs/src/less/bootstrap/variables.less257//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
MEDIUMdocs/src/less/bootstrap/variables.less306//## Define the maximum width of `.container` for different screen sizes.
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippet
HIGHCONTRIBUTING.md177Thus, it is expressly forbidden to contribute material generated by AI, LLMs,
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMdocs/_includes/api/replication.html82As with [changes()](#changes), you can also omit `live`, in which case you can use `replicate()` in the callback/promise
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippet
LOWtests/integration/test.attachments.js3255 function getData(cb) {