mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-06 01:05:54 -05:00
Add check spelling workflow
test bucket variable Add empty expect words add procjet varaible Add excludes file add patters for urls Add newline at eof Changing lorem ipsum for proper words Add admiralawkbar to expected words Exclude lint templates files Add api apk and ansible as expected words add expected words for cleanup-docker.sh add expected words for ghe-config-apply.sh Fix add-ons spelling Add a bunch new words Simpler url pattern Use common baz word Fix coffeescript spelling Add expected words for ghe-api-config-apply.yml Add ecpected words for linter.sh Fix Multi-line spelling Add more linter.sh expected words Add a whole lot of expected words Add pattern for repeated single char Add space Add expected words for Dockerfile Add more expected words for ghe-api-config-apply.yml Add expected words for he-initial-configuration.yml Add expected words for ghe-ldap-configuration.yml Move spelling/expect -> spelling/allow Set workflow name Fix @admiralawkbar capitalization Fix requirements spelling Add last docker allow words Add last ghe-config-apply allow words Add last linter.sh allow words add last general allow words Add .gitignore allow words Add main.yml allow words Add settings.json.j2 allow words Add empty expect words Test gitignore.txt Fix patter for repeated chars Add some more allowed words more words Add disabling-linters.md allow words commit
This commit is contained in:
parent
071fdcd319
commit
e15a4dc174
26 changed files with 274 additions and 15 deletions
|
@ -8,7 +8,7 @@
|
|||
# Its based on being built from a GitHub Action, but could be easily updated
|
||||
# To be ran in a different medium.
|
||||
#
|
||||
# PRE-Reqs:
|
||||
# PRE-Requirements:
|
||||
# - Dockerfile
|
||||
# - System with Docker installed
|
||||
# - Global variables met
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# `mona echo *` - repeats what you say
|
||||
#
|
||||
# Author:
|
||||
# admiralAwkbar@github.com
|
||||
# admiralawkbar@github.com
|
||||
|
||||
###############################
|
||||
# Drop Hammer array of images #
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# `mona echo *` - repeats what you say
|
||||
#
|
||||
# Author:
|
||||
# admiralAwkbar@github.com
|
||||
# admiralawkbar@github.com
|
||||
|
||||
###############################
|
||||
# Drop Hammer array of images #
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Bad */
|
||||
/* Multiline */
|
||||
/* Multi-line */
|
||||
/* Comment */
|
||||
.selector-3[type="text"] {
|
||||
background: linear-gradient(#FFFFFF, rgba(0, 0, 0, 0.8));
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/perl
|
||||
################################################################################
|
||||
################################################################################
|
||||
######### Script action @admiralAwkbar #########################################
|
||||
######### Script action @admiralawkbar #########################################
|
||||
################################################################################
|
||||
|
||||
#############
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/perl
|
||||
################################################################################
|
||||
################################################################################
|
||||
######### Script action @admiralAwkbar #########################################
|
||||
######### Script action @admiralawkbar #########################################
|
||||
################################################################################
|
||||
|
||||
#############
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
# Its based on being built from a GitHub Action, but could be easily updated
|
||||
# To be ran in a different medium.
|
||||
#
|
||||
# PRE-Reqs:
|
||||
# PRE-Requirements:
|
||||
# - Dockerfile
|
||||
# - System with Docker installed
|
||||
# - Global variables met
|
||||
|
|
9
.github/actions/spelling/allow/Dockerfile.txt
vendored
Normal file
9
.github/actions/spelling/allow/Dockerfile.txt
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
musl
|
||||
nvq
|
||||
rdoc
|
||||
setuptools
|
||||
uninstall
|
||||
Jv
|
||||
wget
|
||||
WORKDIR
|
||||
xzf
|
1
.github/actions/spelling/allow/cleanup-docker.sh.txt
vendored
Normal file
1
.github/actions/spelling/allow/cleanup-docker.sh.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
alnum
|
3
.github/actions/spelling/allow/disabling-linters.md.txt
vendored
Normal file
3
.github/actions/spelling/allow/disabling-linters.md.txt
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
noqa
|
||||
toc
|
||||
todo
|
2
.github/actions/spelling/allow/ghe-api-config-apply.yml.txt
vendored
Normal file
2
.github/actions/spelling/allow/ghe-api-config-apply.yml.txt
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
configcheck
|
||||
nohup
|
3
.github/actions/spelling/allow/ghe-config-apply.sh.txt
vendored
Normal file
3
.github/actions/spelling/allow/ghe-config-apply.sh.txt
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
aef
|
||||
args
|
||||
pid
|
1
.github/actions/spelling/allow/ghe-initial-configuration.yml.txt
vendored
Normal file
1
.github/actions/spelling/allow/ghe-initial-configuration.yml.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
initialconfig
|
2
.github/actions/spelling/allow/ghe-ldap-configuration.yml.txt
vendored
Normal file
2
.github/actions/spelling/allow/ghe-ldap-configuration.yml.txt
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
ldapconfig
|
||||
openldap
|
8
.github/actions/spelling/allow/gitignore.txt
vendored
Normal file
8
.github/actions/spelling/allow/gitignore.txt
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
cov
|
||||
eslintcache
|
||||
jscoverage
|
||||
jspm
|
||||
nyc
|
||||
tgz
|
||||
typings
|
||||
wscript
|
7
.github/actions/spelling/allow/linter.sh.txt
vendored
Normal file
7
.github/actions/spelling/allow/linter.sh.txt
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
cw
|
||||
Mstrict
|
||||
printenv
|
||||
rcfile
|
||||
tf
|
||||
tolower
|
||||
whoami
|
8
.github/actions/spelling/allow/main.yml.txt
vendored
Normal file
8
.github/actions/spelling/allow/main.yml.txt
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
Autobots
|
||||
basemap
|
||||
cas
|
||||
cn
|
||||
crt
|
||||
rsa
|
||||
tlsv
|
||||
tmp
|
4
.github/actions/spelling/allow/settings.json.j2.txt
vendored
Normal file
4
.github/actions/spelling/allow/settings.json.j2.txt
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
dotcom
|
||||
identicons
|
||||
oauth
|
||||
timezone
|
159
.github/actions/spelling/allow/words.txt
vendored
Normal file
159
.github/actions/spelling/allow/words.txt
vendored
Normal file
|
@ -0,0 +1,159 @@
|
|||
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
|
||||
Lk
|
||||
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
2
.github/actions/spelling/excludes.txt
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
^\.github/linters/
|
||||
^TEMPLATES/\.\S*
|
0
.github/actions/spelling/expect.words.txt
vendored
Normal file
0
.github/actions/spelling/expect.words.txt
vendored
Normal file
3
.github/actions/spelling/patterns.txt
vendored
Normal file
3
.github/actions/spelling/patterns.txt
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
https?:\S*
|
||||
# ignore long runs of a single character:
|
||||
([A-Za-z])\1{3,}
|
47
.github/workflows/check-spelling.yml
vendored
Normal file
47
.github/workflows/check-spelling.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
---
|
||||
####################
|
||||
## 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
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -29,7 +29,7 @@ bower_components
|
|||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
# Compiled binary add-ons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
|
|
|
@ -154,9 +154,9 @@ This line is waaaaaaaaaay too long # yamllint disable-line
|
|||
### Yamllint disable code block
|
||||
```yml
|
||||
# yamllint disable rule:colons
|
||||
- Lorem : ipsum
|
||||
dolor : sit amet,
|
||||
consectetur : adipiscing elit
|
||||
- Key : value
|
||||
dolor : sit,
|
||||
foo : bar
|
||||
# yamllint enable
|
||||
```
|
||||
|
||||
|
@ -220,9 +220,9 @@ class Foo(object):
|
|||
def meth3(self):
|
||||
"""test one line disabling"""
|
||||
# no error
|
||||
print(self.bla) # pylint: disable=no-member
|
||||
print(self.baz) # pylint: disable=no-member
|
||||
# error
|
||||
print(self.blop)
|
||||
print(self.baz)
|
||||
```
|
||||
|
||||
### Pylint disable entire 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
|
||||
# Coffee Vars
|
||||
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_FILE_NAME='.eslintrc.yml' # Name of the file
|
||||
JAVASCRIPT_LINTER_RULES="$DEFAULT_RULES_LOCATION/$JAVASCRIPT_FILE_NAME" # Path to the Javascript lint rules
|
||||
|
|
Loading…
Reference in a new issue