- 🇳🇿New Zealand quietone
Just noting that the related issue in the Coding Standards project has been closed as won't fix. It seems that will support closing this long standing issue.
- 🇬🇧United Kingdom jonathan1055
OK. So #2742881: Can inline comments end with semicolons → is now closed as 'wont fix', meaning that inline comments cannot end with a semicolon. That's fine.
Therefore, is the proposition that Coder should flag these as errors, but not automatically fix it by adding a dot. It is up to the developer to correct the inline code manually, in what ever way they want to.
- 🇳🇿New Zealand quietone
Add a full stop to a line of code seems a bit error prone. I think most of use would expect to uncomment a line of code and have that code 'work' and not fail straight away. So, promoting adding an ignore line seems better. And it might have the benefit of making it easier to find commented out code.
And, if I had to choose I would want the automatic fix to be to add the ignore the line(s).