Skip to content

Commit a483963

Browse files
authored
Merge pull request #334 from ReproNim/enh-codespell
Add codespell support (config, workflow to detect/not fix) and make it fix few typos
2 parents 2fb30ed + a53dbcc commit a483963

File tree

4 files changed

+34
-2
lines changed

4 files changed

+34
-2
lines changed

.codespellrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[codespell]
2+
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
3+
skip = .git*,*.svg,package-lock.json,.codespellrc,locales
4+
check-hidden = true
5+
# mixed case words starting with small letter, some latin
6+
ignore-regex = \b[a-z]+[A-Z][a-zA-Z]*\b|.*Nam a nibh.*
7+
# ignore-words-list =

.github/workflows/codespell.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Codespell configuration is within .codespellrc
2+
---
3+
name: Codespell
4+
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
codespell:
16+
name: Check for spelling errors
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
- name: Annotate locations with typos
23+
uses: codespell-project/codespell-problem-matcher@v1
24+
- name: Codespell
25+
uses: codespell-project/actions-codespell@v2

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export default {
482482
} else if (_.isString(cond)) {
483483
const responseMapper = this.responseMapper(index, this.$store.state.responses, this.$store.state.responseMap);
484484
const v = this.evaluateString(cond, responseMapper);
485-
// this.visibilty[index] = v;
485+
// this.visibility[index] = v;
486486
return v;
487487
}
488488
return cond;

src/components/Landing/Landing.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default {
102102
font-weight: bold;
103103
}
104104
105-
/* DOCKED LAYOUT (header annd footer at top and bottom of viewport,
105+
/* DOCKED LAYOUT (header and footer at top and bottom of viewport,
106106
center elements each scroll) */
107107
.docked-layout {
108108
display: flex;

0 commit comments

Comments
 (0)