Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions src/rule/scope_empty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct ScopeEmpty {
/// ScopeEmpty represents the scope-empty rule.
impl Rule for ScopeEmpty {
const NAME: &'static str = "scope-empty";
const LEVEL: Level = Level::Error;
const LEVEL: Level = Level::Ignore;

fn message(&self, _message: &Message) -> String {
"scope is empty".to_string()
Expand Down Expand Up @@ -79,10 +79,7 @@ mod tests {
let violation = rule.validate(&message);
assert!(violation.is_some());
assert_eq!(violation.clone().unwrap().level, Level::Error);
assert_eq!(
violation.unwrap().message,
"scope is empty".to_string()
);
assert_eq!(violation.unwrap().message, "scope is empty".to_string());
}

#[test]
Expand All @@ -101,9 +98,6 @@ mod tests {
let violation = rule.validate(&message);
assert!(violation.is_some());
assert_eq!(violation.clone().unwrap().level, Level::Error);
assert_eq!(
violation.unwrap().message,
"scope is empty".to_string()
);
assert_eq!(violation.unwrap().message, "scope is empty".to_string());
}
}
2 changes: 1 addition & 1 deletion web/src/content/docs/rules/scope-empty.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Scope Empty
description: Check if the scope exists
---

* Default: `error`
* Default: `ignore`

## ❌ Bad

Expand Down
Loading