Rename MissingSeparator rule to MissingNameSeparator
This commit is contained in:
parent
944fc385ad
commit
1be88063f4
3 changed files with 5 additions and 5 deletions
|
@ -110,7 +110,7 @@ fn lint_file_name(file: &DirEntry, filename: &str) -> ComplianceStatus {
|
|||
return ComplianceStatus::NonCompliant(reason);
|
||||
}
|
||||
|
||||
if let Some(reason) = MissingSeparator::check(filename, &captures) {
|
||||
if let Some(reason) = MissingNameSeparator::check(filename, &captures) {
|
||||
return ComplianceStatus::NonCompliant(reason);
|
||||
}
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ use regex::Captures;
|
|||
use eyre::Result;
|
||||
use super::*;
|
||||
|
||||
pub struct MissingSeparator {}
|
||||
impl Rule for MissingSeparator {
|
||||
pub struct MissingNameSeparator {}
|
||||
impl Rule for MissingNameSeparator {
|
||||
fn check(_filename: &str, captures: &Captures) -> Option<NonCompliantReason> {
|
||||
if captures.name("nameSeparator").is_none() {
|
||||
return Some(NonCompliantReason::MissingNameSeparator)
|
|
@ -6,13 +6,13 @@ mod episode_marker;
|
|||
mod has_fluff;
|
||||
mod has_dash_in_title;
|
||||
mod has_episode_name;
|
||||
mod missing_separator;
|
||||
mod missing_name_separator;
|
||||
|
||||
pub use episode_marker::EpisodeMarker;
|
||||
pub use has_fluff::HasFluff;
|
||||
pub use has_episode_name::HasEpisodeName;
|
||||
pub use has_dash_in_title::DashInTitle;
|
||||
pub use missing_separator::MissingSeparator;
|
||||
pub use missing_name_separator::MissingNameSeparator;
|
||||
|
||||
pub enum NonCompliantReason {
|
||||
DashInTitle,
|
||||
|
|
Loading…
Reference in a new issue