Skip to content

Commit a6b5f80

Browse files
⬆️ Upgrade typos and its configuration (bevyengine#16712)
# Objective Fixes bevyengine#16610, related to bevyengine#16702 ## Solution Upgrade typos and its configuration ## Testing - Did you test these changes? If so, how? No - Are there any parts that need more testing? No - How can other people (reviewers) test your changes? Is there anything specific they need to know? No - If relevant, what platforms did you test these changes on, and are there any important ones you can't test? Not applicable
1 parent 4aed2ca commit a6b5f80

File tree

7 files changed

+22
-28
lines changed

7 files changed

+22
-28
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jobs:
242242
steps:
243243
- uses: actions/checkout@v4
244244
- name: Check for typos
245-
uses: crate-ci/typos@v1.27.3
245+
uses: crate-ci/typos@v1.28.2
246246
- name: Typos info
247247
if: failure()
248248
run: |

crates/bevy_math/src/bounding/bounded2d/primitive_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ impl Bounded2d for Capsule2d {
414414
fn aabb_2d(&self, isometry: impl Into<Isometry2d>) -> Aabb2d {
415415
let isometry = isometry.into();
416416

417-
// Get the line segment between the hemicircles of the rotated capsule
417+
// Get the line segment between the semicircles of the rotated capsule
418418
let segment = Segment2d {
419419
// Multiplying a normalized vector (Vec2::Y) with a rotation returns a normalized vector.
420420
direction: isometry.rotation * Dir2::Y,

crates/bevy_math/src/primitives/dim2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,14 +1909,14 @@ impl Measured2d for RegularPolygon {
19091909
pub struct Capsule2d {
19101910
/// The radius of the capsule
19111911
pub radius: f32,
1912-
/// Half the height of the capsule, excluding the hemicircles
1912+
/// Half the height of the capsule, excluding the semicircles
19131913
pub half_length: f32,
19141914
}
19151915
impl Primitive2d for Capsule2d {}
19161916

19171917
impl Default for Capsule2d {
19181918
/// Returns the default [`Capsule2d`] with a radius of `0.5` and a half-height of `0.5`,
1919-
/// excluding the hemicircles.
1919+
/// excluding the semicircles.
19201920
fn default() -> Self {
19211921
Self {
19221922
radius: 0.5,

crates/bevy_mesh/src/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ where
3737
#[derive(Debug, Error)]
3838
pub enum MeshWindingInvertError {
3939
/// This error occurs when you try to invert the winding for a mesh with [`PrimitiveTopology::PointList`](super::PrimitiveTopology::PointList).
40-
#[error("Mesh winding invertation does not work for primitive topology `PointList`")]
40+
#[error("Mesh winding inversion does not work for primitive topology `PointList`")]
4141
WrongTopology,
4242

4343
/// This error occurs when you try to invert the winding for a mesh with

crates/bevy_mesh/src/primitives/dim2.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ impl MeshBuilder for Capsule2dMeshBuilder {
938938
let resolution = self.resolution;
939939
let vertex_count = 2 * resolution;
940940

941-
// Six extra indices for the two triangles between the hemicircles
941+
// Six extra indices for the two triangles between the semicircles
942942
let mut indices = Vec::with_capacity((resolution as usize - 2) * 2 * 3 + 6);
943943
let mut positions = Vec::with_capacity(vertex_count as usize);
944944
let normals = vec![[0.0, 0.0, 1.0]; vertex_count as usize];
@@ -956,7 +956,7 @@ impl MeshBuilder for Capsule2dMeshBuilder {
956956
};
957957

958958
// How much the hemicircle radius is of the total half-height of the capsule.
959-
// This is used to prevent the UVs from stretching between the hemicircles.
959+
// This is used to prevent the UVs from stretching between the semicircles.
960960
let radius_frac = self.capsule.radius / (self.capsule.half_length + self.capsule.radius);
961961

962962
// Create top semicircle
@@ -975,7 +975,7 @@ impl MeshBuilder for Capsule2dMeshBuilder {
975975
indices.extend_from_slice(&[0, i, i + 1]);
976976
}
977977

978-
// Add indices for top left triangle of the part between the hemicircles
978+
// Add indices for top left triangle of the part between the semicircles
979979
indices.extend_from_slice(&[0, resolution - 1, resolution]);
980980

981981
// Create bottom semicircle
@@ -994,7 +994,7 @@ impl MeshBuilder for Capsule2dMeshBuilder {
994994
indices.extend_from_slice(&[resolution, resolution + i, resolution + i + 1]);
995995
}
996996

997-
// Add indices for bottom right triangle of the part between the hemicircles
997+
// Add indices for bottom right triangle of the part between the semicircles
998998
indices.extend_from_slice(&[resolution, vertex_count - 1, 0]);
999999

10001000
Mesh::new(

crates/bevy_ui/src/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl ChildBufferCache {
3535

3636
/// Generates the render stack for UI nodes.
3737
///
38-
/// Create a list of root nodes from unparented entities and entities with a `GlobalZIndex` component.
38+
/// Create a list of root nodes from parentless entities and entities with a `GlobalZIndex` component.
3939
/// Then build the `UiStack` from a walk of the existing layout trees starting from each root node,
4040
/// filtering branches by `Without<GlobalZIndex>`so that we don't revisit nodes.
4141
#[allow(clippy::too_many_arguments)]

typos.toml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,26 @@ extend-exclude = [
77
]
88
ignore-hidden = false
99

10-
# Corrections take the form of a key/value pair. The key is the incorrect word
11-
# and the value is the correct word. If the key and value are the same, the
12-
# word is treated as always correct. If the value is an empty string, the word
13-
# is treated as always incorrect.
14-
15-
# Match Whole Word - Case Sensitive
16-
[default.extend-identifiers]
17-
iy = "iy" # Variable name used in bevy_gizmos. Probably stands for "y-axis index", as it's being used in loops.
18-
ser = "ser" # ron::ser - Serializer
19-
SME = "SME" # Subject Matter Expert
20-
Sur = "Sur" # macOS Big Sur - South
21-
Masia = "Masia" # The surname of one of the authors of SMAA
22-
Ba = "Ba" # Bitangent for Anisotropy
23-
ba = "ba" # Part of an accessor in WGSL - color.ba
24-
2510
# Match Inside a Word - Case Insensitive
2611
[default.extend-words]
2712
LOD = "LOD" # Level of detail
2813
TOI = "TOI" # Time of impact
2914

3015
[default]
3116
locale = "en-us"
17+
# Ignored typos regexes
3218
extend-ignore-identifiers-re = [
33-
"NDK", # NDK - Native Development Kit
34-
"inventario", # Inventory in Portuguese
35-
"PNG", # PNG - Portable Network Graphics file format
19+
"Ba", # Bitangent for Anisotropy
20+
"ba", # Part of an accessor in WGSL - color.ba
21+
"ser", # ron::ser - Serializer
22+
"SME", # Subject Matter Expert
23+
"Sur", # macOS Big Sur - South
24+
"NDK", # NDK - Native Development Kit
25+
"PNG", # PNG - Portable Network Graphics file format
26+
"Masia", # The surname of one of the authors of SMAA
27+
"metalness", # Rendering term (metallicity)
28+
"inventario", # Inventory in Portuguese
29+
"[Rr]eparametrize", # Mathematical term in curve context (reparameterize)
3630
# Used in bevy_mikktspace
3731
"iFO",
3832
"vOt",

0 commit comments

Comments
 (0)