diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..d8da4d1 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,9 @@ +name: pre-commit +on: [pull_request] +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b7f7a6..2eda273 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,3 +17,4 @@ repos: args: - "--style" - "Chromium" + files: ".*.cs$" diff --git a/SRC/VideoTesterApp/App.xaml b/SRC/VideoTesterApp/App.xaml index 9b22d79..2670367 100644 --- a/SRC/VideoTesterApp/App.xaml +++ b/SRC/VideoTesterApp/App.xaml @@ -12,4 +12,3 @@ - diff --git a/SRC/VideoTesterApp/AppShell.xaml b/SRC/VideoTesterApp/AppShell.xaml index c5adb28..67e3030 100644 --- a/SRC/VideoTesterApp/AppShell.xaml +++ b/SRC/VideoTesterApp/AppShell.xaml @@ -12,4 +12,3 @@ Route="MainPage" /> - diff --git a/SRC/VideoTesterApp/Configurations/config1.json b/SRC/VideoTesterApp/Configurations/config1.json index afabed0..3cffbcd 100644 --- a/SRC/VideoTesterApp/Configurations/config1.json +++ b/SRC/VideoTesterApp/Configurations/config1.json @@ -5,4 +5,4 @@ "MaxHeight": 1024, "FrameRates": [ 30, 60 ], "MaxBitRate": 1024 -} \ No newline at end of file +} diff --git a/SRC/VideoTesterApp/Configurations/config2.json b/SRC/VideoTesterApp/Configurations/config2.json index 24159e9..4df6488 100644 --- a/SRC/VideoTesterApp/Configurations/config2.json +++ b/SRC/VideoTesterApp/Configurations/config2.json @@ -5,4 +5,4 @@ "MaxHeight": 2048, "FrameRates": [ 25, 50, 60 ], "MaxBitRate": 99999 -} \ No newline at end of file +} diff --git a/SRC/VideoTesterApp/MainPage.xaml b/SRC/VideoTesterApp/MainPage.xaml index 8dd5805..995fdb4 100644 --- a/SRC/VideoTesterApp/MainPage.xaml +++ b/SRC/VideoTesterApp/MainPage.xaml @@ -28,4 +28,3 @@ - diff --git a/SRC/VideoTesterApp/Platforms/Android/Resources/values/colors.xml b/SRC/VideoTesterApp/Platforms/Android/Resources/values/colors.xml index c2794f7..3b8595e 100644 --- a/SRC/VideoTesterApp/Platforms/Android/Resources/values/colors.xml +++ b/SRC/VideoTesterApp/Platforms/Android/Resources/values/colors.xml @@ -4,4 +4,3 @@ #2B0B98 #2B0B98 - diff --git a/SRC/VideoTesterApp/Platforms/Tizen/tizen-manifest.xml b/SRC/VideoTesterApp/Platforms/Tizen/tizen-manifest.xml index 80aa09e..0be5ded 100644 --- a/SRC/VideoTesterApp/Platforms/Tizen/tizen-manifest.xml +++ b/SRC/VideoTesterApp/Platforms/Tizen/tizen-manifest.xml @@ -9,7 +9,7 @@ http://tizen.org/privilege/internet - + diff --git a/SRC/VideoTesterApp/Platforms/Windows/App.xaml b/SRC/VideoTesterApp/Platforms/Windows/App.xaml index d5d4696..fb7958a 100644 --- a/SRC/VideoTesterApp/Platforms/Windows/App.xaml +++ b/SRC/VideoTesterApp/Platforms/Windows/App.xaml @@ -6,4 +6,3 @@ xmlns:local="using:VideoTesterApp.WinUI"> - diff --git a/SRC/VideoTesterApp/Platforms/Windows/Package.appxmanifest b/SRC/VideoTesterApp/Platforms/Windows/Package.appxmanifest index 780108a..0ca606c 100644 --- a/SRC/VideoTesterApp/Platforms/Windows/Package.appxmanifest +++ b/SRC/VideoTesterApp/Platforms/Windows/Package.appxmanifest @@ -44,4 +44,3 @@ - diff --git a/SRC/VideoTesterApp/Platforms/Windows/app.manifest b/SRC/VideoTesterApp/Platforms/Windows/app.manifest index 0f34263..6e102c1 100644 --- a/SRC/VideoTesterApp/Platforms/Windows/app.manifest +++ b/SRC/VideoTesterApp/Platforms/Windows/app.manifest @@ -13,4 +13,3 @@ - diff --git a/SRC/VideoTesterApp/Resources/AppIcon/appicon.svg b/SRC/VideoTesterApp/Resources/AppIcon/appicon.svg index 49f9800..24f8833 100644 --- a/SRC/VideoTesterApp/Resources/AppIcon/appicon.svg +++ b/SRC/VideoTesterApp/Resources/AppIcon/appicon.svg @@ -2,4 +2,3 @@ - diff --git a/SRC/VideoTesterApp/Resources/Images/dotnet_bot.svg b/SRC/VideoTesterApp/Resources/Images/dotnet_bot.svg index e19b012..c6ae5d8 100644 --- a/SRC/VideoTesterApp/Resources/Images/dotnet_bot.svg +++ b/SRC/VideoTesterApp/Resources/Images/dotnet_bot.svg @@ -91,5 +91,3 @@ - - diff --git a/SRC/VideoTesterApp/Resources/Raw/AboutAssets.txt b/SRC/VideoTesterApp/Resources/Raw/AboutAssets.txt index 808d6d3..531df33 100644 --- a/SRC/VideoTesterApp/Resources/Raw/AboutAssets.txt +++ b/SRC/VideoTesterApp/Resources/Raw/AboutAssets.txt @@ -13,5 +13,3 @@ These files will be deployed with you package and will be accessible using Essen var contents = reader.ReadToEnd(); } - - diff --git a/SRC/VideoTesterApp/Resources/Splash/splash.svg b/SRC/VideoTesterApp/Resources/Splash/splash.svg index 4b71383..e9b7139 100644 --- a/SRC/VideoTesterApp/Resources/Splash/splash.svg +++ b/SRC/VideoTesterApp/Resources/Splash/splash.svg @@ -6,4 +6,3 @@ - diff --git a/SRC/VideoTesterApp/Resources/Styles/Colors.xaml b/SRC/VideoTesterApp/Resources/Styles/Colors.xaml index e4a7a43..4ec0e7d 100644 --- a/SRC/VideoTesterApp/Resources/Styles/Colors.xaml +++ b/SRC/VideoTesterApp/Resources/Styles/Colors.xaml @@ -1,6 +1,6 @@  - diff --git a/SRC/VideoTesterApp/Resources/Styles/Styles.xaml b/SRC/VideoTesterApp/Resources/Styles/Styles.xaml index b88aed6..3992639 100644 --- a/SRC/VideoTesterApp/Resources/Styles/Styles.xaml +++ b/SRC/VideoTesterApp/Resources/Styles/Styles.xaml @@ -1,6 +1,6 @@  - @@ -382,4 +382,3 @@ - diff --git a/SRC/VideoTesterConsole/Configurations/config1.json b/SRC/VideoTesterConsole/Configurations/config1.json index afabed0..3cffbcd 100644 --- a/SRC/VideoTesterConsole/Configurations/config1.json +++ b/SRC/VideoTesterConsole/Configurations/config1.json @@ -5,4 +5,4 @@ "MaxHeight": 1024, "FrameRates": [ 30, 60 ], "MaxBitRate": 1024 -} \ No newline at end of file +} diff --git a/SRC/VideoTesterConsole/Configurations/config2.json b/SRC/VideoTesterConsole/Configurations/config2.json index 0704837..9a167dc 100644 --- a/SRC/VideoTesterConsole/Configurations/config2.json +++ b/SRC/VideoTesterConsole/Configurations/config2.json @@ -5,4 +5,4 @@ "MaxHeight": 512, "FrameRates": [ 25, 50 ], "MaxBitRate": 1024 -} \ No newline at end of file +} diff --git a/download-ffprobe b/download-ffprobe index 1d77b9e..4ef87df 100755 --- a/download-ffprobe +++ b/download-ffprobe @@ -5,15 +5,15 @@ set -e # exit on failure zip_file=ffprobe.zip if [[ -f $zip_file ]] -then - echo "zip file already exists"; -else - curl -JL https://evermeet.cx/ffmpeg/get/ffprobe/zip -o $zip_file +then + echo "zip file already exists"; +else + curl -JL https://evermeet.cx/ffmpeg/get/ffprobe/zip -o $zip_file fi sig_file="$zip_file.sig" if [[ -f $sig_file ]] -then +then echo "sig file already exists"; else curl -JL https://evermeet.cx/ffmpeg/get/ffprobe/zip/sig -o $sig_file @@ -23,7 +23,7 @@ gpg --import evermeet.asc gpg --verify $sig_file $zip_file if [[ ! -d ./SRC/VideoTesterApp/ExternalBinaries/Mac ]] -then +then mkdir ./SRC/VideoTesterApp/ExternalBinaries/Mac fi unzip -o ffprobe -d ./SRC/VideoTesterApp/ExternalBinaries/Mac