Clean up whitespace (#10755)

I saved the `file_types.json` file and got a diff because it had some
trailing whitespace. I ran
[`lineman`](https://github.com/JosephTLyons/lineman) on the codebase.
I've done this before, but this time, I've added in the following
settings to our `.zed` local settings, to make sure every future save
respects our desire to have consistent whitespace formatting.

```json
"remove_trailing_whitespace_on_save": true,
"ensure_final_newline_on_save": true
```

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons 2024-04-23 13:31:21 -04:00 committed by GitHub
parent 85b26e9788
commit f6eaa8b00f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 45 additions and 47 deletions

View file

@ -21,5 +21,7 @@
"formatter": "prettier" "formatter": "prettier"
} }
}, },
"formatter": "auto" "formatter": "auto",
"remove_trailing_whitespace_on_save": true,
"ensure_final_newline_on_save": true
} }

View file

@ -329,7 +329,7 @@
}, },
"tcl": { "tcl": {
"icon": "icons/file_icons/tcl.svg" "icon": "icons/file_icons/tcl.svg"
}, },
"vcs": { "vcs": {
"icon": "icons/file_icons/git.svg" "icon": "icons/file_icons/git.svg"
}, },

View file

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail-open"><path d="M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z"/><path d="m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10"/></svg> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail-open"><path d="M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z"/><path d="m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10"/></svg>

Before

Width:  |  Height:  |  Size: 390 B

After

Width:  |  Height:  |  Size: 391 B

View file

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash-2"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash-2"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>

Before

Width:  |  Height:  |  Size: 409 B

After

Width:  |  Height:  |  Size: 410 B

View file

@ -3,4 +3,3 @@
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.64907 9.32382C8.313 9.13287 8.08213 8.81954 7.94725 8.4078C7.8147 8.00318 7.75317 7.44207 7.75317 6.73677C7.75317 6.03845 7.81141 5.48454 7.9369 5.08716L7.93755 5.08512C8.07231 4.67373 8.3034 4.36258 8.64088 4.17794C8.96806 3.99257 9.41119 3.9104 9.9496 3.9104C10.3406 3.9104 10.6632 3.95585 10.8967 4.06485C11.0079 4.11675 11.1099 4.18844 11.2033 4.27745V2.03027H12.4077V9.4856H11.2033V9.18983C11.0945 9.29074 10.98 9.37096 10.8591 9.42752C10.6327 9.53648 10.3335 9.58252 9.97867 9.58252C9.4339 9.58252 8.98592 9.50355 8.65375 9.3264L8.64907 9.32382ZM11.1139 7.85508C11.1841 7.60311 11.2227 7.23354 11.2227 6.73677C11.2227 6.24602 11.1841 5.88331 11.1141 5.63844C11.0457 5.39902 10.9401 5.25863 10.8149 5.18266L10.8077 5.17826C10.6804 5.09342 10.4713 5.03726 10.1531 5.03726C9.80785 5.03726 9.5719 5.09359 9.42256 5.1832L9.41829 5.18576C9.28002 5.26412 9.16722 5.40602 9.09399 5.64263C9.01876 5.88566 8.97694 6.24668 8.97694 6.73677C8.97694 7.23363 9.01882 7.59774 9.09399 7.8406C9.1673 8.07745 9.28097 8.22477 9.42256 8.30972C9.5719 8.39933 9.80785 8.45566 10.1531 8.45566C10.4721 8.45566 10.683 8.40265 10.8114 8.32216C10.9396 8.23944 11.0456 8.09373 11.1139 7.85508Z" fill="#787D87"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.64907 9.32382C8.313 9.13287 8.08213 8.81954 7.94725 8.4078C7.8147 8.00318 7.75317 7.44207 7.75317 6.73677C7.75317 6.03845 7.81141 5.48454 7.9369 5.08716L7.93755 5.08512C8.07231 4.67373 8.3034 4.36258 8.64088 4.17794C8.96806 3.99257 9.41119 3.9104 9.9496 3.9104C10.3406 3.9104 10.6632 3.95585 10.8967 4.06485C11.0079 4.11675 11.1099 4.18844 11.2033 4.27745V2.03027H12.4077V9.4856H11.2033V9.18983C11.0945 9.29074 10.98 9.37096 10.8591 9.42752C10.6327 9.53648 10.3335 9.58252 9.97867 9.58252C9.4339 9.58252 8.98592 9.50355 8.65375 9.3264L8.64907 9.32382ZM11.1139 7.85508C11.1841 7.60311 11.2227 7.23354 11.2227 6.73677C11.2227 6.24602 11.1841 5.88331 11.1141 5.63844C11.0457 5.39902 10.9401 5.25863 10.8149 5.18266L10.8077 5.17826C10.6804 5.09342 10.4713 5.03726 10.1531 5.03726C9.80785 5.03726 9.5719 5.09359 9.42256 5.1832L9.41829 5.18576C9.28002 5.26412 9.16722 5.40602 9.09399 5.64263C9.01876 5.88566 8.97694 6.24668 8.97694 6.73677C8.97694 7.23363 9.01882 7.59774 9.09399 7.8406C9.1673 8.07745 9.28097 8.22477 9.42256 8.30972C9.5719 8.39933 9.80785 8.45566 10.1531 8.45566C10.4721 8.45566 10.683 8.40265 10.8114 8.32216C10.9396 8.23944 11.0456 8.09373 11.1139 7.85508Z" fill="#787D87"/>
<rect x="1.14087" y="10.7188" width="11.7183" height="1.26565" rx="0.632824" fill="#787D87"/> <rect x="1.14087" y="10.7188" width="11.7183" height="1.26565" rx="0.632824" fill="#787D87"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -2,4 +2,4 @@
First, craft your test data. The examples folder shows a template for building a test-db, and can be ran with `cargo run --example [your-example]`. First, craft your test data. The examples folder shows a template for building a test-db, and can be ran with `cargo run --example [your-example]`.
To actually use and test your queries, import the generated DB file into https://sqliteonline.com/ To actually use and test your queries, import the generated DB file into https://sqliteonline.com/

View file

@ -1,2 +1,2 @@
(variable_assignment (variable_assignment
value: (_) @redact) value: (_) @redact)

View file

@ -106,4 +106,3 @@
(primitive_type) (primitive_type)
(sized_type_specifier) (sized_type_specifier)
] @type ] @type

View file

@ -4,4 +4,4 @@
(preproc_function_def (preproc_function_def
value: (preproc_arg) @content value: (preproc_arg) @content
(#set! "language" "c")) (#set! "language" "c"))

View file

@ -4,4 +4,4 @@
(preproc_function_def (preproc_function_def
value: (preproc_arg) @content value: (preproc_arg) @content
(#set! "language" "c++")) (#set! "language" "c++"))

View file

@ -1,5 +1,5 @@
((comment) @content ((comment) @content
(#set! "language" "jsdoc")) (#set! "language" "jsdoc"))
((regex) @content ((regex) @content
(#set! "language" "regex")) (#set! "language" "regex"))

View file

@ -1,2 +1,2 @@
("[" @open "]" @close) ("[" @open "]" @close)
("{" @open "}" @close) ("{" @open "}" @close)

View file

@ -18,4 +18,4 @@
"}" "}"
"[" "["
"]" "]"
] @punctuation.bracket ] @punctuation.bracket

View file

@ -1 +1 @@
(string) @string (string) @string

View file

@ -1,4 +1,4 @@
(pair value: (number) @redact) (pair value: (number) @redact)
(pair value: (string) @redact) (pair value: (string) @redact)
(array (number) @redact) (array (number) @redact)
(array (string) @redact) (array (string) @redact)

View file

@ -11,4 +11,4 @@
(begin "begin" @open "end" @close) (begin "begin" @open "end" @close)
(module "module" @open "end" @close) (module "module" @open "end" @close)
(_ . "def" @open "end" @close) (_ . "def" @open "end" @close)
(_ . "class" @open "end" @close) (_ . "class" @open "end" @close)

View file

@ -3,4 +3,4 @@
("{" @open "}" @close) ("{" @open "}" @close)
("<" @open ">" @close) ("<" @open ">" @close)
("\"" @open "\"" @close) ("\"" @open "\"" @close)
(closure_parameters "|" @open "|" @close) (closure_parameters "|" @open "|" @close)

View file

@ -4,4 +4,4 @@
(macro_rule (macro_rule
(token_tree) @content (token_tree) @content
(#set! "language" "rust")) (#set! "language" "rust"))

View file

@ -2,4 +2,4 @@
(#set! "language" "jsdoc")) (#set! "language" "jsdoc"))
((regex) @content ((regex) @content
(#set! "language" "regex")) (#set! "language" "regex"))

View file

@ -2,4 +2,4 @@
(#set! "language" "jsdoc")) (#set! "language" "jsdoc"))
((regex) @content ((regex) @content
(#set! "language" "regex")) (#set! "language" "regex"))

View file

@ -20,10 +20,10 @@
[ [
(anchor_name) (anchor_name)
(alias_name) (alias_name)
(tag) (tag)
] @type ] @type
key: (flow_node (plain_scalar (string_scalar) @property)) key: (flow_node (plain_scalar (string_scalar) @property))
[ [
"," ","
@ -46,4 +46,4 @@ key: (flow_node (plain_scalar (string_scalar) @property))
"&" "&"
"---" "---"
"..." "..."
] @punctuation.special ] @punctuation.special

View file

@ -1 +1 @@
(block_mapping_pair key: (flow_node (plain_scalar (string_scalar) @name))) @item (block_mapping_pair key: (flow_node (plain_scalar (string_scalar) @name))) @item

View file

@ -16,4 +16,4 @@ awk -v term_cols="${width:-$(tput cols || echo 80)}" -v term_lines="${height:-1}
if (colnum%term_cols==term_cols) printf "\n"; if (colnum%term_cols==term_cols) printf "\n";
} }
printf "\n"; printf "\n";
}' }'

View file

@ -121,4 +121,4 @@
{"Key":"backspace"} {"Key":"backspace"}
{"Key":"backspace"} {"Key":"backspace"}
{"Key":"backspace"} {"Key":"backspace"}
{"Get":{"state":"The quick browˇn\nfox jumps over\nthe lazy ˇdog.","mode":"Replace"}} {"Get":{"state":"The quick browˇn\nfox jumps over\nthe lazy ˇdog.","mode":"Replace"}}

View file

@ -7,9 +7,9 @@
</asmv3:application> </asmv3:application>
<dependency> <dependency>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity type='win32' <assemblyIdentity type='win32'
name='Microsoft.Windows.Common-Controls' name='Microsoft.Windows.Common-Controls'
version='6.0.0.0' processorArchitecture='*' version='6.0.0.0' processorArchitecture='*'
publicKeyToken='6595b64144ccf1df' /> publicKeyToken='6595b64144ccf1df' />
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

View file

@ -1,2 +1,2 @@
(comment) @comment (comment) @comment
(quoted_attribute_value) @string (quoted_attribute_value) @string

View file

@ -1,3 +1,3 @@
("[" @open "]" @close) ("[" @open "]" @close)
("{" @open "}" @close) ("{" @open "}" @close)
("(" @open ")" @close) ("(" @open ")" @close)

View file

@ -7,4 +7,4 @@
(_ "[" "]" @end) @indent (_ "[" "]" @end) @indent
(_ "{" "}" @end) @indent (_ "{" "}" @end) @indent
(_ "(" ")" @end) @indent (_ "(" ")" @end) @indent

View file

@ -1,3 +1,3 @@
(function_declaration (function_declaration
"function" @context "function" @context
name: (_) @name) @item name: (_) @name) @item

View file

@ -4,4 +4,3 @@
("{" @open "}" @close) ("{" @open "}" @close)
("<" @open ">" @close) ("<" @open ">" @close)
("\"" @open "\"" @close) ("\"" @open "\"" @close)

View file

@ -131,7 +131,7 @@
(extension) (extension)
(item_extension) (item_extension)
(quoted_extension) (quoted_extension)
(quoted_item_extension) (quoted_item_extension)
"%" "%"
] @attribute ] @attribute

View file

@ -3,7 +3,7 @@
(type_binding) (type_binding)
(method_definition) (method_definition)
(external) (external)
(value_specification) (value_specification)
(method_specification) (method_specification)

View file

@ -17,7 +17,7 @@
"module" @context "module" @context
"type" @context "type" @context
name: (_) @name) @item name: (_) @name) @item
(type_definition (type_definition
"type" @context "type" @context
(type_binding name: (_) @name)) @item (type_binding name: (_) @name)) @item
@ -25,7 +25,7 @@
(value_specification (value_specification
"val" @context "val" @context
(value_name) @name) @item (value_name) @name) @item
(class_definition (class_definition
"class" @context "class" @context
(class_binding (class_binding

View file

@ -7,4 +7,4 @@
(list . (symbol) @name) (list . (symbol) @name)
] ]
(#match? @start-symbol "^define") (#match? @start-symbol "^define")
) @item ) @item

View file

@ -7,4 +7,4 @@
(list . (symbol) @name) (list . (symbol) @name)
] ]
(#match? @start-symbol "^define") (#match? @start-symbol "^define")
) @item ) @item

View file

@ -12,4 +12,4 @@
(pair (pair
. .
(_) @name) @item (_) @name) @item

View file

@ -1 +1 @@
(pair (bare_key) "=" (_) @redact) (pair (bare_key) "=" (_) @redact)

View file

@ -8,14 +8,14 @@
{{#each licenses}} {{#each licenses}}
#### {{name}} #### {{name}}
##### Used by: ##### Used by:
{{#each used_by}} {{#each used_by}}
* [{{crate.name}} {{crate.version}}]({{#if crate.repository}} {{crate.repository}} {{else}} https://crates.io/crates/{{crate.name}} {{/if}}) * [{{crate.name}} {{crate.version}}]({{#if crate.repository}} {{crate.repository}} {{else}} https://crates.io/crates/{{crate.name}} {{/if}})
{{/each}} {{/each}}
{{text}} {{text}}
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
{{/each}} {{/each}}