diff --git a/docs/development.md b/docs/development.md index c2f5e708e..c070faec1 100644 --- a/docs/development.md +++ b/docs/development.md @@ -114,7 +114,9 @@ For more information, see the [Tests project](../../src/Tests). ## Reformatting -Run `dotnet format` to fix whitespace and other formatting issues across all files. Rider runs this as you save each file, so this likely won't be needed regularly. +Run `./generation/ensure-license-headers.sh` when adding new files to ensure they get license headers. This also runs `dotnet format`. + +You can also run `dotnet format` manually to fix whitespace and other formatting issues across all files. Rider runs this as you save each file, so this likely won't be needed regularly. ## Code Generation - Migrations, Open API specs etc diff --git a/generation/ensure-license-headers.sh b/generation/ensure-license-headers.sh index 9976792b6..ba5e9a22d 100755 --- a/generation/ensure-license-headers.sh +++ b/generation/ensure-license-headers.sh @@ -23,3 +23,8 @@ for f in `find . -name '*.cs'`; do echo "$f - License Header prepended" fi done + +echo "Running dotnet format..." +echo + +dotnet format \ No newline at end of file