From 49db7c81e14a997bbf805b6432221fffbe03a8ea Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Fri, 2 Sep 2022 10:49:47 +0200 Subject: [PATCH] Fixup codespell (#2455) * Fix some mistakes * Switch to an ignore file. Signed-off-by: Ben Kochie Signed-off-by: Ben Kochie --- .circleci/config.yml | 2 +- CHANGELOG.md | 4 ++-- collector/fibrechannel_linux.go | 2 +- node_exporter.go | 2 +- scripts/codespell_ignore.txt | 6 ++++++ 5 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 scripts/codespell_ignore.txt diff --git a/.circleci/config.yml b/.circleci/config.yml index bc19c1c6..07821102 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,7 +34,7 @@ jobs: steps: - checkout - run: sudo pip install codespell - - run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem,./collector/fixtures" -L uint,packages\',uptodate + - run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem,./collector/fixtures" -I scripts/codespell_ignore.txt test_mixins: executor: golang steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index c00dcf11..240026c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -354,7 +354,7 @@ Other breaking changes: * [CHANGE] Greatly reduce the metrics vmstat returns by default. #874 * [CHANGE] Greatly trim what netstat collector exposes by default #876 * [CHANGE] Drop `exec_` prefix and move `node_boot_time_seconds` from `exec` to new `boottime` collector and enable for Darwin/Dragonfly/FreeBSD/NetBSD/OpenBSD. #839, #901 -* [CHANGE] Remove depreated gmond collector #852 +* [CHANGE] Remove deprecated gmond collector #852 * [CHANGE] align Darwin disk stat names with Linux #930 * [FEATURE] Add `collect[]` parameter #699 * [FEATURE] Add text collector conversion for ipmitool output. #746 @@ -422,7 +422,7 @@ Windows support is now removed, the [wmi_exporter](https://github.com/martinlind * [FEATURE] Add bcache collector for Linux #597 * [FEATURE] Add parsing /proc/net/snmp6 file for Linux #615 * [FEATURE] Add timex collector for Linux #664 -* [ENHANCEMENT] Include overal health status in smartmon.sh example script #546 +* [ENHANCEMENT] Include overall health status in smartmon.sh example script #546 * [ENHANCEMENT] Include `guest_nice` in CPU collector #554 * [ENHANCEMENT] Add exec_boot_time for freebsd, dragonfly #550 * [ENHANCEMENT] Get full resolution for node_time #555 diff --git a/collector/fibrechannel_linux.go b/collector/fibrechannel_linux.go index 940062e7..3993b277 100644 --- a/collector/fibrechannel_linux.go +++ b/collector/fibrechannel_linux.go @@ -70,7 +70,7 @@ func NewFibreChannelCollector(logger log.Logger) (Collector, error) { "speed": "Current operating speed", "port_state": "Current port state", "port_type": "Port type, what the port is connected to", - "symbolic_name": "Symoblic Name", + "symbolic_name": "Symbolic Name", "node_name": "Node Name as hexadecimal string", "port_id": "Port ID as string", "port_name": "Port Name as hexadecimal string", diff --git a/node_exporter.go b/node_exporter.go index 9a0e3d09..3d27194a 100644 --- a/node_exporter.go +++ b/node_exporter.go @@ -182,7 +182,7 @@ func main() { level.Info(logger).Log("msg", "Starting node_exporter", "version", version.Info()) level.Info(logger).Log("msg", "Build context", "build_context", version.BuildContext()) if user, err := user.Current(); err == nil && user.Uid == "0" { - level.Warn(logger).Log("msg", "Node Exporter is running as root user. This exporter is designed to run as unpriviledged user, root is not required.") + level.Warn(logger).Log("msg", "Node Exporter is running as root user. This exporter is designed to run as unprivileged user, root is not required.") } http.Handle(*metricsPath, newHandler(!*disableExporterMetrics, *maxRequests, logger)) diff --git a/scripts/codespell_ignore.txt b/scripts/codespell_ignore.txt new file mode 100644 index 00000000..1253e6fe --- /dev/null +++ b/scripts/codespell_ignore.txt @@ -0,0 +1,6 @@ +inflight +packages\' +ro +siz +uint +uptodate