Skip to content

Fix comparisonToDict docstring: plain JS object, not JSON object

7b6de84
Select commit
Loading
Failed to load commit list.
Merged

Add delta workflow helpers and comparison serialization #383

Fix comparisonToDict docstring: plain JS object, not JSON object
7b6de84
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Mar 11, 2026 in 24s

Annotations

Check warning on line 151 in src/jsonCompare.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzdujgHODK20i_YEfCV&open=AZzdujgHODK20i_YEfCV&pullRequest=383

Check warning on line 363 in tests/jsonCompare.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `structuredClone(…)` over `JSON.parse(JSON.stringify(…))` to create a deep clone.

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzcloHRcN6OHpU4apKR&open=AZzcloHRcN6OHpU4apKR&pullRequest=383

Check warning on line 171 in src/deltaHelpers.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzcloJ1cN6OHpU4apKY&open=AZzcloJ1cN6OHpU4apKY&pullRequest=383

Check warning on line 17 in tests/deltaHelpers.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `structuredClone(…)` over `JSON.parse(JSON.stringify(…))` to create a deep clone.

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzcloJrcN6OHpU4apKS&open=AZzcloJrcN6OHpU4apKS&pullRequest=383

Check warning on line 44 in src/deltaHelpers.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `.at(…)` over `[….length - index]`.

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzcloJ1cN6OHpU4apKU&open=AZzcloJ1cN6OHpU4apKU&pullRequest=383

Check failure on line 200 in src/jsonCompare.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzcloKIcN6OHpU4apKZ&open=AZzcloKIcN6OHpU4apKZ&pullRequest=383

Check warning on line 220 in src/jsonCompare.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#replaceAll()` over `String#replace()`.

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzcloKIcN6OHpU4apKa&open=AZzcloKIcN6OHpU4apKa&pullRequest=383

Check warning on line 139 in src/deltaHelpers.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `structuredClone(…)` over `JSON.parse(JSON.stringify(…))` to create a deep clone.

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzcloJ1cN6OHpU4apKW&open=AZzcloJ1cN6OHpU4apKW&pullRequest=383

Check failure on line 149 in src/deltaHelpers.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzcloJ1cN6OHpU4apKX&open=AZzcloJ1cN6OHpU4apKX&pullRequest=383

Check warning on line 181 in src/jsonCompare.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use concise character class syntax '\w' instead of '[a-zA-Z0-9_]'.

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzdSIndH5pNXE3_p9eg&open=AZzdSIndH5pNXE3_p9eg&pullRequest=383

Check failure on line 142 in src/jsonCompare.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=ltwlf_json-diff-ts&issues=AZzdSIndH5pNXE3_p9ef&open=AZzdSIndH5pNXE3_p9ef&pullRequest=383