Hi @fwilleke80 here are the possibilities:
Create a comment to disable stylecheck locally
// stylecheck.naming=false
....
code
....
// stylecheck.naming=true
Unfortunately, it doesn't work for all kinds of warnings described in ProjectTool - Style Check. And you can't use stylecheck=false
.
Here a list of style check you can redefine:
- stylecheck.max-linecount
- stylecheck.naming
- stylecheck.using
- stylecheck.domains
- stylecheck.whitespace
- stylecheck.indentation
- stylecheck.enum-class
- stylecheck.enum-registration
- stylecheck.void-paramlist
- stylecheck.newline-for-substatement
- stylecheck.case-break
- stylecheck.no-whitespace
- stylecheck.supercall
- stylecheck.explicit
- stylecheck.ambiguouscalls
Some others may work I don't have a clear list.
Use Maxon Macro
- MAXON_WARN_MUTE_FUNCTION_LENGTH Mute warning if function is larger than 500 lines (similar to stylecheck.max-linecount=1000)
- MAXON_WARN_MUTE_NAMING: Mute warning if the naming scheme doesn't match (similar to stylecheck.naming=false).
- MAXON_WARN_MUTE_UNUSED: mute warning if a function/variable is not used.
- MAXON_WARN_UNUSED_CLASS: same as previous but for classes.
Use pragma warning
While it's not the best way, you can use pragma to disable error, for more information see MSDN - Pragma Warning.
Hope this helps.
Cheers,
Maxime.