Skip to content
Open
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
19 changes: 19 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Spelling

permissions:
contents: read

on: [pull_request]

env:
CLICOLOR: 1

jobs:
spelling:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v5
- name: Spell Check Repo
uses: crate-ci/typos@v1.48.0
29 changes: 15 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ env_logger = "0.11"
glob = "0.3"

# IPMI BMC sensor access via /dev/ipmi0 ioctl
ipmi-rs = { version = "0.5", default-features = true }
ipmi-rs = { version = "0.6", default-features = true }

[profile.release]
opt-level = "z"
Expand Down
2 changes: 1 addition & 1 deletion src/db/boards/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ mod tests {
}

#[test]
fn min_bios_version_unparseable() {
fn min_bios_version_unparsable() {
let reqs = [Requirement::MinBiosVersion {
version: 1317,
hint: "Update BIOS.",
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/edid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct EdidInfo {
}

/// Parse an EDID blob from a DRM connector sysfs path.
/// Returns None if the file is missing, empty, or unparseable.
/// Returns None if the file is missing, empty, or unparsable.
pub fn parse_from_drm(connector_path: &std::path::Path) -> Option<EdidInfo> {
let edid_path = connector_path.join("edid");
let data = std::fs::read(&edid_path).ok()?;
Expand Down
2 changes: 1 addition & 1 deletion src/sensors/ipmi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ fn map_sensor_type(ty: &SensorType) -> Option<(SensorCategory, SensorUnit)> {
#[allow(dead_code)]
fn refine_unit(ipmi_unit: &Unit) -> Option<SensorUnit> {
match ipmi_unit {
Unit::DegreesCelcius => Some(SensorUnit::Celsius),
Unit::DegreesCelsius => Some(SensorUnit::Celsius),
Unit::Volt => Some(SensorUnit::Volts),
Unit::Amp => Some(SensorUnit::Amps),
Unit::Watt => Some(SensorUnit::Watts),
Expand Down
16 changes: 16 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[default]

[default.extend-words]
AER = "AER"
pn = "pn"
IIN = "IIN"
synopsys = "synopsys"
Ded = "Ded"
MCH = "MCH"
HDA = "HDA"
ue = "ue"
BYT = "BYT"
BLOK = "BLOK"
BA = "BA"
ratatui = "ratatui"
temprature = "temprature"
Loading