Remove comments from codeAnalyzerConfiguration.json#4
Conversation
JSON doesn't support comments, and code analyzer fails if you use the file as is.
|
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:
@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. |
|
We use an extended json standard for the code analyzer that allows for C-style comments like "// This is a comment". Can you provide additional information on how the json file fails. An error message if you have one. |

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