add dotnet-format as pre-commit hook
This commit is contained in:
parent
e6c56e5bce
commit
3c6822aa64
7
.githooks/pre-commit
Executable file
7
.githooks/pre-commit
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Use with:
|
||||||
|
#
|
||||||
|
# $> git config core.hooksPath .githooks
|
||||||
|
#
|
||||||
|
dotnet format --exclude vendor/
|
@ -15,7 +15,7 @@ namespace Pal.Client.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
public IDisposable BeginScope<TState>(TState state)
|
public IDisposable BeginScope<TState>(TState state)
|
||||||
where TState: notnull
|
where TState : notnull
|
||||||
=> NullScope.Instance;
|
=> NullScope.Instance;
|
||||||
|
|
||||||
public bool IsEnabled(LogLevel logLevel) => logLevel != LogLevel.None;
|
public bool IsEnabled(LogLevel logLevel) => logLevel != LogLevel.None;
|
||||||
|
Loading…
Reference in New Issue
Block a user