Skip to content

Commit

Permalink
add: spell check ci
Browse files Browse the repository at this point in the history
Just an initial portion for now fixing incorrect text and preventing future incorrect text. Eventually, I'd like to fix everything still listed under "ignoredWords" in cspell.json.
  • Loading branch information
Roardom committed Jan 24, 2025
1 parent 90d2741 commit 604b7e1
Show file tree
Hide file tree
Showing 99 changed files with 661 additions and 123 deletions.
12 changes: 12 additions & 0 deletions .cspell/bittorrent.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
announce
bdecode
bencode
btih
infohash
leecher
leechers
numwant
peerlist
seedbox
seedboxes
seeders
12 changes: 12 additions & 0 deletions .cspell/blade.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
endcomponent
enderror
endfor
endforeach
endforelse
endisset
endphp
endsection
endslot
endswitch
forelse
isset
16 changes: 16 additions & 0 deletions .cspell/brands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
authy
bdinfo
bitwarden
gnutella
igdb
imdb
jackett
kazaa
limewire
mal
mediainfo
phpstorm
shareaza
tmdb
tvdb
tvrage
34 changes: 34 additions & 0 deletions .cspell/dependencies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
alpinejs
assada
axios
axllent
beanstalkd
commonmark
gabrielelana
getmeili
imagick
imgbb
joypixels
laravel
linkify
livewire
mailgun
mailpit
meilisearch
papertrail
phpredis
phpstan
phpunit
polycast
purgecss
reichel
ryoluo
spatie
stelmakh
sweetalert
symfony
theodorejb
typesense
vite
voku
zxcvbn
6 changes: 6 additions & 0 deletions .cspell/dependency_terms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
asciify
dontBackupDatabases
dontBackupFilesystem
htmlify
lexify
swal
27 changes: 27 additions & 0 deletions .cspell/html.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
autocorrect
autofocus
backref
contentlength
datalist
describedby
evenodd
formaction
formmethod
formnovalidate
inputmode
lightcoral
maxlength
minmax
nbsp
noopener
noreferrer
nowrap
progressbar
rowgroup
rowspan
stroke-linejoin
tabindex
valuemax
valuemin
valuenow
xlink
6 changes: 6 additions & 0 deletions .cspell/irc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
joinchannel
nickserv
nickservpass
privmsg
realname
servername
22 changes: 22 additions & 0 deletions .cspell/laravel.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
arrayable
assertdontseetext
dispatchable
doesntcontain
doesntexist
dontbroadcasttocurrentuser
dontflash
dontreport
ehlo
encryptable
encrypter
mimetypes
mysql
ordoesnthave
pgsql
queueable
sasl
sslmode
sqlite
sqlsrv
stringable
wheredoesnthave
8 changes: 8 additions & 0 deletions .cspell/mysql.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
arrayagg
from_unixtime
inet6_ntoa
innodb
mysqld
mysqldump
timestampadd
timestampdiff
7 changes: 7 additions & 0 deletions .cspell/people.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
hdvinnie
rhilip
roardom
sindre
sindresorhus
sorhus
vinnie
10 changes: 10 additions & 0 deletions .cspell/php.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
autoload
autoloaded
autoloading
bcmath
classmap
fastcgi
igbinary
mbstring
opcache
phar
4 changes: 4 additions & 0 deletions .cspell/php_constants.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ENT_NOQUOTES
PATHINFO_BASENAME
PREG_OFFSET_CAPTURE
PREG_SET_ORDER
45 changes: 45 additions & 0 deletions .cspell/php_functions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
addslashes
closedir
ctype_digit
ctype_print
ctype_xdigit
fclose
fgets
fileperms
fpassthru
fsockopen
fwrite
getcwd
gethostbyaddr
htmlspecialchars
inet_ntop
inet_pton
intdiv
intval
isset
ksort
ltrim
microtime
opendir
pathinfo
preg_match
preg_match_all
preg_quote
preg_replace
preg_replace_callback
preg_split
rawurlencode
rtrim
scandir
strcasecmp
strpos
strrchr
strspn
strtolower
strtotime
strtoupper
sys_getloadavg
uniqid
unserialize
urldecode
usleep
6 changes: 6 additions & 0 deletions .cspell/redis.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
llen
lpop
lpush
rpush
sadd
srandmember
19 changes: 19 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check Spelling
on: [push, pull_request]
jobs:
spellcheck:
strategy:
matrix:
operating-system:
- ubuntu-22.04
name: ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run CSpell
uses: streetsidesoftware/cspell-action@v6
with:
incremental_files_only: false
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing

Contributions are **welcome**. Please make all pull requests agaist the development branch (currently 8.x.x) and NOT master which is only for releases.
Contributions are **welcome**. Please make all pull requests against the development branch (currently 8.x.x) and NOT master which is only for releases.

We accept contributions via Pull Requests on [Github](https://github.com/HDInnovations/UNIT3D).

Expand Down Expand Up @@ -104,7 +104,7 @@ Any new pages should use the existing component styles unless a new block, eleme

## Other

- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
- **Document any change in behavior** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.

- **Create feature branches** - Don't ask us to pull from your master branch.

Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoDeactivateWarning.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ final public function handle(): void
}
}, 'user_id');

$this->comment('Automated Warning Deativation Command Complete');
$this->comment('Automated Warning Deactivation Command Complete');
}
}
2 changes: 1 addition & 1 deletion app/Console/Commands/AutoRecycleClaimedTorrentRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class AutoRecycleClaimedTorrentRequests extends Command
*
* @var string
*/
protected $description = 'Recycle Torrent Requests That Wwere Claimed But Not Filled Within 7 Days.';
protected $description = 'Recycle Torrent Requests That Were Claimed But Not Filled Within 7 Days.';

/**
* AutoRecycleClaimedTorrentRequests Constructor.
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/FetchMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class FetchMeta extends Command
*
* @var string
*/
protected $description = 'Fetchs Meta Data For New System On Preexxsisting Torrents';
protected $description = 'Fetches Meta Data For New System On Preexisting Torrents';

/**
* Execute the console command.
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/GitUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private function update(): void

$this->backup($paths);

$this->header('Reseting Repository');
$this->header('Resetting Repository');

$this->commands([
'git fetch origin',
Expand Down
8 changes: 4 additions & 4 deletions app/Helpers/BackupEncryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@
class BackupEncryption
{
/**
* Default encryption contants.
* Default encryption constants.
*
* @var int
*/
final public const ENCRYPTION_DEFAULT = ZipArchive::EM_AES_128;

/**
* AES-128 encryption contants.
* AES-128 encryption constants.
*
* @var int
*/
final public const ENCRYPTION_WINZIP_AES_128 = ZipArchive::EM_AES_128;

/**
* AES-192 encryption contants.
* AES-192 encryption constants.
*
* @var int
*/
final public const ENCRYPTION_WINZIP_AES_192 = ZipArchive::EM_AES_192;

/**
* AES-256 encryption contants.
* AES-256 encryption constants.
*
* @var int
*/
Expand Down
4 changes: 2 additions & 2 deletions app/Helpers/Bencode.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static function bencode($d)

if ($isDict) {
$ret = 'd';
// this is required by the specs, and BitTornado actualy chokes on unsorted dictionaries
// this is required by the specs, and BitTornado actually chokes on unsorted dictionaries
ksort($d, SORT_STRING);
}

Expand Down Expand Up @@ -223,7 +223,7 @@ public static function get_meta($t): array
$size = 0;
$count = 0;

// Multifile
// Multi-file
if (isset($t['info']['files']) && \is_array($t['info']['files'])) {
foreach ($t['info']['files'] as $file) {
$count++;
Expand Down
3 changes: 2 additions & 1 deletion app/Helpers/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ function rating_color(null|int|float $number): ?string
if (!\function_exists('language_flag')) {
function language_flag(?string $language): ?string
{
// cspell:words Bokmal, Limburgish, Sinhala,
$flag = match ($language) {
'English', 'English (US)' => 'us',
'English (GB)' => 'gb',
Expand All @@ -145,7 +146,7 @@ function language_flag(?string $language): ?string
'Bosnian', 'Bosnian (BA)' => 'ba',
'Bulgarian', 'Bulgarian (BG)' => 'bg',
'Burmese' => 'mm',
'Chinese', 'Mandarin', 'Mandarin (Hans)', 'Mandarin (Hant)', 'Cantonese', 'Cantonese (Hant)', 'Chinese (Simplied)', 'Chinese (Traditional)', 'Chinese (Simplified)', 'Chinese-yue-Hant', 'Chinese-cmn-Hans', 'Chinese-cmn-Hant' => 'cn',
'Chinese', 'Mandarin', 'Mandarin (Hans)', 'Mandarin (Hant)', 'Cantonese', 'Cantonese (Hant)', /* cspell:disable */ 'Chinese (Simplied)' /* cspell:enable */, 'Chinese (Traditional)', 'Chinese (Simplified)', 'Chinese-yue-Hant', 'Chinese-cmn-Hans', 'Chinese-cmn-Hant' => 'cn',
'Chinese (HK)', 'Chinese-Hant-HK', 'Mandarin (HK)', 'Cantonese (HK)', 'Chinese-cmn-HK' => 'hk',
'Chinese (Taiwan)' => 'tw',
'Croatian', 'Croatian (HR)' => 'hr',
Expand Down
3 changes: 2 additions & 1 deletion app/Helpers/SystemInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class SystemInformation
*/
public function avg(): ?array
{
// cspell:ignore loadavg
if (is_readable('/proc/loadavg')) {
$file = file_get_contents('/proc/loadavg');

Expand Down Expand Up @@ -160,7 +161,7 @@ public function basic(): array
private function getDatabase(): string
{
if (!\in_array(config('database.default'), self::KNOWN_DATABASES, true)) {
return 'Unkown';
return 'Unknown';
}

return DB::select('select version()')[0]->{'version()'};
Expand Down
Loading

0 comments on commit 604b7e1

Please sign in to comment.