Skip to content

Commit

Permalink
tweak: ensure-license-headers.sh also runs dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Aug 9, 2024
1 parent fa40906 commit efe6f02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions generation/ensure-license-headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit efe6f02

Please sign in to comment.