CI: Check for typos
This commit is contained in:
parent
73a0f665ea
commit
e2dff9d55a
21
.github/workflows/typos.yml
vendored
Normal file
21
.github/workflows/typos.yml
vendored
Normal 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
|
||||||
@ -469,7 +469,7 @@ impl GlobalProtoNoiseRouter {
|
|||||||
// with functions being added later the least dense due to only adding one component to the
|
// with functions being added later the least dense due to only adding one component to the
|
||||||
// stack based on the AST hash.
|
// 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
|
// E.g. everything with a flat cached gets cached on init so we dont care about where it
|
||||||
// lives in memory
|
// lives in memory
|
||||||
|
|
||||||
|
|||||||
@ -51,7 +51,7 @@ pub fn default_registry() -> Arc<BlockRegistry> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn drop_loot(server: &Server, world: &Arc<World>, block: &Block, pos: &BlockPos) {
|
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 height = EntityType::ITEM.dimension[1] / 2.0;
|
||||||
let pos = Vector3::new(
|
let pos = Vector3::new(
|
||||||
f64::from(pos.0.x) + 0.5 + rand::thread_rng().gen_range(-0.25..0.25),
|
f64::from(pos.0.x) + 0.5 + rand::thread_rng().gen_range(-0.25..0.25),
|
||||||
|
|||||||
@ -110,7 +110,7 @@ impl CommandSender<'_> {
|
|||||||
pub fn default_dispatcher() -> CommandDispatcher {
|
pub fn default_dispatcher() -> CommandDispatcher {
|
||||||
let mut dispatcher = CommandDispatcher::default();
|
let mut dispatcher = CommandDispatcher::default();
|
||||||
|
|
||||||
// Zerp
|
// Zero
|
||||||
dispatcher.register(pumpkin::init_command_tree(), PermissionLvl::Zero);
|
dispatcher.register(pumpkin::init_command_tree(), PermissionLvl::Zero);
|
||||||
dispatcher.register(help::init_command_tree(), PermissionLvl::Zero);
|
dispatcher.register(help::init_command_tree(), PermissionLvl::Zero);
|
||||||
dispatcher.register(list::init_command_tree(), PermissionLvl::Zero);
|
dispatcher.register(list::init_command_tree(), PermissionLvl::Zero);
|
||||||
|
|||||||
@ -747,7 +747,7 @@ impl Player {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: set as camera entity when specator
|
// TODO: set as camera entity when spectator
|
||||||
|
|
||||||
let world = &entity.world.read().await;
|
let world = &entity.world.read().await;
|
||||||
let player_victim = world.get_player_by_id(entity_id.0).await;
|
let player_victim = world.get_player_by_id(entity_id.0).await;
|
||||||
|
|||||||
4
typos.toml
Normal file
4
typos.toml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[files]
|
||||||
|
extend-exclude = [
|
||||||
|
"assets/"
|
||||||
|
]
|
||||||
Loading…
Reference in New Issue
Block a user