pub mod block_brace_spacing;
pub mod closure_brace_pipe_spacing;
pub mod closure_pipe_body_spacing;
pub mod no_trailing_spaces;
pub mod omit_list_commas;
pub mod pipe_spacing;
pub mod record_brace_spacing;
pub mod reflow_wide_lists;
pub mod reflow_wide_pipelines;
pub mod wrap_wide_records;
use nu_protocol::Span;
use crate::context::LintContext;
pub fn has_explicit_pipe_delimiters(context: &LintContext, span: Span) -> bool {
let text = context.span_text(span);
let mut chars = text.chars();
if chars.next() != Some('{') {
return false;
}
chars.find(|c| !c.is_whitespace()) == Some('|')
}
pub const fn is_record_type(ty: &nu_protocol::Type) -> bool {
matches!(ty, nu_protocol::Type::Record(_))
}