From 7541749d475b528018a9437b0ecf2bc629fcfda4 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 25 Mar 2025 08:37:31 -0400 Subject: [PATCH 1/3] Add github action to codespell main on push and PRs --- .github/workflows/codespell.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 00000000..c59e0473 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,25 @@ +# Codespell configuration is within .codespellrc +--- +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@v4 + - name: Annotate locations with typos + uses: codespell-project/codespell-problem-matcher@v1 + - name: Codespell + uses: codespell-project/actions-codespell@v2 From 807737c2bd690cc65d8284f772ace92439876cf5 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 25 Mar 2025 08:37:31 -0400 Subject: [PATCH 2/3] Add rudimentary codespell config --- .codespellrc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 00000000..df2c174b --- /dev/null +++ b/.codespellrc @@ -0,0 +1,6 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git*,*.svg,go.sum,package-lock.json,*.lock,*.css,.codespellrc +check-hidden = true +ignore-regex = \b(curRespondent|dow)s*\b +# ignore-words-list = From cce3a3f6d354e34cad5806d80b1b5a3f53dfc832 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 25 Mar 2025 08:38:53 -0400 Subject: [PATCH 3/3] [DATALAD RUNCMD] run codespell throughout fixing few left typos automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- frontend/src/components/event/EmailInput.vue | 2 +- frontend/src/components/schedule_overlap/ScheduleOverlap.vue | 2 +- server/services/calendar/google_calendar.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/event/EmailInput.vue b/frontend/src/components/event/EmailInput.vue index dc337148..b6b8799c 100644 --- a/frontend/src/components/event/EmailInput.vue +++ b/frontend/src/components/event/EmailInput.vue @@ -138,7 +138,7 @@ export default { } }, /** - * Check if the contact is an object and not a user inputed string. + * Check if the contact is an object and not a user inputted string. */ isContact(contact) { return typeof contact === "object" diff --git a/frontend/src/components/schedule_overlap/ScheduleOverlap.vue b/frontend/src/components/schedule_overlap/ScheduleOverlap.vue index fad92479..5359ea19 100644 --- a/frontend/src/components/schedule_overlap/ScheduleOverlap.vue +++ b/frontend/src/components/schedule_overlap/ScheduleOverlap.vue @@ -3265,7 +3265,7 @@ export default { onScroll(e) { this.checkElementsVisible() }, - /** Checks whether certain elements are visible and sets variables accoringly */ + /** Checks whether certain elements are visible and sets variables accordingly */ checkElementsVisible() { const optionsSectionEl = this.$refs.optionsSection if (optionsSectionEl) { diff --git a/server/services/calendar/google_calendar.go b/server/services/calendar/google_calendar.go index bb16fe15..d04a659d 100644 --- a/server/services/calendar/google_calendar.go +++ b/server/services/calendar/google_calendar.go @@ -31,7 +31,7 @@ func (calendar GoogleCalendar) GetCalendarList() (map[string]models.SubCalendar, } defer resp.Body.Close() - // Define stucts to parse json response + // Define structs to parse json response type Response struct { Items []struct { Id string `json:"id" bson:"id,omitempty"`