Skip to content

Remove comments from codeAnalyzerConfiguration.json#4

Open
rpurser47 wants to merge 1 commit intomainfrom
rpurser47-patch-1
Open

Remove comments from codeAnalyzerConfiguration.json#4
rpurser47 wants to merge 1 commit intomainfrom
rpurser47-patch-1

Conversation

@rpurser47
Copy link
Copy Markdown
Member

JSON doesn't support comments, and code analyzer fails if you use the file as is.

JSON doesn't support comments, and code analyzer fails if you use the file as is.
@michellehirsch
Copy link
Copy Markdown
Member

Best I can tell, the Code Analyzer works fine with comments in the JSON file. Comments aren't started in JSON, but are supported by some parsers. This screenshot shows:

  • A custom codeAnalyzerConfiguration.json with comments
  • CodeIssues confirms that the custom configuration is active
  • CodeIssues shows application of the function naming standard that is defined in the custom codeAnalyzerConfiguration.json
image

@rpurser47 have you had issues getting this codeAnalyzerConfiguration.json to work? If so, please share more details of the errors you observed.

@rpurser47
Copy link
Copy Markdown
Member Author

@rpurser47 have you had issues getting this codeAnalyzerConfiguration.json to work? If so, please share more details of the errors you observed.

I noticed this when I used Claude Code to add the codeAnalyzerConfiguration.json to a project of mine, and it flagged it when the command failed for it using R2026a, but it may have misdiagnosed the failure. I will investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants