Skip to content
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
3 changes: 3 additions & 0 deletions .github/workflows/ci-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ jobs:

- name: Run ameba
run: bin/ameba

- name: Check for typos
uses: crate-ci/typos@v1
24 changes: 24 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[default]
extend-ignore-re = [
# numeric literals
'0x[0-9a-fA-F_\.\+]+([fiu](8|16|32|64|128))?',
'\\u\{[0-9a-fA-F]+\}',
# words including a number are likely some kind of identifier
"[A-z]+[0-9]+",
]

[default.extend-words]
iif = "iif"
nd = "nd"

[files]
extend-exclude = [
# git and dependencies
".git/**",
"lib/**",
# individual files to exclude
"src/assets/runtime.js",
"src/assets/runtime_test.js",
"core/source/Time/Languages/*.mint",
"!core/source/Time/Languages/English.mint",
]
2 changes: 1 addition & 1 deletion core/tests/tests/SearchParams.mint
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ suite "SearchParams.get" {
|> SearchParams.get("a")) == Maybe.just("b")
}

test "returns nothig if key does not exists" {
test "returns nothing if key does not exists" {
("a=b&c=d"
|> SearchParams.fromString()
|> SearchParams.get("x")) == Maybe.nothing()
Expand Down
2 changes: 1 addition & 1 deletion core/tests/tests/Set.mint
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ suite "Set.has" {
|> Set.has(Maybe.just("value"))) == true
}

test "it returns false if the itme does not exists in the set" {
test "it returns false if the item does not exists in the set" {
(Set.empty()
|> Set.has("x")) == false
}
Expand Down
12 changes: 6 additions & 6 deletions runtime/tests/equality.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ describe("FormData", () => {
expect(compare(a, null)).toBe(false);
});

test("empty form datas are equal", () => {
test("empty form data objects are equal", () => {
expect(compare(new FormData(), new FormData())).toBe(true);
});

test("same data form datas are equal", () => {
test("same data form data objects are equal", () => {
const a = new FormData();
a.append("a", "a");

Expand All @@ -241,7 +241,7 @@ describe("FormData", () => {
expect(compare(a, b)).toBe(true);
});

test("different datas are not equal", () => {
test("different data objects are not equal", () => {
const a = new FormData();
a.append("a", "a");

Expand All @@ -251,7 +251,7 @@ describe("FormData", () => {
expect(compare(a, b)).toBe(false);
});

test("different datas are not equal", () => {
test("different data objects are not equal", () => {
const a = new FormData();
a.append("a", "b");

Expand All @@ -261,7 +261,7 @@ describe("FormData", () => {
expect(compare(a, b)).toBe(false);
});

test("same multiple data form datas are equal", () => {
test("same multiple data form data objects are equal", () => {
const a = new FormData();
a.append("a", "a");
a.append("a", "b");
Expand All @@ -273,7 +273,7 @@ describe("FormData", () => {
expect(compare(a, b)).toBe(true);
});

test("same multiple data form datas with different order are equal", () => {
test("same multiple data form data objects with different order are equal", () => {
const a = new FormData();
a.append("a", "b");
a.append("x", "y");
Expand Down
2 changes: 1 addition & 1 deletion src/installer.cr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Mint
@dependencies =
{} of Package => Hash(String, Constraint)

# This holds the elimiated packages, which package elminiated it
# This holds the eliminated packages, which package elminiated it
# and with which constraint
@eliminated =
[] of Tuple(Package, Package, Constraint, String)
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/html_attribute.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Mint
class Parser
def html_attribute(with_dashes : Bool = true) : Ast::HtmlAttribute?
parse do |start_position|
# Dash (-) is maily for data attributes (data-value), colon (`:`) is
# Dash (-) is mainly for data attributes (data-value), colon (`:`) is
# for namespaces (xlink:actuate) and we only parse them for HTML
# attributes not component attributes (`with_dashes`).
name = variable track: false, extra_chars: with_dashes ? ['-', ':'] : [] of Char
Expand Down
2 changes: 1 addition & 1 deletion src/references_tracker.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Mint
# bundles to construct. To do that we track back each node to it's root
# node(s) through the links.
#
# Asnyc components and deferred code got their on bundles
# Async components and deferred code got their on bundles
# and any other code which is referenced from multiple sources will
# get their own bundle.
class ReferencesTracker
Expand Down
2 changes: 1 addition & 1 deletion src/type_checkers/decode.cr
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module Mint
if definition = ast.type_definitions.find(&.name.value.==(type.name))
case definition.fields
in Array(Ast::TypeDefinitionField)
unreachable! "Tried to check if type #{type.to_mint} is decodeable!"
unreachable! "Tried to check if type #{type.to_mint} is decodable!"
in Array(Ast::TypeVariant)
definition_type =
resolve(definition)
Expand Down
Loading