bevy_lint
should pass --cfg bevy_lint
when run
#117
Labels
A-Linter
Related to the linter and custom lints
C-Usability
An improvement that makes the API more pleasant
Milestone
Related to #88 and #109.
Automatically passing
--cfg bevy_lint
would let conditional compilation check whether the Bevy Linter is available or not, and would let code do this:#[cfg_attr(bevy_lint, allow(bevy::my_lint))]
This would help get around
#![register_tool(bevy)]
being a nightly-only feature, since thecfg
would tell the code that nightly is available.The text was updated successfully, but these errors were encountered: