Skip to content

Commit 047f355

Browse files
authored
Merge pull request #7 from arduino-libraries/ci-spell-check
Add CI workflow to check for commonly misspelled words
2 parents d42912a + af18ad0 commit 047f355

File tree

24 files changed

+27965
-27902
lines changed

24 files changed

+27965
-27902
lines changed

.codespellrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check/.codespellrc
2+
# See: https://github.com/codespell-project/codespell#using-a-config-file
3+
[codespell]
4+
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
5+
ignore-words-list = ois,
6+
skip = ./.git,./.licenses,__pycache__,node_modules,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock
7+
builtin = clear,informal,en-GB_to_en-US
8+
check-filenames =
9+
check-hidden =

.github/workflows/spell-check.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Spell Check
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4+
on:
5+
push:
6+
pull_request:
7+
schedule:
8+
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates.
9+
- cron: "0 8 * * TUE"
10+
workflow_dispatch:
11+
repository_dispatch:
12+
13+
jobs:
14+
spellcheck:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
- name: Spell check
22+
uses: codespell-project/actions-codespell@master

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/Arduino_BMI270_BMM150.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.adoc renamed to README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
= Combined Bosch BMI270 and BMM150 Library for Arduino =
1+
Combined Bosch BMI270 and BMM150 Library for Arduino
2+
====================================================
3+
[![Spell Check status](https://github.com/arduino-libraries/Arduino_BMI270_BMM150/actions/workflows/spell-check-task.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_BMI270_BMM150/actions/workflows/spell-check-task.yml)
24

35
Allows you to read the accelerometer, magnetometer and gyroscope values from the combo BMI270+BMM150 IMU on your Arduino Nano 33 BLE Sense Rev2.
46

5-
== License ==
7+
### License
68

79
Copyright (c) 2022 Arduino SA. All rights reserved.
810

src/BMI270.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ void BoschSensorClass::print_rslt(int8_t rslt)
397397
panic_led_trap();
398398
break;
399399
case BMI2_E_AUX_INVALID_CFG:
400-
_debug->println("Error [" + String(rslt) + "] : Invalid auxilliary configuration");
400+
_debug->println("Error [" + String(rslt) + "] : Invalid auxiliary configuration");
401401
panic_led_trap();
402402
break;
403403
case BMI2_E_AUX_BUSY:
404-
_debug->println("Error [" + String(rslt) + "] : Auxilliary busy");
404+
_debug->println("Error [" + String(rslt) + "] : Auxiliary busy");
405405
panic_led_trap();
406406
break;
407407
case BMI2_E_SELF_TEST_FAIL:

0 commit comments

Comments
 (0)