Skip to content

Commit

Permalink
Spell checker not checking some file types
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoiq committed Feb 18, 2023
1 parent cd35c6f commit adc4e87
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ releasing dozens of alpha versions. so **do not expect any backwards compatibili
designing a huge system on a first try is impossible, lots of concepts must settle and click into its place
and therefore lots of changes are still coming

when using Composer, always lock your dependency on this package to an exact version. e.g. `"sqlftw/swlftw": "0.1.4"`
when using Composer, always lock your dependency on this package to an exact version. e.g. `sqlftw/sqlftw:0.1.4`


Author:
Expand Down
21 changes: 19 additions & 2 deletions build/spell-checker/custom.dic
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

# technical
acl
amphp
ansi
apigen
args
armscii
ascii
ast
async
aws
baz
Expand Down Expand Up @@ -36,6 +40,7 @@ hexadec
hwm
icu
ietf
init
inv
iso
jis
Expand All @@ -48,6 +53,7 @@ mariadb
mixin
mysql
nextras
nowdoc
nul
num
oci
Expand Down Expand Up @@ -88,6 +94,7 @@ xyz
analysed
analysing
associativity
autoloader
backticks
caseless
casted
Expand Down Expand Up @@ -155,29 +162,34 @@ matchers
ok
ordinality
outliers
parallelized
prefetch
preload
preorder
preparable
pushdown
refactor
reindex
reorganise
renderer
reorganise
rewriter
serializables
serializer
skippable
startup
submatch
subqueries
timestamps
tokenizes
transactional
unbracketed
unencrypted
unescape
unescaped
unlogged
unparenthesized
unregister
unterminated
updatable
uppercased
validator
Expand Down Expand Up @@ -349,13 +361,18 @@ xmlroot
xmlserialize
zstd

# names
Müller

# shorts
chan1

# vars
INNODB_FIL_MAKE_PAGE_DIRTY_DEBUG
innodb_fil_make_page_dirty_debug
ndb_autoincrement_prefetch_sz
GEN_CLUST_INDEX
MECAB_RC_FILE
SHOW_GIPK_IN_CREATE_TABLE_AND_INFORMATION_SCHEMA
THREAD_POOL_PRIO_KICKUP_TIMER
BINLOGGING_IMPOSSIBLE_MODE
KEYRING_AWS_CMK_ID
Expand Down
9 changes: 8 additions & 1 deletion build/spell-checker/spell-checker.neon
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ dictionariesByFileName:
*Collation.php: skip

dictionariesByFileExtension:
neon: en custom
php: en php html iso custom mysql57
phpt: en php html iso custom mysql57
neon: en custom
json: en custom
md: en php custom

dictionaryDirectories:
- build/spell-checker
Expand All @@ -21,3 +24,7 @@ checkLocalIgnores: true

dictionaryFilesToCheck:
- custom.dic

localIgnores:
*/composer.json: ag csf da ps sc tc tm tms
*/spell-checker.neon: ag csf da ps sc tc tm tms # WTF? cannot skip
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Assert::parseSerialize("ALTER TABLE tbl1 COLLATE ascii_general_ci");
Assert::parseSerialize("ALTER TABLE tbl1 COLLATE 'ascii_general_ci'", "ALTER TABLE tbl1 COLLATE ascii_general_ci"); // '...' -> ...

// COMMENT
Assert::parseSerialize("ALTER TABLE tbl1 COMMENT 'ciom1'");
Assert::parseSerialize("ALTER TABLE tbl1 COMMENT 'com1'");

// COMPRESSION
Assert::parseSerialize("ALTER TABLE tbl1 COMPRESSION 'ZLIB'");
Expand Down
1 change: 1 addition & 0 deletions tests/Parser/Issues.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// phpcs:disable Squiz.PHP.Heredoc.NotAllowed
// phpcs:disable SlevomatCodingStandard.PHP.RequireNowdoc.RequiredNowdoc
// spell-check-ignore: lng olu

namespace SqlFtw\Parser;

Expand Down
2 changes: 2 additions & 0 deletions tests/Resolver/Functions/FunctionsString.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php declare(strict_types = 1);

// spell-check-ignore: abc abcabcabc abcd abcde bc bcde cd dcba ÁŠČŘ á áš áščř áščřáščř č čř ř řčšá š ščř

namespace SqlFtw\Parser;

use SqlFtw\Platform\Platform;
Expand Down

0 comments on commit adc4e87

Please sign in to comment.