Module restriction

Module restriction 

Source
Expand description

Opt-in lints that restrict you from writing certain code patterns.

These are designed for scenarios where you want to increase the consistency of your project by rejecting certain patterns. These lints should not all be enabled as a group, but instead should be chosen individually after reading the documentation.

These lints are allow by default.

Modulesยง

missing_reflect
Checks for components, resources, and events that do not implement Reflect.
missing_trait_for_unit_struct
Checks for unit structs that do not implement Copy, Clone or Default.
panicking_methods
Checks for use of panicking methods of World when a non-panicking alternative exists.
schedule
Checks for adding systems to a disallowed schedule.