mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-08 10:44:20 -04:00
Use csharpier in the ci
This commit is contained in:
parent
7e6e56a366
commit
bffd71fea5
16
.github/workflows/coding-style.yml
vendored
16
.github/workflows/coding-style.yml
vendored
@ -5,16 +5,16 @@ jobs:
|
|||||||
back:
|
back:
|
||||||
name: "Lint Back"
|
name: "Lint Back"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./back
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup .NET
|
- name: Check coding style
|
||||||
uses: actions/setup-dotnet@v1
|
run: |
|
||||||
with:
|
dotnet tool restore
|
||||||
dotnet-version: 7.0.x
|
dotnet csharpier . --check
|
||||||
|
|
||||||
- name: Build the app
|
|
||||||
run: cd back && dotnet build -p:CheckCodingStyle=true -p:TreatWarningsAsErrors=true '-p:SkipTranscoder=true'
|
|
||||||
|
|
||||||
front:
|
front:
|
||||||
name: "Lint Front"
|
name: "Lint Front"
|
||||||
|
@ -11,13 +11,11 @@ smart_tab = true
|
|||||||
|
|
||||||
[*.cs]
|
[*.cs]
|
||||||
csharp_prefer_braces = false
|
csharp_prefer_braces = false
|
||||||
dotnet_diagnostic.IDE0130.severity = none
|
|
||||||
dotnet_diagnostic.IDE0058.severity = none
|
|
||||||
dotnet_diagnostic.IDE0046.severity = none
|
dotnet_diagnostic.IDE0046.severity = none
|
||||||
dotnet_diagnostic.CA1305.severity = none
|
dotnet_diagnostic.IDE0055.severity = none
|
||||||
dotnet_diagnostic.CA1848.severity = none
|
dotnet_diagnostic.IDE0058.severity = none
|
||||||
dotnet_diagnostic.CA2007.severity = none
|
dotnet_diagnostic.IDE0130.severity = none
|
||||||
dotnet_diagnostic.CA1716.severity = none
|
|
||||||
# Sort using and Import directives with System.* appearing first
|
# Sort using and Import directives with System.* appearing first
|
||||||
dotnet_sort_system_directives_first = true
|
dotnet_sort_system_directives_first = true
|
||||||
csharp_using_directive_placement = outside_namespace:warning
|
csharp_using_directive_placement = outside_namespace:warning
|
||||||
|
Loading…
x
Reference in New Issue
Block a user