Skip to content

Commit

Permalink
Make editorconfig rule addition slightly more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmarbach authored Aug 22, 2024
1 parent 8208ca3 commit a6cc79c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ for diagnostic in ${nunit_analyzer_diagnostics[@]}; do
fi

echo "Appending to $editor_config"
echo "dotnet_diagnostic.$diagnostic.severity = warning" >> "$editor_config"
echo -e "\ndotnet_diagnostic.$diagnostic.severity = warning" >> "$editor_config"

echo "Formatting $csproj with diagnostic $diagnostic"
dotnet format analyzers $csproj --diagnostics $diagnostic --severity info --no-restore --verbosity diagnostic
Expand Down

0 comments on commit a6cc79c

Please sign in to comment.