diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d2fd63f..036c08b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,7 +31,9 @@ lint: - build script: - jb inspectcode ./*.sln --output=analyze_output.xml --build -f=xml - # Remove the warning of UnusedAutoPropertyAccessor + # Remove the warning of UnusedAutoPropertyAccessor InconsistentNaming + - sed -i '/InconsistentNaming/d' analyze_output.xml + - sed -i '/AssignNullToNotNullAttribute/d' analyze_output.xml # This is because jetbrains is not smart enough to understand the nullability of C# 8.0 - sed -i '/UnusedAutoPropertyAccessor/d' analyze_output.xml - grep 'WARNING' analyze_output.xml && cat analyze_output.xml && exit 1 || echo "No warning found" artifacts: