Skip to content

feat: pre-announcement hardening across kernel, adapters, lenses, CLI, and supply chain - #43

Merged
cevheri merged 16 commits into
mainfrom
hardening/pre-announcement
Jul 3, 2026
Merged

feat: pre-announcement hardening across kernel, adapters, lenses, CLI, and supply chain#43
cevheri merged 16 commits into
mainfrom
hardening/pre-announcement

fix(adapter,dst): narrow directory-fsync error handling; document the…

a0978c3
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jul 3, 2026 in 41s

Annotations

Check warning on line 259 in src/core.hardening.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer a more specific assertion instead of this generic one, e.g. "expect(new Uint8Array(readFileSync(path))).toHaveLength(disk.length)".

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lKktn00wtKe1XyHYE&open=AZ8lKktn00wtKe1XyHYE&pullRequest=43

Check failure on line 244 in src/lens/document.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest functions more than 4 levels deep.

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lKkp600wtKe1XyHYB&open=AZ8lKkp600wtKe1XyHYB&pullRequest=43

Check warning on line 97 in src/sim/fuzz.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer a more specific assertion instead of this generic one, e.g. "expect(recovered).toHaveLength(model.size)".

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lCdPxoYG4JGBnxoYn&open=AZ8lCdPxoYG4JGBnxoYn&pullRequest=43

Check warning on line 56 in src/cli/run.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

`String.raw` should be used to avoid escaping `\`.

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lCdMeoYG4JGBnxoYh&open=AZ8lCdMeoYG4JGBnxoYh&pullRequest=43

Check warning on line 249 in src/lens/hardening.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer a more specific assertion instead of this generic one, e.g. "expect(users.find({}).toArray()).toHaveLength(2)".

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lCdOZoYG4JGBnxoYk&open=AZ8lCdOZoYG4JGBnxoYk&pullRequest=43

Check warning on line 63 in src/lens/catalog.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#codePointAt()` over `String#charCodeAt()`.

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8mSPKKqYrT-HlCcQWq&open=AZ8mSPKKqYrT-HlCcQWq&pullRequest=43

Check warning on line 328 in src/core.hardening.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer a more specific assertion instead of this generic one, e.g. "expect(file.data).toHaveLength(sizeBefore)".

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lCdQUoYG4JGBnxoYp&open=AZ8lCdQUoYG4JGBnxoYp&pullRequest=43

Check warning on line 175 in src/sim/dst.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer a more specific assertion instead of this generic one, e.g. "expect(fs.durableBytes(WAL)).toHaveLength(before.length)".

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lCdPmoYG4JGBnxoYm&open=AZ8lCdPmoYG4JGBnxoYm&pullRequest=43

Check warning on line 157 in src/sim/dst.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer a more specific assertion instead of this generic one, e.g. "expect(after).toHaveLength(before.length)".

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lCdPmoYG4JGBnxoYl&open=AZ8lCdPmoYG4JGBnxoYl&pullRequest=43

Check failure on line 551 in src/core.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lCdQIoYG4JGBnxoYo&open=AZ8lCdQIoYG4JGBnxoYo&pullRequest=43

Check warning on line 66 in src/lens/hardening.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer a more specific assertion instead of this generic one, e.g. "expect(tenants.all().toArray()).toHaveLength(2)".

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lCdOZoYG4JGBnxoYj&open=AZ8lCdOZoYG4JGBnxoYj&pullRequest=43

Check warning on line 127 in src/sim/dst.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer a more specific assertion instead of this generic one, e.g. "expect(fs.durableBytes(WAL)).toHaveLength(before.length)".

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lKks000wtKe1XyHYC&open=AZ8lKks000wtKe1XyHYC&pullRequest=43

Check warning on line 61 in src/lens/catalog.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#codePointAt()` over `String#charCodeAt()`.

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8mSPKKqYrT-HlCcQWp&open=AZ8mSPKKqYrT-HlCcQWp&pullRequest=43

Check warning on line 228 in src/core.hardening.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer a more specific assertion instead of this generic one, e.g. "expect(disk).toHaveLength(length)".

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lKktn00wtKe1XyHYD&open=AZ8lKktn00wtKe1XyHYD&pullRequest=43

Check warning on line 56 in src/cli/run.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#codePointAt()` over `String#charCodeAt()`.

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8lCdMeoYG4JGBnxoYi&open=AZ8lCdMeoYG4JGBnxoYi&pullRequest=43

Check warning on line 217 in src/adapter/node-fs.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not use an object literal as default for parameter `io`.

See more on https://sonarcloud.io/project/issues?id=libredb_libredb-database&issues=AZ8mu-j4ahbLWvi3l2SI&open=AZ8mu-j4ahbLWvi3l2SI&pullRequest=43