Skip to content

Commit 6119c52

Browse files
authored
Merge pull request wolfSSL#8043 from bandi13/addCodespell
Add Codespell test to PRs
2 parents 836b741 + 0915012 commit 6119c52

82 files changed

Lines changed: 198 additions & 150 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codespellexcludelines

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
###############################################################################
2+
# In this file, you should add the line of the file that needs to be ignored.
3+
# The line should be exactly as it appears in the file.
4+
###############################################################################
5+
0x0b, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x65, /* .Enginee */
6+
0x66, 0x6f, 0x40, 0x77, 0x6f, 0x6c, 0x66, 0x73, /* fo@wolfs */
7+
0x0a, 0x8b, 0x98, 0xf3, 0xe3, 0xff, 0x4e, 0x44, /* ......ND */
8+
ot+3i9DAgBkcRcAtjOj4LaR0VknFBbVPFd5uRHg5h6h+u/N5GJG79G+dwfCMNYxd\n\
9+
static const byte plaintext[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lacus odio, pretium vel sagittis ac, facilisis quis diam. Vivamus condimentum velit sed dolor consequat interdum. Etiam eleifend ornare felis, eleifend egestas odio vulputate eu. Sed nec orci nunc. Etiam quis mi augue. Donec ullamcorper suscipit lorem, vel luctus augue cursus fermentum. Etiam a porta arcu, in convallis sem. Integer efficitur elementum diam, vel scelerisque felis posuere placerat. Donec vestibulum sit amet leo sit amet tincidunt. Etiam et vehicula turpis. Phasellus quis finibus sapien. Sed et tristique turpis. Nullam vitae sagittis tortor, et aliquet lorem. Cras a leo scelerisque, convallis lacus ut, fermentum urna. Mauris quis urna diam. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam aliquam vehicula orci id pulvinar. Proin mollis, libero sollicitudin tempor ultrices, massa augue tincidunt turpis, sit amet aliquam neque nibh nec dui. Fusce finibus massa quis rutrum suscipit cras amet";
10+
rsource "Kconfig.tls-generic"
11+
/* Loop over authenticated associated data AD1..ADn */
12+
/* no easy answer [c'est la vie]. Just division */
13+
const uint8_t* hashIn, int hashSz)
14+
XMEMCPY(hash + (curveSz - hashSz), hashIn, hashSz);
15+
0x63, 0x72, 0x65, 0x65, 0x6e, 0x20, 0x77, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x62, 0x65, 0x20, 0x69, /* creen would be i */
16+
\pagenumbering{alph}
17+
DES3_KEY_SIZE = 24, /* 3 des ede */
18+
/* functions added to support above needed, removed TOOM and KARATSUBA */

.github/workflows/codespell.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Codespell test
2+
3+
on:
4+
push:
5+
branches: [ 'master', 'main', 'release/**' ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
# END OF COMMON SECTION
13+
14+
jobs:
15+
codespell:
16+
if: github.repository_owner == 'wolfssl'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: codespell-project/actions-codespell@v2.1
22+
with:
23+
check_filenames: true
24+
check_hidden: true
25+
# Add comma separated list of words that occur multiple times that should be ignored (sorted alphabetically, case sensitive)
26+
ignore_words_list: adin,aNULL,carryIn,chainG,ciph,cLen,cliKs,dout,haveA,inCreated,inOut,inout,larg,LEAPYEAR,Merget,optionA,parm,parms,repid,rIn,userA,ser,siz,te,Te
27+
# The exclude_file contains lines of code that should be ignored. This is useful for individual lines which have non-words that can safely be ignored.
28+
exclude_file: '.codespellexcludelines'
29+
# To skip files entirely from being processed, add it to the following list:
30+
skip: '*.cproject,*.der,*.mtpj,*.pem,*.vcxproj,.git,*.launch,*.scfg'

IDE/Espressif/ESP-IDF/examples/template/components/wolfssl/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# The maximum length of options is NOT 50 characters as documented.
4242
# kconfcheck will complain that options should be 40 at most.
4343
#
44-
# Fix option lengths first. Superflous errors on other lines may occur.
44+
# Fix option lengths first. Superfluous errors on other lines may occur.
4545
#
4646
# The maximum length of lines is 120 characters.
4747
#

IDE/Espressif/ESP-IDF/examples/template/components/wolfssl/component.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ WOLFSSL_ROOT := ../../../../../../..
8282
# "/mnt/c" is 4 directories up:
8383
# 2 for `./test/demo` from where we run `make`, plus
8484
# 2 more from the location of `component.mk` located
85-
# in `[currect directory]/components/wolfssl`.
85+
# in `[current directory]/components/wolfssl`.
8686
#
8787
# Thus we need 4 parent reference to find the relative path to wolfSSL:
8888
# WOLFSSL_ROOT := ../../../../workspace/wolfssl-master

IDE/Espressif/ESP-IDF/examples/template/components/wolfssl/include/user_settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@
786786
/***** END CONFIG_IDF_TARGET_ESP8684 *****/
787787

788788
#else
789-
/* Anything else encountered, disable HW accleration */
789+
/* Anything else encountered, disable HW acceleration */
790790
#warning "Unexpected CONFIG_IDF_TARGET_NN value"
791791
#define NO_ESP32_CRYPT
792792
#define NO_WOLFSSL_ESP32_CRYPT_HASH

IDE/Espressif/ESP-IDF/examples/template/main/Kconfig.projbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ choice WOLFSSL_EXAMPLE_CHOOSE
5757
config WOLFSSL_EXAMPLE_NAME_WOLFSSH_TEMPLATE
5858
bool "SSH Template App"
5959
help
60-
Bare-bones Hellow World app that only compiles in wolfSSL and wolfSSH.
60+
Bare-bones Hello World app that only compiles in wolfSSL and wolfSSH.
6161
See wolfSSL/wolfssh on GitHub.
6262

6363
config WOLFSSL_EXAMPLE_NAME_WOLFSSH_ECHOSERVER

IDE/Espressif/ESP-IDF/examples/wolfssl_benchmark/components/wolfssl/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# The maximum length of options is NOT 50 characters as documented.
4242
# kconfcheck will complain that options should be 40 at most.
4343
#
44-
# Fix option lengths first. Superflous errors on other lines may occur.
44+
# Fix option lengths first. Superfluous errors on other lines may occur.
4545
#
4646
# The maximum length of lines is 120 characters.
4747
#

IDE/Espressif/ESP-IDF/examples/wolfssl_benchmark/components/wolfssl/component.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ WOLFSSL_ROOT := ../../../../../../..
8282
# "/mnt/c" is 4 directories up:
8383
# 2 for `./test/demo` from where we run `make`, plus
8484
# 2 more from the location of `component.mk` located
85-
# in `[currect directory]/components/wolfssl`.
85+
# in `[current directory]/components/wolfssl`.
8686
#
8787
# Thus we need 4 parent reference to find the relative path to wolfSSL:
8888
# WOLFSSL_ROOT := ../../../../workspace/wolfssl-master

IDE/Espressif/ESP-IDF/examples/wolfssl_benchmark/components/wolfssl/include/user_settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@
786786
/***** END CONFIG_IDF_TARGET_ESP8684 *****/
787787

788788
#else
789-
/* Anything else encountered, disable HW accleration */
789+
/* Anything else encountered, disable HW acceleration */
790790
#warning "Unexpected CONFIG_IDF_TARGET_NN value"
791791
#define NO_ESP32_CRYPT
792792
#define NO_WOLFSSL_ESP32_CRYPT_HASH

IDE/Espressif/ESP-IDF/examples/wolfssl_client/README_server_sm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ I (735) system_api: read default base MAC address from EFUSE
167167
I (755) wifi:wifi firmware version: 0d470ef
168168
I (755) wifi:wifi certification version: v7.0
169169
I (755) wifi:config NVS flash: enabled
170-
I (755) wifi:config nano formating: disabled
170+
I (755) wifi:config nano formatting: disabled
171171
I (755) wifi:Init data frame dynamic rx buffer num: 32
172172
I (765) wifi:Init management frame dynamic rx buffer num: 32
173173
I (765) wifi:Init management short buffer num: 32

0 commit comments

Comments
 (0)