Skip to content

Commit f62b9ac

Browse files
authored
Merge pull request #5 from arduino-libraries/ci-spellcheck
Add CI workflow to check for commonly misspelled words
2 parents 99bd6dc + 486e6c3 commit f62b9ac

File tree

6 files changed

+39
-3
lines changed

6 files changed

+39
-3
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 = nd,
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: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Source: https://github.com/per1234/.github/blob/main/workflow-templates/spell-check.md
2+
name: Spell Check
3+
4+
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5+
on:
6+
push:
7+
pull_request:
8+
schedule:
9+
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates.
10+
- cron: "0 8 * * TUE"
11+
workflow_dispatch:
12+
repository_dispatch:
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
spellcheck:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Spell check
26+
uses: codespell-project/actions-codespell@master

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Arduino_ScienceKitCarrier
22
=========================
33
[![Check Arduino](https://github.com/arduino-libraries/Arduino_ScienceKitCarrier/actions/workflows/check-arduino.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_ScienceKitCarrier/actions/workflows/check-arduino.yml)
4+
[![Spell Check](https://github.com/arduino-libraries/Arduino_ScienceKitCarrier/workflows/Spell%20Check/badge.svg)](https://github.com/arduino-libraries/Arduino_ScienceKitCarrier/actions?workflow=Spell+Check)
45

56
Library to use the Science Kit Carrier rev3 sensors and make possible the connection with Arduino Science Journal App
67

extras/functions_generator_firmware/SKr3_waves/led_gauge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class LedGauge: public LedArray{
4848
two=_two;
4949
}
5050

51-
//Call it everytime you want to read the pot and update leds
51+
//Call it every time you want to read the pot and update leds
5252
void refresh(){
5353
value=analogRead(pot);
5454
if (value<=ADC_RES+100){ // pots create strange effects near 0

src/Arduino_ScienceKitCarrier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "Arduino_GroveI2C_Ultrasonic.h"
3333
#include <PDM.h>
3434

35-
#include "../../OneWireNg/src/platform/OneWireNg_PicoRP2040.h" // forces to use gpio insted PIO hw
35+
#include "../../OneWireNg/src/platform/OneWireNg_PicoRP2040.h" // forces to use gpio instead PIO hw
3636
#define OneWireNg_CurrentPlatform OneWireNg_PicoRP2040
3737
#include "drivers/DSTherm.h"
3838
#include "utils/Placeholder.h"

src/utils/Arduino_ScienceKitCarrier_definitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
const uint32_t SHUNT_MICRO_OHM{100000}; // check schematic R20
3636
const uint16_t MAXIMUM_AMPS{1}; // 1A
3737

38-
// Resistence
38+
// Resistance
3939
#define RESISTANCE_PIN A2
4040
#define RESISTOR_AUX 1000.0
4141
#define REF_VOLTAGE 3.3

0 commit comments

Comments
 (0)