Skip to content

Reduce Codacy issues towards an A grade - #29

Merged
davidnmbond merged 1 commit into
mainfrom
chore/codacy-a-grade
Oct 4, 2026
Merged

davidnmbond merged 1 commit into
mainfrom
chore/codacy-a-grade

Reduce Codacy issues: format JS with Prettier, replace Write-Host, ad…

ab841da
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Oct 4, 2026 in 0s

16 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 334
- Added 16
           

Complexity increasing per file
==============================
- Templates/table-generation.js  3
- Templates/relationships.js  2
- Templates/controls.js  2
         

Complexity decreasing per file
==============================
+ SchemaMagic.Web/Services/GitHubService.cs  -1
+ SchemaMagic/GitHubService.cs  -3
+ Templates/table-interaction.js  -5
         

See the complete overview on Codacy

Annotations

Check failure on line 193 in Templates/controls.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/controls.js#L193

This rule identifies use of cryptographically weak random number generators.

Check warning on line 439 in Templates/property-utilities.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/property-utilities.js#L439

Unexpected lexical declaration in case block.

Check warning on line 453 in Templates/property-utilities.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/property-utilities.js#L453

Unexpected lexical declaration in case block.

Check warning on line 29 in Templates/relationships.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/relationships.js#L29

Detected string concatenation with a non-literal variable in a util.format / console.log function.

Check warning on line 123 in Templates/relationships.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/relationships.js#L123

Method createCrowsFootRelationshipLine has 161 lines of code (limit is 50)

Check warning on line 123 in Templates/relationships.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/relationships.js#L123

Method createCrowsFootRelationshipLine has a cyclomatic complexity of 9 (limit is 8)

Check warning on line 445 in Templates/relationships.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/relationships.js#L445

Method analyzeRelationshipCardinality has 74 lines of code (limit is 50)

Check warning on line 445 in Templates/relationships.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/relationships.js#L445

Method analyzeRelationshipCardinality has a cyclomatic complexity of 22 (limit is 8)

Check warning on line 706 in Templates/relationships.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/relationships.js#L706

Method (anonymous) has 148 lines of code (limit is 50)

Check warning on line 706 in Templates/relationships.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/relationships.js#L706

Method (anonymous) has a cyclomatic complexity of 16 (limit is 8)

Check warning on line 28 in Templates/schema-generation.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/schema-generation.js#L28

Detected string concatenation with a non-literal variable in a util.format / console.log function.

Check warning on line 403 in Templates/table-generation.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/table-generation.js#L403

Method renderProperty has 107 lines of code (limit is 50)

Check warning on line 403 in Templates/table-generation.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/table-generation.js#L403

Method renderProperty has a cyclomatic complexity of 14 (limit is 8)

Check warning on line 610 in Templates/table-generation.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/table-generation.js#L610

Method (anonymous) has a cyclomatic complexity of 11 (limit is 8)

Check warning on line 94 in Templates/table-grouping.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/table-grouping.js#L94

Detected string concatenation with a non-literal variable in a util.format / console.log function.

Check failure on line 505 in Templates/variables.js

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Templates/variables.js#L505

The `RegExp` constructor was called with a non-literal value.