Skip to content

Add vale linting and fix glossary#74

Open
samfreund wants to merge 32 commits into
frcsoftware:mainfrom
samfreund:vale
Open

Add vale linting and fix glossary#74
samfreund wants to merge 32 commits into
frcsoftware:mainfrom
samfreund:vale

Conversation

@samfreund

@samfreund samfreund commented Jul 2, 2026

Copy link
Copy Markdown
Member

Adds vale linting, which checks prose for grammatical errors etc.

closes #58

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

🌐 Preview URL: https://pr-74.frcsoftware.pages.dev

@samfreund
samfreund force-pushed the vale branch 7 times, most recently from 9c6f56a to 5e888d9 Compare July 6, 2026 04:48
@samfreund
samfreund force-pushed the vale branch 4 times, most recently from 0ac2909 to 8517cf6 Compare July 12, 2026 03:06
@samfreund
samfreund marked this pull request as ready for review July 17, 2026 03:11
@samfreund
samfreund requested a review from a team as a code owner July 17, 2026 03:11
@samfreund samfreund changed the title Add vale linting Add vale linting and fix glossary Jul 17, 2026
Comment thread package.json

@CodeMyGame1 CodeMyGame1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some changes required (mostly just style fixes that I noticed while reviewing vale's fixes)

Comment thread .github/workflows/lint-format.yml
Comment thread scripts/setup-vale.ts
Comment thread scripts/setup-vale.ts
mkdirSync(OUTPUT_DIR, { recursive: true });
}

const terms = [...new Set(glossaryTerms.map(({ term }) => term))].sort((a, b) =>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the uniqueness of glossaryTerms be enforced "server-side" via some sort of linting? I realize the Set() call should remain as a preventative measure, but still.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be enforced through PR review when the glossary gets modified. That's what makes sense to me anyways.

Comment thread scripts/setup-vale.ts
Comment thread scripts/setup-vale.ts Outdated

Both examples accomplish the same tasks and there is no difference.
Whether you put your comments above or next to code is up to you and what makes the most sense for your code.
Whether you put your comments preceding or alongside code is up to you and what makes the most sense for your code.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, I think the replacements of "above" and "next to" make the sentence more difficult to read.

Using Java, we can write code that allows a robot to run a motor, adjust speed, and much more.
There is a lot to learn when learning Java.
However, FRCSoftware will go over the basics needed to program a robot.
While there is a lot to learn when learning Java, FRCSoftware will only cover the basics needed to program a robot.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rephrase this as:

Although Java has many concepts to learn, FRCSoftware will only cover the basics needed to program a robot.

Comment thread src/content/docs/resources/glossary.mdx Outdated
Comment thread src/data/glossary.ts Outdated
Comment thread .vale.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate vale spellcheck

4 participants