Skip to content

Commit 050af89

Browse files
authored
Create main.yml
1 parent 667f838 commit 050af89

File tree

1 file changed

+118
-0
lines changed

1 file changed

+118
-0
lines changed

.github/workflows/main.yml

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
- name: Check Spelling
2+
# You may pin to the exact commit or the version.
3+
# uses: check-spelling/check-spelling@00c989c97749eb0cb2d256bdc55ac61b0096c6d3
4+
uses: check-spelling/check-spelling@v0.0.22
5+
with:
6+
# The GITHUB_TOKEN secret
7+
GITHUB_TOKEN: # default is ${{ github.token }}
8+
# Container for spelling configuration
9+
bucket: # optional
10+
# Folder/Branch within bucket containing spelling configuration
11+
project: # optional
12+
# Spelling configuration directory
13+
config: # optional, default is .github/actions/spelling
14+
# Directory root to check for spelling (note that bucket/project/config are independent of this)
15+
experimental_path: # optional, default is .
16+
# Location of dictionary (if you aren't providing one in your repository)
17+
dictionary_url: # optional, default is https://raw.githubusercontent.com/check-spelling/check-spelling/dictionary-$DICTIONARY_VERSION/dict.txt
18+
# Version of the dictionary (only used if the url includes $DICTIONARY_VERSION)
19+
dictionary_version: # optional, default is 20200211
20+
# Debug
21+
debug: # optional
22+
# (Experimental) Allow users to quote-reply to the bot comment to update the PR
23+
experimental_apply_changes_via_bot: # optional, default is 0
24+
# Number of CPUs available for running checks
25+
experimental_parallel_jobs: # optional, default is 2
26+
# Post comment with report
27+
post_comment: # optional, default is 1
28+
#
29+
capture_output_unknown_words: # optional, default is
30+
#
31+
capture_output_stale_words: # optional, default is
32+
#
33+
capture_output_skipped_files: # optional, default is
34+
# JSON map of prefixes for dictionary urls
35+
dictionary_source_prefixes: # optional, default is {"cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/"}
36+
# Space delimited list of URLs (or `prefix:`+path) to additional word lists
37+
extra_dictionaries: # optional, default is
38+
# Compare unknown tokens against these dictionaries and suggest if applicable
39+
check_extra_dictionaries: # optional, default is cspell:ada/dict/ada.txt cspell:aws/aws.txt cspell:clojure/src/clojure.txt cspell:companies/src/companies.txt cspell:cpp/src/compiler-clang-attributes.txt cspell:cpp/src/compiler-gcc.txt cspell:cpp/src/compiler-msvc.txt cspell:cpp/src/ecosystem.txt cspell:cpp/src/lang-jargon.txt cspell:cpp/src/lang-keywords.txt cspell:cpp/src/people.txt cspell:cpp/src/stdlib-c.txt cspell:cpp/src/stdlib-cerrno.txt cspell:cpp/src/stdlib-cmath.txt cspell:cpp/src/stdlib-cpp.txt cspell:cpp/src/template-strings.txt cspell:cryptocurrencies/cryptocurrencies.txt cspell:csharp/csharp.txt cspell:css/dict/css.txt cspell:dart/src/dart.txt cspell:django/dict/django.txt cspell:django/requirements.txt cspell:docker/src/docker-words.txt cspell:dotnet/dict/dotnet.txt cspell:elixir/dict/elixir.txt cspell:filetypes/filetypes.txt cspell:fonts/fonts.txt cspell:fullstack/dict/fullstack.txt cspell:gaming-terms/dict/gaming-terms.txt cspell:golang/dict/go.txt cspell:haskell/dict/haskell.txt cspell:html-symbol-entities/entities.txt cspell:html/dict/html.txt cspell:html/src/svg.txt cspell:java/src/java-terms.txt cspell:java/src/java.txt cspell:k8s/dict/k8s.txt cspell:latex/dict/latex.txt cspell:latex/samples/sample-words.txt cspell:lisp/lisp.txt cspell:lorem-ipsum/dictionary.txt cspell:lua/dict/lua.txt cspell:mnemonics/src/mnemonics.txt cspell:monkeyc/src/monkeyc_keywords.txt cspell:node/dict/node.txt cspell:npm/dict/npm.txt cspell:php/dict/php.txt cspell:powershell/dict/powershell.txt cspell:public-licenses/src/additional-licenses.txt cspell:public-licenses/src/generated/public-licenses.txt cspell:python/src/additional_words.txt cspell:python/src/common/extra.txt cspell:python/src/python/python-lib.txt cspell:python/src/python/python.txt cspell:r/src/r.txt cspell:redis/dict/redis.txt cspell:ruby/dict/ruby.txt cspell:rust/dict/rust.txt cspell:scala/dict/scala.txt cspell:shell/dict/shell-all-words.txt cspell:software-terms/dict/softwareTerms.txt cspell:software-terms/dict/webServices.txt cspell:sql/src/sql.txt cspell:sql/src/tsql.txt cspell:svelte/dict/svelte.txt cspell:swift/src/swift.txt cspell:typescript/dict/typescript.txt
40+
# Limit the number of suggested extra dictionaries.
41+
extra_dictionary_limit: # optional, default is 5
42+
# Try to treat a GitHub event "a" as GitHub event "b" (JSON map). If this flag was available before this tool recognized `pull_request_target`, `{"pull_request_target":"pull_request"}` would have mapped it to `pull_request`.
43+
event_aliases: # optional, default is
44+
# Shortest word
45+
shortest_word: # optional, default is 3
46+
# Longest word
47+
longest_word: # optional, default is
48+
# If set, commit updates to expect automatically with this note
49+
experimental_commit_note: # optional, default is
50+
# If set, do not do work in response to `push` if there is an open `pull` request to the repository for the branch (this assumes there's a `pull_request_target` event configured).
51+
suppress_push_for_open_pull_request: # optional, default is
52+
# Suffix for report title (useful if you are using a matrix strategy or are using experimental_path)
53+
report_title_suffix: # optional, default is
54+
# If set, only check files changed since the last push
55+
only_check_changed_files: # optional, default is
56+
# Run an internal task instead of responding to a GitHub event. Values: "comment"
57+
custom_task: # optional, default is
58+
# Used for passing internal state from the (default) check mode to the comment module
59+
internal_state_directory: # optional, default is
60+
# Spell check file paths
61+
check_file_names: # optional, default is
62+
# List of extra text to check (latest `commit` message, messages for pending `commits`, PR `title`, PR `description`)
63+
check_commit_messages: # optional, default is
64+
# Perform secpoll queries via a public dns server
65+
anonymize_secpoll_source: # optional, default is
66+
# Set to the value of the current security advisory to accept the reported risk -- value must match -- do not set if there is no current advisory
67+
ignore_security_advisory: # optional, default is
68+
# File size limit
69+
largest_file: # optional, default is 1048576
70+
# Only report an unknown word this many times
71+
unknown_word_limit: # optional, default is 5
72+
# List of events that are warnings (items that are neither warnings nor notices will result in an :x:)
73+
warnings: # optional, default is bad-regex,binary-file,deprecated-feature,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration
74+
# List of events that are notices (items that are neither warnings nor notices will result in an :x:)
75+
notices: # optional, default is candidate-pattern
76+
# Suppress failure code exit code -- it will be available via outputs.result_code
77+
quit_without_error: # optional, default is
78+
# Repository with default configuration to use if no configuration is found in a .github/actions/spelling directory
79+
spell_check_this: # optional, default is
80+
# Key for checking out / pushing to updates (and trigger workflow cascades)
81+
ssh_key: # optional, default is
82+
# Whether to check out a repository
83+
checkout: # optional, default is
84+
# Task to perform (spelling, comment, ...)
85+
task: # optional, default is
86+
# Some heuristics might not do what you want, it may be possible to suppress them
87+
disable_checks: # optional, default is
88+
# Alternate engine to use
89+
alternate_engine: # optional, default is
90+
# ssh key to retrieve alternate engine
91+
alternate_engine_key: # optional, default is
92+
# Publish Sarif report
93+
use_sarif: # optional, default is
94+
# Use magic file to skip binary files
95+
use_magic_file: # optional, default is
96+
# Hack for nektos/act - pass the outputs.docker_container to give check-spelling a way to retrieve data it needs to report a comment
97+
caller_container: # optional
98+
# Control the number of examples shown for candidate patterns
99+
candidate_example_limit: # optional, default is 3
100+
# Provide item table (paths, content)
101+
summary_table: # optional, default is 1
102+
# Word Splitter Ignore Pattern
103+
ignore-pattern: # optional, default is [^a-zA-Z']
104+
# Word Splitter Upper Pattern
105+
upper-pattern: # optional, default is [A-Z]
106+
# Word Splitter Lower Pattern
107+
lower-pattern: # optional, default is [a-z]
108+
# Word Splitter Not Lower Pattern
109+
not-lower-pattern: # optional, default is [^a-z]
110+
# Word Splitter Not Upper or Lower Pattern
111+
not-upper-or-lower-pattern: # optional, default is [^A-Za-z]
112+
# Word Splitter Punctuation Pattern
113+
punctuation-pattern: # optional, default is '
114+
# Report processing time for files
115+
report-timing: # optional, default is
116+
# Cache dictionaries
117+
cache-dictionaries: # optional, default is 1
118+

0 commit comments

Comments
 (0)