Added an analyzer which keeps line breaks LF on every system (#1193)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-11 19:30:00 +01:00
1 parent b1c1f13993
commit 65d50de033
96 files changed
+741 -393

No files matched your search

+14 -5
View File
@@ -37,15 +37,24 @@
<ProjectReference Include="..\MindWork AI Studio\MindWork AI Studio.csproj" />
<!--
Referenced as plain libraries, not as analyzers: the tests run the generator and the
analyzer themselves, against a snippet they compile in memory. Building them into this
project as analyzers would have them judge the test code instead, which is not what is
being checked here.
Referenced as libraries: the tests run the generator and the analyzers themselves, against
a snippet they compile in memory. SourceCodeRules is an analyzer of this project as well,
but only for MWAIS0018, see below: a test which expects the line break of the system fails
on Windows only, where no pipeline runs the tests. The other rules are written for the code
of the app and would judge test code which has its reasons, such as new Random() with a seed.
-->
<ProjectReference Include="..\SourceCodeRules\SourceCodeRules\SourceCodeRules.csproj" />
<ProjectReference Include="..\SourceCodeRules\SourceCodeRules\SourceCodeRules.csproj" OutputItemType="Analyzer" />
<ProjectReference Include="..\SourceGeneratedMappings\SourceGeneratedMappings.csproj" />
</ItemGroup>
<!--
Every rule of SourceCodeRules except MWAIS0018, the line break of the system. A new rule judges
the tests, too, until it is listed here.
-->
<PropertyGroup>
<NoWarn>$(NoWarn);MWAIS0001;MWAIS0002;MWAIS0003;MWAIS0004;MWAIS0005;MWAIS0006;MWAIS0007;MWAIS0008;MWAIS0009;MWAIS0010;MWAIS0011;MWAIS0012;MWAIS0013;MWAIS0014;MWAIS0015;MWAIS0016;MWAIS0017</NoWarn>
</PropertyGroup>
<!--
Compiled here as well, so that the tests check the same options of the app which the trim smoke test finds.
-->