Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Get code inspection checker name from context menu

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
FriendlyRabbit Posted - Dec 02 2025 : 03:45:46 AM
Hi,

I love the code inspections. I try to minimize the number of issues, improving my code quality and catching bugs before they cause trouble.

However, sometimes I need to silence a warning in code, e.g. when reinterpret_cast is the only way to do something. Typing something like the following is quite tedious

// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
const auto* bytes = reinterpret_cast<const unsigned char*>(buffer);


A simple improvement would be to get the checker name adding an option in the context menu when clicking on the issue in the "VA Code Inspection Results" window. When I have the checker name in the clipboard, I can google it or add the above NOLINT line.

Even better: Right-clicking on the issue in code has the option to generate the above exception. However, this is probably not as general. What if the user prefers NOLINTBEGIN and NOLINTEND.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000