Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Visual Studio Spell Check config settings. And fix reported spellings problems #8940

Merged
merged 2 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

# Visual Studio Spell checker configs (https://learn.microsoft.com/en-us/visualstudio/ide/text-spell-checker?view=vs-2022)
[*]
spelling_languages = en-us
spelling_checkable_types = strings,identifiers,comments
spelling_error_severity = warning
spelling_exclusion_path = ./SpellingExclusions.dic

# Generated code
[*{_AssemblyInfo.cs,.notsupported.cs,AsmOffsets.cs}]
generated_code = true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ We welcome code contributions through pull requests, issues tagged as **[`help-w

### Branch and Release

The `main` branch is the default branch for pull requests and most other development activities. We occationally use `feature/*` branches for epic feature development.
The `main` branch is the default branch for pull requests and most other development activities. We occasionally use `feature/*` branches for epic feature development.

Releases are based on a stable `main` branch commit using [GitHub Releases](https://github.com/dotnet/docfx/releases). Use of [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/) is encouraged.

Expand Down
350 changes: 350 additions & 0 deletions SpellingExclusions.dic
Original file line number Diff line number Diff line change
@@ -0,0 +1,350 @@
abbr
abc
abc'
abcdef
accum
actionscript
activerecord
aded
aggregatebykey
allowfullscreen
Alsos
apidoc
appsettings
arbo
arduino
ascx
asdjklf
aspx
assetid
attendeeid
attrs
autolink
azurecli
azureml
badattribute
batchfile
bcd'
bcdc
bcrypt'
bdir
bfile
blib
bodyparam
bootsnap'
Bproj
Builtin
builtins
byebug'
carolz
ccbb
cdir
cellx
cfile
changefreq
choco
Chromeless
Cillegal
classlib
cntk
codesnippet
colspan
Conceptuals
connectionsucceeded
contextobject
commonmark
Cooooooool
corob
cref
crefs
Crlf
csdl
csharp
cshtml
csproj
csrf
csyaml
csyml
Ctypescript
cuda
datalist
dedent
Dedent
defaultfilterconfig
definitionlists
dependants
describedby
Deserializer
Deserializers
dest
Devlangs
devsandbox
dict'
displaytext
divb
dlang
docascode
docfx
Docset
docset
domaininfo
Donotinsertspaceininlinehtmltags
Dryrun
edmx
eedcbf
embeddedvideo
english
Expando
Facade
facade
fazure
fbfc
fenxu
filepath
Fillegal
filterconfig
fnptr
fsharp
ftoc
fullname
fvirtual
fwindows
gcnew
getted
ghogen
github
githubusercontent
gitignore
Gitter
globals
globstar
golang
gradle
haskell
herohua
HHmmssffff
Hmlr
Hmmssffff
Hsts
Htmls
httparty
httparty'
hypertrm
iaggregate
icat
icoll
iframe
iframes
Impl
Imple
Informations
Infos
inlines
innerothers
innersinner
innerunique
intellisensed
invalidtmpl
Ipsom
ipynb
istreamable
javascript
jbuilder'
Jint
jruby
json
json'
langs
languagekeyword
Langwords
lastmod
lgtm
linenumber
linktype
looooooooooooooooooooooooooooooooooooog
loopref
Manip
marco
Markdig
matlab
Memberwise
microsoft
mingw
moduleunit
Mref
msbuild
msdn
mseng
msft
mslearn
mswin
multinamespace
mycontainer
myorganization
myproduct
namedarguments
namespaced
nasm
navpanel
navpanel'
netstandard
nocheck
nocookie
noindex
noindex'
Noloc
noscript
notexist
Notset
nullptr
oarray
oauth
objc
objectivec
odata
odict
omniauth
opath
openlocfilehash
ovms
perl
Petstore
pltfrm
popularised
Postbuild
postbuild
Postbuilding
powershell
preproceesor
Properties
pubid
Quickstarts
rawmodel
redis'
refa
refb
refc
Refmap
restapi
restruction
Restructions
ronpet
rowgroup
rowgroups
rowspan
rpetrusha
samp
sarray
scala
Schlinkert
sdict
sdp
sdps
sdp's
shrinked
smalltalk
snippetname
snippetprogram
soucefile
sourcefile
sourcegitcommit
sourcestartlinenumber
speakerevals
speakerevalscurrent
splitted
sqlite
Stackalloc
startswith
Stdcall
Stdout
stdout
Streamable
streamprocessing
stringified
stringify
stylecop
Subber
submittext
sysid
tabgroup
tabindex
tablist
tabpanel
Tagname
tagname
tasklists
tbody
tcontext
Technet
testmerger
testsnippet
testtoken
textarea
tfoot
thead
Thiscall
tkey
tmpl
tocmd
Tocs
tocyaml
tokenblock
toplevel
toppest
tostring
translationtype
Transpile
Turbolinks
Turbolinks'
tvalue
tzinfo
udbff'
Uids
undeterministic
Unescape
ungrouper
Uref
uris
urls
Urls
urlset
Vararg
vbhtml
vbnet
vbproj
vbscript
Veyor
videoplayer
viewmodel
visualstudio
Vsinstalldir
webdriver'
webdrivers'
webpacker'
wildchar
winword
withgaps
wkhtmltopdf
wordpad
wpickett
wsdl
xaml'
xmsexamples
Xref
xref
XRefmap
xrefmap
xrefmaps
Xrefs
xrefspec
Yaml
yamlheader
youtube
yyyy
zoneinfo
ãâáà
êé
í
õôó
Типы
шрифтов
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ public override IEnumerable<FileModel> Prebuild(ImmutableList<FileModel> models,
{
collection.AddRange(result.Item1);

var tocRestuctions = result.Item2;
var duplicateKeys = tocRestuctions.Where(t => treeItemRestructions.Any(i => i.Key == t.Key)).Select(i => i.Key);
var tocRestructions = result.Item2;
var duplicateKeys = tocRestructions.Where(t => treeItemRestructions.Any(i => i.Key == t.Key)).Select(i => i.Key);
if (duplicateKeys.Any())
{
Logger.LogWarning($"Model with the key {string.Join(",", duplicateKeys)} already exists. '{model.OriginalFileAndType?.FullPath ?? model.FileAndType.FullPath}' is ignored.");
}
else
{
treeItemRestructions.AddRange(tocRestuctions);
treeItemRestructions.AddRange(tocRestructions);
}
}
}
Expand Down
Loading