CI: Check for typos

This commit is contained in:
Alexander Medvedev
2025-02-12 16:19:26 +01:00
parent 73a0f665ea
commit e2dff9d55a
6 changed files with 29 additions and 4 deletions

21
.github/workflows/typos.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Spelling
permissions:
contents: read
on:
push:
pull_request:
env:
CLICOLOR: 1
jobs:
spelling:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Spell Check Repo
uses: crate-ci/typos@v1.29.5

View File

@@ -469,7 +469,7 @@ impl GlobalProtoNoiseRouter {
// with functions being added later the least dense due to only adding one component to the
// stack based on the AST hash.
//
// This was determined visually and should probably be more programatically tested.
// This was determined visually and should probably be more programmatically tested.
// E.g. everything with a flat cached gets cached on init so we dont care about where it
// lives in memory

View File

@@ -51,7 +51,7 @@ pub fn default_registry() -> Arc<BlockRegistry> {
}
pub async fn drop_loot(server: &Server, world: &Arc<World>, block: &Block, pos: &BlockPos) {
// TODO: Currently only the item block is droped, We should drop the loop table
// TODO: Currently only the item block is dropped, We should drop the loop table
let height = EntityType::ITEM.dimension[1] / 2.0;
let pos = Vector3::new(
f64::from(pos.0.x) + 0.5 + rand::thread_rng().gen_range(-0.25..0.25),

View File

@@ -110,7 +110,7 @@ impl CommandSender<'_> {
pub fn default_dispatcher() -> CommandDispatcher {
let mut dispatcher = CommandDispatcher::default();
// Zerp
// Zero
dispatcher.register(pumpkin::init_command_tree(), PermissionLvl::Zero);
dispatcher.register(help::init_command_tree(), PermissionLvl::Zero);
dispatcher.register(list::init_command_tree(), PermissionLvl::Zero);

View File

@@ -747,7 +747,7 @@ impl Player {
return;
}
// TODO: set as camera entity when specator
// TODO: set as camera entity when spectator
let world = &entity.world.read().await;
let player_victim = world.get_player_by_id(entity_id.0).await;

4
typos.toml Normal file
View File

@@ -0,0 +1,4 @@
[files]
extend-exclude = [
"assets/"
]