Skip to main content

luaur_analysis/methods/
lint_context_warning_enabled.rs

1impl crate::records::lint_context::LintContext {
2    pub fn warning_enabled(&mut self, code: luaur_config::enums::code::Code) -> bool {
3        let code_val = code as u64;
4        (self.options.warning_mask & (1u64 << code_val)) != 0
5    }
6}