Skip to content

perf(mdviewer): use bitwise shift for binary-search midpoint

4ff79e0
Select commit
Loading
Failed to load commit list.
Open

feat(mdviewer): MD editor should stick to max line length of the editor #2938

perf(mdviewer): use bitwise shift for binary-search midpoint
4ff79e0
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 23, 2026 in 59s

Annotations

Check warning on line 37 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this character class by the character itself.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSH&open=AZ5ThAPAJ8rGNG5R0PSH&pullRequest=2938

Check warning on line 64 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Simplify this regular expression to reduce its complexity from 23 to the 20 allowed.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSQ&open=AZ5ThAPAJ8rGNG5R0PSQ&pullRequest=2938

Check failure on line 278 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PST&open=AZ5ThAPAJ8rGNG5R0PST&pullRequest=2938

Check failure on line 345 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSW&open=AZ5ThAPAJ8rGNG5R0PSW&pullRequest=2938

Check warning on line 53 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

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=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSO&open=AZ5ThAPAJ8rGNG5R0PSO&pullRequest=2938

Check warning on line 301 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

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=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSV&open=AZ5ThAPAJ8rGNG5R0PSV&pullRequest=2938

Check warning on line 42 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this character class by the character itself.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSK&open=AZ5ThAPAJ8rGNG5R0PSK&pullRequest=2938

Check warning on line 301 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

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=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSU&open=AZ5ThAPAJ8rGNG5R0PSU&pullRequest=2938

Check warning on line 50 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

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=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSM&open=AZ5ThAPAJ8rGNG5R0PSM&pullRequest=2938

Check warning on line 51 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

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=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSN&open=AZ5ThAPAJ8rGNG5R0PSN&pullRequest=2938

Check warning on line 130 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move function '_packTokens' to the outer scope.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSR&open=AZ5ThAPAJ8rGNG5R0PSR&pullRequest=2938

Check warning on line 39 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this character class by the character itself.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSJ&open=AZ5ThAPAJ8rGNG5R0PSJ&pullRequest=2938

Check failure on line 192 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSS&open=AZ5ThAPAJ8rGNG5R0PSS&pullRequest=2938

Check warning on line 63 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move function '_detectLeading' to the outer scope.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSP&open=AZ5ThAPAJ8rGNG5R0PSP&pullRequest=2938

Check warning on line 38 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this character class by the character itself.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSI&open=AZ5ThAPAJ8rGNG5R0PSI&pullRequest=2938

Check warning on line 36 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this character class by the character itself.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSG&open=AZ5ThAPAJ8rGNG5R0PSG&pullRequest=2938

Check warning on line 49 in src/extensionsIntegrated/Phoenix-live-preview/markdown-line-wrap.js

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=phcode-dev_phoenix&issues=AZ5ThAPAJ8rGNG5R0PSL&open=AZ5ThAPAJ8rGNG5R0PSL&pullRequest=2938