Skip to content

Commit ab1092a

Browse files
SuperQoblitorum
authored andcommitted
Fixup codespell (prometheus#2455)
* Fix some mistakes * Switch to an ignore file. Signed-off-by: Ben Kochie <[email protected]> Signed-off-by: Ben Kochie <[email protected]>
1 parent cb4b015 commit ab1092a

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
steps:
3535
- checkout
3636
- run: sudo pip install codespell
37-
- run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem,./collector/fixtures" -L uint,packages\',uptodate
37+
- run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem,./collector/fixtures" -I scripts/codespell_ignore.txt
3838
test_mixins:
3939
executor: golang
4040
steps:

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ Other breaking changes:
356356
* [CHANGE] Greatly reduce the metrics vmstat returns by default. #874
357357
* [CHANGE] Greatly trim what netstat collector exposes by default #876
358358
* [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
359-
* [CHANGE] Remove depreated gmond collector #852
359+
* [CHANGE] Remove deprecated gmond collector #852
360360
* [CHANGE] align Darwin disk stat names with Linux #930
361361
* [FEATURE] Add `collect[]` parameter #699
362362
* [FEATURE] Add text collector conversion for ipmitool output. #746
@@ -424,7 +424,7 @@ Windows support is now removed, the [wmi_exporter](https://github.com/martinlind
424424
* [FEATURE] Add bcache collector for Linux #597
425425
* [FEATURE] Add parsing /proc/net/snmp6 file for Linux #615
426426
* [FEATURE] Add timex collector for Linux #664
427-
* [ENHANCEMENT] Include overal health status in smartmon.sh example script #546
427+
* [ENHANCEMENT] Include overall health status in smartmon.sh example script #546
428428
* [ENHANCEMENT] Include `guest_nice` in CPU collector #554
429429
* [ENHANCEMENT] Add exec_boot_time for freebsd, dragonfly #550
430430
* [ENHANCEMENT] Get full resolution for node_time #555

collector/fibrechannel_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func NewFibreChannelCollector(logger log.Logger) (Collector, error) {
7070
"speed": "Current operating speed",
7171
"port_state": "Current port state",
7272
"port_type": "Port type, what the port is connected to",
73-
"symbolic_name": "Symoblic Name",
73+
"symbolic_name": "Symbolic Name",
7474
"node_name": "Node Name as hexadecimal string",
7575
"port_id": "Port ID as string",
7676
"port_name": "Port Name as hexadecimal string",

node_exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func main() {
248248
level.Info(logger).Log("msg", "Starting node_exporter", "version", version.Info())
249249
level.Info(logger).Log("msg", "Build context", "build_context", version.BuildContext())
250250
if user, err := user.Current(); err == nil && user.Uid == "0" {
251-
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.")
251+
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.")
252252
}
253253

254254
http.Handle(*metricsPath, newHandler(!*disableExporterMetrics, *maxRequests, logger))

scripts/codespell_ignore.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
inflight
2+
packages\'
3+
ro
4+
siz
5+
uint
6+
uptodate

0 commit comments

Comments
 (0)