Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Veetaha committed Mar 17, 2024
1 parent 4b8a32d commit 37baaa5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/advisories/helpers/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ mod test {
}

{
let url = Url::parse("https://example.com/countries/việt name").unwrap();
let url = Url::parse("https://example.com/countries/việt nam").unwrap();

Check warning on line 741 in src/advisories/helpers/db.rs

View workflow job for this annotation

GitHub Actions / Typos

"nam" should be "name".

#[cfg(target_endian = "little")]
assert_eq!(
Expand Down
10 changes: 9 additions & 1 deletion typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@ extend-exclude = [
"/tests/test_data/features-galore/metadata.json",

# There are some typos in the advisories descriptions 😳
"docs/src/output/advisories.svg"
"docs/src/output/advisories.svg",

# Specific files that contain false positives. Unfortunately
# we have to ignore the entire file because we can't granularly
# ignore a specific false positive in a specific file.

# 'việt nam' triggers a false positive because typos works at single-word
# level, and it wants to correct 'nam' to 'name'
"src/advisories/helpers/db.rs:741:70"
]

0 comments on commit 37baaa5

Please sign in to comment.