Skip to content

Commit 8d8a273

Browse files
committed
chore: lint
1 parent c855e22 commit 8d8a273

12 files changed

Lines changed: 232 additions & 819 deletions

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
root = true
22

33
[*]
4+
charset = utf-8
45
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
58

69
# IDE0130: Namespace does not match folder structure
710
dotnet_diagnostic.IDE0130.severity = silent
@@ -12,3 +15,11 @@ dotnet_diagnostic.IDE0251.severity = silent
1215
# Enable XML documentation warnings only for source code
1316
[src/**/*.cs]
1417
dotnet_diagnostic.CS1591.severity = warning
18+
19+
[*.cs]
20+
indent_style = space
21+
indent_size = 4
22+
dotnet_sort_system_directives_first = true
23+
csharp_style_var_for_built_in_types = true
24+
csharp_style_var_when_type_is_apparent = true
25+
dotnet_diagnostic.IDE0005.severity = error

.gitignore

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,46 @@
1-
bin/
2-
obj/
1+
*.swp
2+
*.*~
3+
project.lock.json
4+
.DS_Store
5+
*.pyc
6+
7+
# Visual Studio Code
8+
.vscode
9+
10+
# User-specific files
11+
*.suo
12+
*.user
13+
*.userosscache
14+
*.sln.docstates
15+
16+
# Build results
17+
[Dd]ebug/
18+
[Dd]ebugPublic/
19+
[Rr]elease/
20+
[Rr]eleases/
21+
x64/
22+
x86/
23+
build/
24+
bld/
25+
[Bb]in/
26+
[Oo]bj/
27+
msbuild.log
28+
msbuild.err
29+
msbuild.wrn
30+
31+
# Visual Studio 2015
332
.vs/
4-
TestResults/
5-
.codex
6-
.worktrees/
7-
*.lscache
833

934
# Local build, release, and CI artifact output
35+
TestResults/
1036
artifacts/
11-
.vs/
12-
.vscode/*
37+
BenchmarkDotNet.Artifacts/
38+
*.lscache
39+
40+
# Prettier settings for VS Code
1341
!.vscode/settings.json
14-
!.vscode/tasks.json
15-
!.vscode/launch.json
1642
!.vscode/extensions.json
17-
BenchmarkDotNet.Artifacts/
18-
docs/feature-work/prototype/
43+
44+
# AI
45+
.codex
46+
*/superpowers/*

.vscode/settings.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"csharp.debug.sourceFileMap": {
3-
"/_": "${workspaceFolder}"
4-
},
52
"editor.defaultFormatter": "esbenp.prettier-vscode",
63
"editor.formatOnSave": true,
74
"[markdown]": {
@@ -11,4 +8,4 @@
118
"[csharp]": {
129
"editor.defaultFormatter": "ms-dotnettools.csharp"
1310
}
14-
}
11+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ identity remains host-owned through `IVoxelOccupant.GlobalId`.
200200

201201
| Concept | Role |
202202
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
203-
| `GridWorld` | Owns adaptive top-level lookup, active grids, lifecycle, and events for one isolated world. |
203+
| `GridWorld` | Owns adaptive top-level lookup, active grids, lifecycle, and events for one isolated world. |
204204
| `VoxelGrid` | Owns one grid's snapped bounds, topology metrics, physical voxel storage, scan cells, neighbor relationships, obstacle summary state, and versioning. |
205205
| `Voxel` | Represents one snapped cell with obstacle, occupant, partition, boundary, and neighbor query state. |
206206
| `ScanCell` | Groups voxels into query buckets so radius scans can skip empty regions. |

docs/MIGRATION.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ across pooled reuse.
99

1010
### FixedMathSharp Geometry Namespace
1111

12-
FixedMathSharp bounds and geometry primitives moved from
13-
`FixedMathSharp.Bounds` to `FixedMathSharp.Geometry`. Type names are unchanged;
14-
update the namespace import:
12+
FixedMathSharp bounds and geometry primitives moved from `FixedMathSharp.Bounds`
13+
to `FixedMathSharp.Geometry`. Type names are unchanged; update the namespace
14+
import:
1515

1616
```csharp
1717
using FixedMathSharp.Geometry;
@@ -29,8 +29,8 @@ Remove direct use of these v8 implementation APIs:
2929

3030
Use `TryGetGrid(...)`, `TryGetGridAndVoxel(...)`, `GridTracer`, neighbor APIs,
3131
or `FindOverlappingGridsInto(...)` instead. `SpatialGridCellSize` remains
32-
optional tuning for ordinary similarly sized grids; it no longer needs to
33-
match the largest grid a world may stream.
32+
optional tuning for ordinary similarly sized grids; it no longer needs to match
33+
the largest grid a world may stream.
3434

3535
### Runtime Identity And Traversal
3636

docs/feature-work/benchmark-signal-hardening-backlog.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ dotnet test GridForge.slnx --configuration ReleaseLean
4646

4747
| Signal | Status | Priority | Tracking |
4848
| ------ | ------ | -------- | -------- |
49-
| _None_ | - | - | - |
49+
| _None_ | - | - | - |
5050

5151
## Closed Signals
5252

53-
| Signal | Status | Priority | Tracking |
54-
| ------ | ------ | -------- | -------- |
55-
| Top-level grid indexing scales with covered hash-cell volume | Closed | High | [`Two-Tier Grid Spatial Index`](done/2026-08-03-two-tier-grid-spatial-index-plan.md) |
53+
| Signal | Status | Priority | Tracking |
54+
| ------------------------------------------------------------ | ------ | -------- | ------------------------------------------------------------------------------------ |
55+
| Top-level grid indexing scales with covered hash-cell volume | Closed | High | [`Two-Tier Grid Spatial Index`](done/2026-08-03-two-tier-grid-spatial-index-plan.md) |
5656

5757
### Signal: Top-Level Grid Indexing Scales With Covered Hash-Cell Volume
5858

@@ -73,13 +73,13 @@ automatically classified oversized grids into a fixed-point BVH, and scans
7373
active grids when a query's empty cell volume would cost more. The internal
7474
64-cell threshold was selected from measured 64/512/4,096 candidates.
7575

76-
| Workload | Baseline median / allocation | After | Confirmation |
77-
| --- | ---: | ---: | ---: |
78-
| Register 64 adjacent grids | 2.073 ms / 1,126,352 B | 1.854 ms / 1,124,144 B | 1.755 ms / 1,124,144 B |
79-
| Remove 64 adjacent grids | 1.704 ms / 25,824 B | 1.174 ms / 17,384 B | 1.186 ms / 17,672 B |
80-
| Register one 24-cell-per-axis grid | 2.433 ms / 3,703,864 B | 10.1 us / 96 B | 10.0 us / 1,056 B |
81-
| Oversized point lookup, 8/64/256 grids | n/a | 93.0 / 127.7 / 163.5 ns, 0 B | 92.6 / 127.9 / 154.8 ns, 0 B |
82-
| Oversized bounds lookup, 8/64/256 grids | n/a | 197.6 / 225.2 / 239.3 ns, 0 B | 200.2 / 229.2 / 248.2 ns, 0 B |
76+
| Workload | Baseline median / allocation | After | Confirmation |
77+
| --------------------------------------- | ---------------------------: | ----------------------------: | ----------------------------: |
78+
| Register 64 adjacent grids | 2.073 ms / 1,126,352 B | 1.854 ms / 1,124,144 B | 1.755 ms / 1,124,144 B |
79+
| Remove 64 adjacent grids | 1.704 ms / 25,824 B | 1.174 ms / 17,384 B | 1.186 ms / 17,672 B |
80+
| Register one 24-cell-per-axis grid | 2.433 ms / 3,703,864 B | 10.1 us / 96 B | 10.0 us / 1,056 B |
81+
| Oversized point lookup, 8/64/256 grids | n/a | 93.0 / 127.7 / 163.5 ns, 0 B | 92.6 / 127.9 / 154.8 ns, 0 B |
82+
| Oversized bounds lookup, 8/64/256 grids | n/a | 197.6 / 225.2 / 239.3 ns, 0 B | 200.2 / 229.2 / 248.2 ns, 0 B |
8383

8484
Raw matched artifacts are retained under
8585
`artifacts/benchmarks/2026-08-03-grid-spatial-index-baseline`,

0 commit comments

Comments
 (0)