Skip to content

Add custom ESLint rule to enforce block style guide

5fa39b0
Select commit
Loading
Failed to load commit list.
Draft

Standardize block displayName and description fields with automated enforcement #1601

Add custom ESLint rule to enforce block style guide
5fa39b0
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Dec 10, 2025 in 1m 52s

Annotations

Check warning on line 103 in tools/eslint-rules/rules/block-style-guide.js

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=openops-cloud_openops&issues=AZsH9lHONR_PctvIWgT2&open=AZsH9lHONR_PctvIWgT2&pullRequest=1601

Check warning on line 147 in tools/eslint-rules/rules/block-style-guide.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move function 'startsWithActionVerb' to the outer scope.

See more on https://sonarcloud.io/project/issues?id=openops-cloud_openops&issues=AZsH9lHONR_PctvIWgT4&open=AZsH9lHONR_PctvIWgT4&pullRequest=1601

Check warning on line 116 in tools/eslint-rules/rules/block-style-guide.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move function 'levenshteinDistance' to the outer scope.

See more on https://sonarcloud.io/project/issues?id=openops-cloud_openops&issues=AZsH9lHONR_PctvIWgT3&open=AZsH9lHONR_PctvIWgT3&pullRequest=1601

Check warning on line 78 in tools/eslint-rules/rules/block-style-guide.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move function 'isSentenceCase' to the outer scope.

See more on https://sonarcloud.io/project/issues?id=openops-cloud_openops&issues=AZsH9lHONR_PctvIWgTz&open=AZsH9lHONR_PctvIWgTz&pullRequest=1601

Check warning on line 65 in tools/eslint-rules/rules/block-style-guide.js

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=openops-cloud_openops&issues=AZsH9lHONR_PctvIWgTy&open=AZsH9lHONR_PctvIWgTy&pullRequest=1601

Check warning on line 102 in tools/eslint-rules/rules/block-style-guide.js

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=openops-cloud_openops&issues=AZsH9lHONR_PctvIWgT1&open=AZsH9lHONR_PctvIWgT1&pullRequest=1601

Check failure on line 183 in tools/eslint-rules/rules/block-style-guide.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=openops-cloud_openops&issues=AZsH9lHONR_PctvIWgT5&open=AZsH9lHONR_PctvIWgT5&pullRequest=1601

Check warning on line 86 in tools/eslint-rules/rules/block-style-guide.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move function 'hasInvalidTrailingPeriod' to the outer scope.

See more on https://sonarcloud.io/project/issues?id=openops-cloud_openops&issues=AZsH9lHONR_PctvIWgT0&open=AZsH9lHONR_PctvIWgT0&pullRequest=1601

Check warning on line 38 in tools/eslint-rules/rules/block-style-guide.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move function 'isTitleCase' to the outer scope.

See more on https://sonarcloud.io/project/issues?id=openops-cloud_openops&issues=AZsH9lHONR_PctvIWgTx&open=AZsH9lHONR_PctvIWgTx&pullRequest=1601