diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 619ff1e9ae..5aec3f923a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,7 +168,7 @@ jobs: # Using macOS 13 runner because 14 is based on the M1 and has half as much RAM (7 GB, # instead of 14 GB) which is too little for us right now. # - # Failure occuring with clippy for rust 1.77.2 + # Failure occurring with clippy for rust 1.77.2 platform: [windows-latest, macos-13, ubuntu-20.04] runs-on: ${{ matrix.platform }} diff --git a/crates/nu-command/src/date/utils.rs b/crates/nu-command/src/date/utils.rs index f58b2a517c..4616dc887b 100644 --- a/crates/nu-command/src/date/utils.rs +++ b/crates/nu-command/src/date/utils.rs @@ -8,7 +8,7 @@ pub(crate) fn parse_date_from_string( match dtparse::parse(input) { Ok((native_dt, fixed_offset)) => { let offset = match fixed_offset { - Some(fo) => fo, + Some(offset) => offset, None => *(Local::now().offset()), }; match offset.from_local_datetime(&native_dt) { diff --git a/crates/nu-command/tests/commands/table.rs b/crates/nu-command/tests/commands/table.rs index afc9b613d4..a986c7b15b 100644 --- a/crates/nu-command/tests/commands/table.rs +++ b/crates/nu-command/tests/commands/table.rs @@ -2562,12 +2562,12 @@ fn create_theme_output(theme: &str) -> Vec { } fn theme_cmd(theme: &str, footer: bool, then: &str) -> String { - let mut with_foorter = String::new(); + let mut with_footer = String::new(); if footer { - with_foorter = "$env.config.footer_mode = \"always\"".to_string(); + with_footer = "$env.config.footer_mode = \"always\"".to_string(); } - format!("$env.config.table.mode = {theme}; $env.config.table.header_on_separator = true; {with_foorter}; {then}") + format!("$env.config.table.mode = {theme}; $env.config.table.header_on_separator = true; {with_footer}; {then}") } #[test] diff --git a/crates/nu-json/src/de.rs b/crates/nu-json/src/de.rs index 6fcfbbf7d7..fff4da0d6f 100644 --- a/crates/nu-json/src/de.rs +++ b/crates/nu-json/src/de.rs @@ -260,8 +260,8 @@ where } _ => { if chf == b'-' || chf.is_ascii_digit() { - let mut pn = ParseNumber::new(self.str_buf.iter().copied()); - match pn.parse(false) { + let mut parser = ParseNumber::new(self.str_buf.iter().copied()); + match parser.parse(false) { Ok(Number::F64(v)) => { self.rdr.uneat_char(ch); return visitor.visit_f64(v); diff --git a/crates/nu-std/CONTRIBUTING.md b/crates/nu-std/CONTRIBUTING.md index 9108956a76..1677a31de1 100644 --- a/crates/nu-std/CONTRIBUTING.md +++ b/crates/nu-std/CONTRIBUTING.md @@ -13,7 +13,7 @@ You'll generally find the team members on [Discord `#standard-library` channel][discord#standard-library] and can have preliminary discussions there to clarify the issues involved. -You can open a [Github issue][new-issue] to have a more focused discussion of +You can open a [GitHub issue][new-issue] to have a more focused discussion of your idea. Generally, we think the standard library should contain items that are relevant diff --git a/tests/shell/pipeline/commands/external.rs b/tests/shell/pipeline/commands/external.rs index 8d8bf137cc..88d443e4fd 100644 --- a/tests/shell/pipeline/commands/external.rs +++ b/tests/shell/pipeline/commands/external.rs @@ -286,7 +286,7 @@ mod stdin_evaluation { fn does_not_panic_with_no_newline_in_stream() { let actual = nu!(pipeline( r#" - nu --testbin nonu "wheres the nuline?" | length + nu --testbin nonu "where's the nuline?" | length "# )); diff --git a/typos.toml b/typos.toml index a8c81542e9..92fecd5cb6 100644 --- a/typos.toml +++ b/typos.toml @@ -1,17 +1,27 @@ [files] -extend-exclude = ["crates/nu-command/tests/commands/table.rs", "*.tsv", "*.json", "*.txt", "tests/fixtures/formats/*"] +extend-exclude = [ + ".git/", + "crates/nu-cmd-extra/assets/228_themes.json", + "tests/fixtures/formats/", +] +ignore-hidden = false -[default.extend-words] -# Ignore false-positives +[default] +extend-ignore-re = [ + "Plasticos Rival", + "│ in_custom_valu │", + "│ ine │", + ":es\\|ful\\(", + "\\\\u\\{e7ba\\}", + "([0-9a-f][0-9a-f] ){4}", + "--find ba\\b", + "0x\\[ba be\\]", + "\\)BaR'", +] + +[type.rust.extend-words] nd = "nd" -pn = "pn" -fo = "fo" -ful = "ful" -ons = "ons" -ba = "ba" -Plasticos = "Plasticos" -IIF = "IIF" numer = "numer" + +[default.extend-identifiers] ratatui = "ratatui" -doas = "doas" -wheres = "wheres"