Skip to content

Commit 1549da0

Browse files
committed
Validate maxNeighbors and modernize solution metadata
- validate negative maxNeighbors in AddAgent and SetAgentDefaults - return a copy from GetAgentOrcaLines instead of exposing internal state - update README to describe the project as targeting .NET 10 - convert the Visual Studio solution from .sln to .slnx - remove obsolete REUSE metadata files
1 parent 524b99e commit 1549da0

11 files changed

Lines changed: 92 additions & 1111 deletions

File tree

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
*.json text whitespace-2
5353
*.license text linguist-documentation whitespace-0
5454
*.md text diff=markdown whitespace-md
55-
*.sln text eol=crlf linguist-generated whitespace=tabwidth=2,trailing-space
55+
*.slnx text diff=html eol=crlf linguist-generated whitespace-2
5656
*.txt text
5757
*.yaml text whitespace-2
5858
*.yml text whitespace-2

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,12 @@ jobs:
310310
global-json-file: global.json
311311
- name: build package debug
312312
run: |
313-
dotnet build --configuration Debug --nologo RVOCS.sln
313+
dotnet build --configuration Debug --nologo RVOCS.slnx
314314
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
315315
shell: bash
316316
- name: build package release
317317
run: |
318-
dotnet build --configuration Release --nologo RVOCS.sln
318+
dotnet build --configuration Release --nologo RVOCS.slnx
319319
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
320320
shell: bash
321321

@@ -347,12 +347,12 @@ jobs:
347347
global-json-file: global.json
348348
- name: build package debug
349349
run: |
350-
dotnet build --configuration Debug --nologo RVOCS.sln
350+
dotnet build --configuration Debug --nologo RVOCS.slnx
351351
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
352352
shell: sh
353353
- name: build package release
354354
run: |
355-
dotnet build --configuration Release --nologo RVOCS.sln
355+
dotnet build --configuration Release --nologo RVOCS.slnx
356356
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
357357
shell: sh
358358

@@ -385,12 +385,12 @@ jobs:
385385
global-json-file: global.json
386386
- name: build package debug
387387
run: |
388-
dotnet build --configuration Debug --nologo RVOCS.sln
388+
dotnet build --configuration Debug --nologo RVOCS.slnx
389389
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
390390
shell: bash
391391
- name: build package release
392392
run: |
393-
dotnet build --configuration Release --nologo RVOCS.sln
393+
dotnet build --configuration Release --nologo RVOCS.slnx
394394
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
395395
shell: bash
396396

@@ -426,12 +426,12 @@ jobs:
426426
global-json-file: global.json
427427
- name: build package debug
428428
run: |
429-
dotnet build --configuration Debug --nologo RVOCS.sln
429+
dotnet build --configuration Debug --nologo RVOCS.slnx
430430
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
431431
shell: bash
432432
- name: build package release
433433
run: |
434-
dotnet build --configuration Release --nologo RVOCS.sln
434+
dotnet build --configuration Release --nologo RVOCS.slnx
435435
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
436436
shell: bash
437437
dotnet-macos:
@@ -457,12 +457,12 @@ jobs:
457457
global-json-file: global.json
458458
- name: build package debug
459459
run: |
460-
dotnet build --configuration Debug --nologo RVOCS.sln
460+
dotnet build --configuration Debug --nologo RVOCS.slnx
461461
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
462462
shell: zsh -efuo pipefail {0}
463463
- name: build and pack release
464464
run: |
465-
dotnet build --configuration Release --nologo RVOCS.sln
465+
dotnet build --configuration Release --nologo RVOCS.slnx
466466
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
467467
shell: zsh -efuo pipefail {0}
468468

@@ -504,12 +504,12 @@ jobs:
504504
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
505505
- name: build package debug
506506
run: |
507-
dotnet build --configuration Debug --nologo RVOCS.sln
507+
dotnet build --configuration Debug --nologo RVOCS.slnx
508508
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
509509
shell: bash
510510
- name: build package release
511511
run: |
512-
dotnet build --configuration Release --nologo RVOCS.sln
512+
dotnet build --configuration Release --nologo RVOCS.slnx
513513
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
514514
shell: bash
515515
- name: push
@@ -553,12 +553,12 @@ jobs:
553553
global-json-file: global.json
554554
- name: build package debug
555555
run: |
556-
dotnet build --configuration Debug --nologo RVOCS.sln
556+
dotnet build --configuration Debug --nologo RVOCS.slnx
557557
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
558558
shell: bash
559559
- name: build package release
560560
run: |
561-
dotnet build --configuration Release --nologo RVOCS.sln
561+
dotnet build --configuration Release --nologo RVOCS.slnx
562562
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
563563
shell: bash
564564

@@ -574,11 +574,11 @@ jobs:
574574
global-json-file: global.json
575575
- name: build package debug
576576
run: |
577-
dotnet build --configuration Debug RVOCS.sln
577+
dotnet build --configuration Debug RVOCS.slnx
578578
dotnet pack --configuration Debug --no-build RVOCS\RVOCS.csproj
579579
shell: pwsh
580580
- name: build and pack release
581581
run: |
582-
dotnet build --configuration Release RVOCS.sln
582+
dotnet build --configuration Release RVOCS.slnx
583583
dotnet pack --configuration Release --no-build RVOCS\RVOCS.csproj
584584
shell: pwsh

.pre-commit-config.yaml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
#
2+
# .pre-commit-config.yaml
3+
# RVO2 Library C#
4+
#
5+
# SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill
6+
# SPDX-License-Identifier: Apache-2.0
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License");
9+
# you may not use this file except in compliance with the License.
10+
# You may obtain a copy of the License at
11+
#
12+
# https://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
#
20+
# Please send all bug reports to <geom@cs.unc.edu>.
21+
#
22+
# The authors may be contacted via:
23+
#
24+
# Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha
25+
# Dept. of Computer Science
26+
# 201 S. Columbia St.
27+
# Frederick P. Brooks, Jr. Computer Science Bldg.
28+
# Chapel Hill, N.C. 27599-3175
29+
# United States of America
30+
#
31+
# <https://gamma.cs.unc.edu/RVO2/>
32+
#
33+
134
---
235
repos:
336
- repo: https://codeberg.org/fsfe/reuse-tool
@@ -35,9 +68,3 @@ repos:
3568
- id: actionlint
3669
args:
3770
- -oneline
38-
39-
40-
41-
42-
43-

0 commit comments

Comments
 (0)