Merge pull request #268 from github/SpellingCheck

Spelling check
This commit is contained in:
Zack Koppert 2020-06-24 17:00:13 -07:00 committed by GitHub
commit 8250e9d8ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 321 additions and 22 deletions

View file

@ -8,7 +8,7 @@
# Its based on being built from a GitHub Action, but could be easily updated # Its based on being built from a GitHub Action, but could be easily updated
# To be ran in a different medium. # To be ran in a different medium.
# #
# PRE-Reqs: # PRE-Requirements:
# - Dockerfile # - Dockerfile
# - System with Docker installed # - System with Docker installed
# - Global variables met # - Global variables met

View file

@ -35,7 +35,7 @@ CheckGHEPid()
################################################ ################################################
if [ ! -f "$GHE_CONFIG_PID" ]; then if [ ! -f "$GHE_CONFIG_PID" ]; then
# File not found # File not found
echo "Were good to move forward, no .pid file found at:[$GHE_CONFIG_PID]" echo "We're good to move forward, no .pid file found at:[$GHE_CONFIG_PID]"
else else
# Found the pid running, need to sleep # Found the pid running, need to sleep
echo "Current PID found, sleeping $SLEEP_SECONDS seconds before next check..." echo "Current PID found, sleeping $SLEEP_SECONDS seconds before next check..."
@ -189,10 +189,10 @@ CheckGHEProcess
#################### ####################
RunConfigApply RunConfigApply
########################################## ###########################################
# Were going to run it again after a nap # # We're going to run it again after a nap #
# to make sure there is no crazy actions # # to make sure there is no crazy actions #
########################################## ###########################################
sleep 300s sleep 300s
###################### ######################

View file

@ -6,7 +6,7 @@
# `mona echo *` - repeats what you say # `mona echo *` - repeats what you say
# #
# Author: # Author:
# admiralAwkbar@github.com # admiralawkbar@github.com
############################### ###############################
# Drop Hammer array of images # # Drop Hammer array of images #

View file

@ -6,7 +6,7 @@
# `mona echo *` - repeats what you say # `mona echo *` - repeats what you say
# #
# Author: # Author:
# admiralAwkbar@github.com # admiralawkbar@github.com
############################### ###############################
# Drop Hammer array of images # # Drop Hammer array of images #

View file

@ -1,5 +1,5 @@
/* Bad */ /* Bad */
/* Multiline */ /* Multi-line */
/* Comment */ /* Comment */
.selector-3[type="text"] { .selector-3[type="text"] {
background: linear-gradient(#FFFFFF, rgba(0, 0, 0, 0.8)); background: linear-gradient(#FFFFFF, rgba(0, 0, 0, 0.8));

View file

@ -16,5 +16,5 @@ ls -la
# Walk away # Walk away
Were all done **here**. We're all done **here**.
- [Link Action]https://github.com - [Link Action]https://github.com

View file

@ -16,5 +16,5 @@ ls -la
### Walk away ### Walk away
Were all done **here**. We're all done **here**.
- [Link Action](https://github.com) - [Link Action](https://github.com)

View file

@ -1,7 +1,7 @@
#!/usr/bin/perl #!/usr/bin/perl
################################################################################ ################################################################################
################################################################################ ################################################################################
######### Script action @admiralAwkbar ######################################### ######### Script action @admiralawkbar #########################################
################################################################################ ################################################################################
############# #############

View file

@ -1,7 +1,7 @@
#!/usr/bin/perl #!/usr/bin/perl
################################################################################ ################################################################################
################################################################################ ################################################################################
######### Script action @admiralAwkbar ######################################### ######### Script action @admiralawkbar #########################################
################################################################################ ################################################################################
############# #############

View file

@ -9,7 +9,7 @@
# Its based on being built from a GitHub Action, but could be easily updated # Its based on being built from a GitHub Action, but could be easily updated
# To be ran in a different medium. # To be ran in a different medium.
# #
# PRE-Reqs: # PRE-Requirements:
# - Dockerfile # - Dockerfile
# - System with Docker installed # - System with Docker installed
# - Global variables met # - Global variables met

View file

@ -0,0 +1,7 @@
musl
nvq
rdoc
setuptools
uninstall
wget
WORKDIR

View file

@ -0,0 +1 @@
alnum

View file

@ -0,0 +1,3 @@
noqa
toc
todo

View file

@ -0,0 +1,2 @@
configcheck
nohup

View file

@ -0,0 +1,2 @@
args
pid

View file

@ -0,0 +1 @@
initialconfig

View file

@ -0,0 +1,2 @@
ldapconfig
openldap

View file

@ -0,0 +1,8 @@
cov
eslintcache
jscoverage
jspm
nyc
tgz
typings
wscript

View file

@ -0,0 +1,7 @@
cw
Mstrict
printenv
rcfile
tf
tolower
whoami

View file

@ -0,0 +1,8 @@
Autobots
basemap
cas
cn
crt
rsa
tlsv
tmp

View file

@ -0,0 +1,4 @@
dotcom
identicons
oauth
timezone

158
.github/actions/spelling/allow/words.txt vendored Normal file
View file

@ -0,0 +1,158 @@
admiralawkbar
ansible
api
apk
aws
baz
beardofedu
certs
changeset
codebase
CODEOWNERS
coffeelint
coffeescript
collectd
concat
config
configs
css
dest
devops
dirname
dockerfile
dockerfilelint
dockerfilelintrc
dotenv
elif
emails
entrypoint
Errorf
eslint
eslintrc
filetype
func
gcc
getenv
ghe
GHES
ghl
github
globals
golang
golangci
Google
gpg
gql
Grafana
graphql
grep
homepage
hookshot
hostname
hostvars
http
https
hubot
idp
ip
Jani
javascript
jq
json
jsonlint
jwiebalk
JWT
ldap
len
lfs
libxml
linted
linting
loadbalancer
localhost
loglevel
markdownlint
millis
mkdir
nodejs
NONINFRINGEMENT
noproxy
noreply
npm
ntp
opensource
opensourcefriday
perl
plugin
posix
pprint
Prego
prettyjson
Println
probot
px
py
pylint
rb
readlines
README
regex
regexp
resqued
rgba
rien
Rubo
rubocop
saml
screenshots
shellcheck
signup
smtp
snmp
socio
splunk
src
ssh
ssl
sso
stackoverflow
stacktraces
standardjs
stringify
stylelint
stylelintrc
subdomain
subfolders
sudo
sys
syslog
taz
terraform
tflint
tileserver
tls
typeof
ubuntu
udp
uid
undef
uniq
uri
url
urlencode
username
usr
utils
Vape
vnd
webhook
wiki
wildcards
workflow
xml
xmllint
yaml
yamllint
yml
yq
zkoppert

2
.github/actions/spelling/excludes.txt vendored Normal file
View file

@ -0,0 +1,2 @@
^\.github/linters/
^TEMPLATES/\.\S*

39
.github/actions/spelling/expect.txt vendored Normal file
View file

@ -0,0 +1,39 @@
cdxml
changelog
chmod
Dockerhub
EOL
GPR
IAm
icu
jre
kotlin
krb
ktlint
libgcc
libintl
libssl
libstdc
linux
lttng
microsoft
ncurses
nq
openjdk
php
powershell
println
psd
psm
psrc
pssc
psscriptanalyzer
pwsh
rcu
rhc
ry
terminfo
tzdata
userspace
xargs
zlib

7
.github/actions/spelling/patterns.txt vendored Normal file
View file

@ -0,0 +1,7 @@
https?:\S*
# ignore long runs of a single character:
([A-Za-z])\1{3,}
# Any CLI args (-xzf -aef)
\ -\w+\b
# Hex colors (dummy group to not be treated as comment)
(?:#)([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})

48
.github/workflows/check-spelling.yml vendored Normal file
View file

@ -0,0 +1,48 @@
---
####################
## Check spelling ##
####################
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
name: Spell checking
#############################
# Start the job on all push #
#############################
on:
push:
branches-ignore:
- 'master'
###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Spell checking
# Set the agent to run on
runs-on: ubuntu-latest
##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v2
#############################
# Run check spelling action #
#############################
- name: Check spelling
uses: check-spelling/check-spelling@0.0.16-alpha
with:
bucket: .github/actions
project: spelling
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2
.gitignore vendored
View file

@ -29,7 +29,7 @@ bower_components
# node-waf configuration # node-waf configuration
.lock-wscript .lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html) # Compiled binary add-ons (https://nodejs.org/api/addons.html)
build/Release build/Release
# Dependency directories # Dependency directories

View file

@ -156,9 +156,9 @@ This line is waaaaaaaaaay too long # yamllint disable-line
### Yamllint disable code block ### Yamllint disable code block
```yml ```yml
# yamllint disable rule:colons # yamllint disable rule:colons
- Lorem : ipsum - Key : value
dolor : sit amet, dolor : sit,
consectetur : adipiscing elit foo : bar
# yamllint enable # yamllint enable
``` ```
@ -222,9 +222,9 @@ class Foo(object):
def meth3(self): def meth3(self):
"""test one line disabling""" """test one line disabling"""
# no error # no error
print(self.bla) # pylint: disable=no-member print(self.baz) # pylint: disable=no-member
# error # error
print(self.blop) print(self.baz)
``` ```
### Pylint disable entire file ### Pylint disable entire file

View file

@ -3,7 +3,7 @@
################################################################################ ################################################################################
################################################################################ ################################################################################
########### Super-Linter (Lint all the code) @AdmiralAwkbar #################### ########### Super-Linter (Lint all the code) @admiralawkbar ####################
################################################################################ ################################################################################
################################################################################ ################################################################################
@ -27,7 +27,7 @@ RUBY_FILE_NAME='.ruby-lint.yml' # Name of th
RUBY_LINTER_RULES="$DEFAULT_RULES_LOCATION/$RUBY_FILE_NAME" # Path to the ruby lint rules RUBY_LINTER_RULES="$DEFAULT_RULES_LOCATION/$RUBY_FILE_NAME" # Path to the ruby lint rules
# Coffee Vars # Coffee Vars
COFFEE_FILE_NAME='.coffee-lint.json' # Name of the file COFFEE_FILE_NAME='.coffee-lint.json' # Name of the file
COFFEESCRIPT_LINTER_RULES="$DEFAULT_RULES_LOCATION/$COFFEE_FILE_NAME" # Path to the coffescript lint rules COFFEESCRIPT_LINTER_RULES="$DEFAULT_RULES_LOCATION/$COFFEE_FILE_NAME" # Path to the coffeescript lint rules
# Javascript Vars # Javascript Vars
JAVASCRIPT_FILE_NAME='.eslintrc.yml' # Name of the file JAVASCRIPT_FILE_NAME='.eslintrc.yml' # Name of the file
JAVASCRIPT_LINTER_RULES="$DEFAULT_RULES_LOCATION/$JAVASCRIPT_FILE_NAME" # Path to the Javascript lint rules JAVASCRIPT_LINTER_RULES="$DEFAULT_RULES_LOCATION/$JAVASCRIPT_FILE_NAME" # Path to the Javascript lint rules