A single source of truth for my development project configuration files, workflow templates, and development tools to ensure consistency across projects.
coding-standards/
└── dotnet/ # .NET specific standards and tools
├── editorconfig/ # Code formatting rules
├── directory-build-props/ # Common build properties
├── git-hooks/ # .NET-specific git hooks
├── workflows/ # GitHub Actions workflows for .NET
└── setup.sh # Script to set up all .NET standards
Add this repository as a submodule to your project:
git submodule add https://github.com/markstanden/coding-standards .coding-standards
Run the setup script to configure all .NET standards at once:
sudo chmod +x .coding-standards/dotnet/setup.sh
.coding-standards/dotnet/setup.sh
This will:
- Add this repository as a submodule to your project:
- Copy or symlink the
.editorconfig
andDirectory.Build.props
to your project root - Set up git hooks for .NET formatting
- Create a GitHub Actions workflow pipeline file if it doesn't exist
The script essentially automates the following steps:
- Symlink the
.editorconfig
to your project root:
ln -s .coding-standards/dotnet/editorconfig/.editorconfig .editorconfig
- Symlink the
Directory.Build.props
to your project root:
ln -s .coding-standards/dotnet/directory-build-props/Directory.Build.props Directory.Build.props
- Set up git hooks:
.coding-standards/dotnet/git-hooks/setup-hooks.sh
- Set up GitHub workflows:
mkdir -p .github/workflows
cp .coding-standards/dotnet/workflows/pipeline.yml .github/workflows/