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 = 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 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"`