Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add codespell: config, workflow and have a typo fixed #16

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[codespell]
skip = .git,*.pdf,*.svg
# some ad-hoc variables etc
ignore-words-list = splitted,optin
22 changes: 22 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Codespell

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion src/main/kotlin/HedTagInput.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class HedTagInput(private val tagger: CTagger, private val curField: String, pri
* Action handler when a character is inserted
* 1. Get word (HED tag) to which the new character is part of
* 2. Search and process result
* 2.1. If tag exist, show search result in the window below the word, black highlight (overwritting any active red highlight).
* 2.1. If tag exist, show search result in the window below the word, black highlight (overwriting any active red highlight).
* 2.2. If tag doesn't exist, hide result window (if on) and red highlight the word
*/
override fun insertUpdate(e: DocumentEvent) {
Expand Down