use crate::enums::report_format::ReportFormat;
use crate::functions::report::report;
use luaur_config::records::lint_warning::LintWarning;
pub fn report_warning(format: ReportFormat, name: &str, warning: &LintWarning) {
report(
format,
name,
&warning.location,
LintWarning::get_name(warning.code),
&warning.text,
);
}