-
Notifications
You must be signed in to change notification settings - Fork 1
St/style checks #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
St/style checks #41
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2c7fd19
Add CI style check.
thompson318 d22427f
Add pre commit
thompson318 2d36739
Add . to pre-commit to find files recursively.
thompson318 e3ae3e4
Apply formatting to existing files.
thompson318 d1f544d
Updated README with notes on pre-commit
thompson318 cbb3f03
Update for latest versions of pre-commit / prek
thompson318 872c756
Latest version of csharpier
thompson318 8fdd30e
Update README with instructions on code style.
thompson318 0874231
Clarified readme
thompson318 a32bad2
Apply style fix to existing files
thompson318 de45b31
Tidy up readme instructions for pre-commit.
thompson318 615523a
Don't need to manually install CSharpier
thompson318 f690422
Merge branch 'main' into st/style-checks
thompson318 4817df7
Fixed format.
thompson318 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "version": 1, | ||
| "isRoot": true, | ||
| "tools": { | ||
| "csharpier": { | ||
| "version": "1.2.5", | ||
| "commands": [ | ||
| "csharpier" | ||
| ] | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Check Style | ||
| on: | ||
| pull_request: | ||
| branches: [ main ] | ||
| workflow_dispatch: | ||
| jobs: | ||
| check_formatting: | ||
| runs-on: ubuntu-slim | ||
| name: Run csharpier | ||
| steps: | ||
|
|
||
| - uses: actions/checkout@v6 | ||
| - uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: '8.0.x' | ||
| - run: | | ||
| dotnet tool restore | ||
| dotnet csharpier check . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| repos: | ||
| - repo: local | ||
| hooks: | ||
| - id: dotnet-tool-restore | ||
| name: Install .NET tools | ||
| entry: dotnet tool restore | ||
| # for pre-commit < 4.4.0 use language: system | ||
| language: unsupported | ||
| always_run: true | ||
| pass_filenames: false | ||
| stages: | ||
| - commit | ||
| - push | ||
| - post-checkout | ||
| - post-rewrite | ||
| description: Install the .NET tools listed at .config/dotnet-tools.json. | ||
| - id: csharpier | ||
| name: Run CSharpier on C# files | ||
| entry: dotnet tool run CSharpier format . | ||
| language: system | ||
| types: | ||
| - c# | ||
| description: CSharpier is an opinionated C# formatter inspired by Prettier. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.