Skip to content

Commit

Permalink
ci: add spell_checker (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago authored Feb 19, 2024
1 parent 01125e4 commit 5666385
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .github/.cspell/dart_dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Keywords or terms specific to the Dart or Flutter ecosystem:
audioplayers # A Flutter plugin to play multiple simultaneously audio files.
cupertino # Flutter module containing iOS-style widgets.
endtemplate # Dart doc macro used to end a reusable piece of documentation.
LTWH # From Flutter, abbreviation left, top, width and height.
mockingjay # A Flutter package for mocking navigation.
mocktail # A Dart mock package.
pubspec # File name where all the package metadata goes in.
unawaited # A Dart function to explicitly ignore a future.
12 changes: 12 additions & 0 deletions .github/.cspell/dev_dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Other phrases that are not words but are getting flagged. Typically contained in localization files or URLs:
aplicación # "Application" in Spanish.
botón # "Button" in Spanish.
buen # "Good" in Spanish.
contador # "Counter" in Spanish.
empieza # "Begin" in Spanish.
inicial # "Initial" in Spanish.
inicio # "Start" in Spanish.
juego # "Game" in Spanish.
mostrado # "Shown" in Spanish.
página # "Page" in Spanish.
texto # "Text" in Spanish.
2 changes: 2 additions & 0 deletions .github/.cspell/people_usernames.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Specific people's names and/or usernames:
luan # Maintainer of the Flutter `audioplayers` plugin.
27 changes: 27 additions & 0 deletions .github/.cspell/words_dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Actual english words (or common abbreviations) missing from CSpell:
CLI # Abbreviation for Command Line Interface.
CLIs # Plural of the abbreviation for Command Line Interface.
CLI's # Belonging to a CLI.
dependabot # Automated dependency updates built into GitHub.
docusaurs # An optimized site generator in React.
genhtml # Tool to generate an HTML view from LCOV coverage data files.
gradlew # Wrapper tool that uses Gradle.
lcov # Graphical tool for displaying coverage reports.
localizable # Capable of being localized.
negatable # Capable of being negated.
nojekyll # File to bypass Jekyll processing on GitHub.
pngs # Abbreviation for an image format named Portable Network Graphics.
preload # Put information onto a system before it is used.
prettierignore # Ignore file name for Prettier.
prettierrc # Configuration file name for Prettier.
recase # Casing once again.
roadmap # A plan or strategy intended to achieve a particular goal.
routable # Capable of being routed.
theming # Give a particular theme or setting.
unicorn # A mythical animal.
nicorn # "unicorn", but without the "u".
unmutes # To allow to produce sound again.
verygood # Very Good, but without a space.
xcode # Apple's integrated development environment.
xcworkspace # Abbreviation for Xcode workspace.
xcassets # Abbreviation for Xcode assets.
40 changes: 33 additions & 7 deletions .github/cspell.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{
"version": "0.2",
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"dictionaries": ["vgv_allowed", "vgv_forbidden"],
"enabled": true,
"language": "en",
"dictionaries": [
"vgv_allowed",
"vgv_forbidden",
"dart_dictionary",
"dev_dictionary",
"people_usernames",
"words_dictionary"
],
"dictionaryDefinitions": [
{
"name": "vgv_allowed",
Expand All @@ -12,14 +21,31 @@
"name": "vgv_forbidden",
"path": "https://raw.githubusercontent.com/verygoodopensource/very_good_dictionaries/main/forbidden.txt",
"description": "Forbidden VGV Spellings"
},
{
"name": "dart_dictionary",
"path": "./.cspell/dart_dictionary.txt",
"addWords": true
},
{
"name": "dev_dictionary",
"path": "./.cspell/dev_dictionary.txt",
"addWords": true
},
{
"name": "people_usernames",
"path": "./.cspell/people_usernames.txt",
"addWords": true
},
{
"name": "words_dictionary",
"path": "./.cspell/words_dictionary.txt",
"addWords": true
}
],
"useGitignore": true,
"words": [
"Contador",
"localizable",
"mostrado",
"página",
"Texto"
"ignorePaths": [
"very_good_docs_site/__brick__/*/docs/overview.md",
"very_good_docs_site/__brick__/*/src/pages/index.tsx"
]
}
18 changes: 18 additions & 0 deletions .github/workflows/spell_checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: spell_checker

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: zwaldowski/cspell-action@v1
with:
paths: "**/*.{md,dart}"
config: .github/cspell.json
exclude: ".gitignore **.gen.dart **.g.dart"
4 changes: 2 additions & 2 deletions very_good_dart_cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# 0.3.2

- feat: update workflows, add spellcheck
- fix: remove unused pub updater from test
- fix: remove unused pub updater from test

# 0.3.1

Expand All @@ -34,7 +34,7 @@

# 0.2.2

- fix: update silently fails when the sdk doesnt support most recent version
- fix: update silently fails when the sdk doesn't support most recent version

# 0.2.1

Expand Down

0 comments on commit 5666385

Please sign in to comment.