use rustc_span::{source_map::Spanned, symbol::sym, Span};
declare_clippy_lint! {
- /// **What it does:**
+ /// ### What it does
/// Checks for calls to `ends_with` with possible file extensions
/// and suggests to use a case-insensitive approach instead.
///
- /// **Why is this bad?**
+ /// ### Why is this bad?
/// `ends_with` is case-sensitive and may not detect files with a valid extension.
///
- /// **Known problems:** None.
- ///
- /// **Example:**
- ///
+ /// ### Example
/// ```rust
/// fn is_rust_file(filename: &str) -> bool {
/// filename.ends_with(".rs")