MStyle Rules and Violations

MStyle rule defines specific configurable behaviour which checks Magik files content and finds possible problems called violations. Violations are reported to the user with specific and changeable severity.

For example Unused local variable rule checks if declared local variable is later used in the source code.

Unused local variable violation
Variable canOpen is unused. Violation is reported as warning.

MStyle rules can be configured in your profile. They can be added/removed from the profile as well as enabled/disabled.

MStyle violations are listed in MStyle Violations and Problems views.

Related concepts


Related reference

MStyle Violations view
Problems view