Enable spell check for all files and fix (#2881)

fix #2776
This commit is contained in:
Timothee Guerin 2024-02-08 16:54:23 -08:00 коммит произвёл GitHub
Родитель 7452fe9a57
Коммит a1eb851cc3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
16 изменённых файлов: 39 добавлений и 17 удалений

Просмотреть файл

@ -0,0 +1,6 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: internal
packages:
- "@typespec/http"
---

1
.vscode/settings.json поставляемый
Просмотреть файл

@ -19,7 +19,6 @@
"**/.git": true,
"**/.DS_Store": true
},
"[javascript][javascriptreact][typescript][typescriptreact]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": false, // work around https://github.com/simonhaenisch/prettier-plugin-organize-imports/issues/53

Просмотреть файл

@ -15,10 +15,12 @@ words:
- cadl
- cadleditor
- cadleng
- cadlplayground
- clsx
- cobertura
- codeql
- Contoso
- CORGE
- createsorreplacesresource
- createsorupdatesresource
- CRUDL
@ -29,13 +31,16 @@ words:
- ecmarkup
- esbuild
- fluentui
- genproto
- globby
- Infima
- inmemory
- instanceid
- interner
- intrinsics
- jsyaml
- keyer
- lifecyle
- lzutf
- mocharc
- msbuild
@ -43,6 +48,7 @@ words:
- multis
- munge
- mylib
- nanos
- noformat
- noopener
- noreferrer
@ -75,9 +81,11 @@ words:
- TRYIT
- TSES
- tspd
- tspwebsitepr
- tsvs
- typespecvs
- Uhoh
- uitestresults
- unassignable
- Uncapitalize
- uninstantiated
@ -101,6 +109,12 @@ ignorePaths:
- "**/coverage/**"
- packages/website/build/**
- common/scripts/*
- "**/ThirdPartyNotices.txt"
- packages/compiler/test/formatter/scenarios/**
- pnpm-lock.yaml
- "**/*.mp4"
- packages/samples/test/output/**
useGitignore: true
enableFiletypes:
- cadl
patterns:

Просмотреть файл

@ -9,7 +9,7 @@
"check-version-mismatch": "syncpack list-mismatches",
"change": "chronus",
"clean": "pnpm -r run clean",
"cspell": "cspell --no-progress \"**/*.{md,ts,tsx}\" ",
"cspell": "cspell --no-progress .",
"dogfood": "pnpm install && pnpm build && pnpm -r dogfood",
"fix-version-mismatch": "syncpack fix-mismatches",
"format": "pnpm run prettier --write",

Просмотреть файл

@ -120,7 +120,7 @@ enum OAuth2FlowType {
@doc("authorization code flow")
authorizationCode,
@doc("implcit flow")
@doc("implicit flow")
implicit,
@doc("password flow")

Просмотреть файл

@ -29,8 +29,8 @@ namespace BytesMethod {
@route("binaryFile")
@post
op genericBinaryFile(
...BytesBody<"application/octect-stream">,
): BytesBody<"application/octect-stream">;
...BytesBody<"application/octet-stream">,
): BytesBody<"application/octet-stream">;
@route("imagePng")
@post

Просмотреть файл

@ -3,7 +3,7 @@ import "@typespec/rest";
using TypeSpec.Http;
@service({
title: "Documentaion sample",
title: "Documentation sample",
})
namespace DocSample;

Просмотреть файл

@ -1,5 +1,5 @@
/**
* This example showcase propviding a different name over the wire.
* This example showcase providing a different name over the wire.
* In this example the `WithEncodedNames` model has a `notBefore` property that should get serialized as `nbf` when serialized as json.
*/
@service({

Просмотреть файл

@ -1,4 +1,4 @@
alias myconst = "foobar";
alias myConst = "foobar";
model Person {
simple: "Simple ${123} end";
@ -8,7 +8,7 @@ model Person {
${true}
line
""";
ref: "Ref this alias ${myconst} end";
ref: "Ref this alias ${myConst} end";
template: Template<"custom">;
}

Просмотреть файл

@ -21,10 +21,10 @@ model Basic {
@doc("Name property with a very long description that does not fit on a single line and a line break.")
name: string;
color: CMYKColors;
color: Colors;
}
enum CMYKColors {
enum Colors {
cyan,
Magenta,
YELLOW,

Просмотреть файл

@ -1,5 +1,6 @@
import "@typespec/rest";
import "@typespec/openapi";
/* cspell:disable */
using TypeSpec.Http;

Просмотреть файл

@ -29,14 +29,14 @@ paths:
'200':
description: The request has succeeded.
content:
application/octect-stream:
application/octet-stream:
schema:
type: string
format: binary
requestBody:
required: true
content:
application/octect-stream:
application/octet-stream:
schema:
type: string
format: binary

Просмотреть файл

@ -1,6 +1,6 @@
openapi: 3.0.0
info:
title: Documentaion sample
title: Documentation sample
version: 0000-00-00
tags: []
paths:

Просмотреть файл

@ -3,7 +3,7 @@ info:
title: Sample showcasing encoded names
version: 0000-00-00
description: |-
This example showcase propviding a different name over the wire.
This example showcase providing a different name over the wire.
In this example the `WithEncodedNames` model has a `notBefore` property that should get serialized as `nbf` when serialized as json.
tags: []
paths:

Просмотреть файл

@ -512,7 +512,7 @@ components:
type: string
description: Name property with a very long description that does not fit on a single line and a line break.
color:
$ref: '#/components/schemas/CMYKColors'
$ref: '#/components/schemas/Colors'
BooleanWrapper:
type: object
required:
@ -531,7 +531,7 @@ components:
field:
type: string
format: byte
CMYKColors:
Colors:
type: string
enum:
- cyan

Просмотреть файл

@ -199,6 +199,7 @@
}
.header-github-link:before {
/* cspell:disable-next-line */
background: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
no-repeat;
content: "";
@ -208,6 +209,7 @@
}
[data-theme="dark"] .header-github-link:before {
/* cspell:disable-next-line */
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
no-repeat;
}