Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update description for (init/cleanup) analyzers #3391

Merged
merged 6 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions src/Analyzers/MSTest.Analyzers/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions src/Analyzers/MSTest.Analyzers/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</value>
- not be a special method (finalizer, operator...)
- it's class should be marked with 'TestClassAttribute'.</value>
</data>
<data name="AssemblyCleanupShouldBeValidMessageFormat" xml:space="preserve">
<value>AssemblyCleanup method '{0}' signature is invalid</value>
Expand All @@ -141,7 +142,8 @@
- take a single parameter of type 'TestContext'
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</value>
- not be a special method (finalizer, operator...)
- it's class should be marked with 'TestClassAttribute'.</value>
</data>
<data name="AssemblyInitializeShouldBeValidMessageFormat" xml:space="preserve">
<value>AssemblyInitialize method '{0}' signature is invalid</value>
Expand Down Expand Up @@ -182,6 +184,7 @@
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should not be specified if the class is 'sealed'.</value>
</data>
Expand All @@ -200,6 +203,7 @@
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should not be specified if the class is 'sealed'.</value>
</data>
Expand Down Expand Up @@ -323,7 +327,8 @@
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</value>
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'.</value>
</data>
<data name="TestCleanupShouldBeValidMessageFormat" xml:space="preserve">
<value>TestCleanup method '{0}' signature is invalid</value>
Expand Down Expand Up @@ -365,7 +370,8 @@
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</value>
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'.</value>
</data>
<data name="TestInitializeShouldBeValidMessageFormat" xml:space="preserve">
<value>TestInitialize method '{0}' signature is invalid</value>
Expand Down
24 changes: 16 additions & 8 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">Aby byly metody s označením [AssemblyCleanup] platné, musí se řídit následujícím rozložením:
- not be a special method (finalizer, operator...)
- it's class should be marked with 'TestClassAttribute'.</source>
<target state="needs-review-translation">Aby byly metody s označením [AssemblyCleanup] platné, musí se řídit následujícím rozložením:
– být „public“
– být „static“
– nesmí být obecné ani definované pro obecnou třídu
Expand Down Expand Up @@ -39,8 +40,9 @@
- take a single parameter of type 'TestContext'
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">Aby byly metody s označením [AssemblyInitialize] platné, musí se řídit následujícím rozložením:
- not be a special method (finalizer, operator...)
- it's class should be marked with 'TestClassAttribute'.</source>
<target state="needs-review-translation">Aby byly metody s označením [AssemblyInitialize] platné, musí se řídit následujícím rozložením:
.
– být „public“
– být „static“
Expand Down Expand Up @@ -110,6 +112,7 @@
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should not be specified if the class is 'sealed'.</source>
<target state="new">Methods marked with [ClassCleanup] should follow the following layout to be valid:
Expand All @@ -120,6 +123,7 @@
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should not be specified if the class is 'sealed'.</target>
<note />
Expand All @@ -143,6 +147,7 @@
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should not be specified if the class is 'sealed'.</source>
<target state="new">Methods marked with [ClassInitialize] should follow the following layout to be valid:
Expand All @@ -153,6 +158,7 @@
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should not be specified if the class is 'sealed'.</target>
<note />
Expand Down Expand Up @@ -454,8 +460,9 @@
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">Aby byly metody s označením [TestCleanup] platné, musí se řídit následujícím rozložením:
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'.</source>
<target state="needs-review-translation">Aby byly metody s označením [TestCleanup] platné, musí se řídit následujícím rozložením:
.
– být „public“
– nesmí být „static“
Expand Down Expand Up @@ -529,8 +536,9 @@
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">Aby byly metody s označením [TestInitialize] platné, musí se řídit následujícím rozložením:
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'.</source>
<target state="needs-review-translation">Aby byly metody s označením [TestInitialize] platné, musí se řídit následujícím rozložením:
.
– být „public“
– nesmí být „static“
Expand Down
24 changes: 16 additions & 8 deletions src/Analyzers/MSTest.Analyzers/xlf/Resources.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">Methoden, die mit [AssemblyCleanup] gekennzeichnet sind, müssen dem folgenden Layout folgen, um gültig zu sein:
- not be a special method (finalizer, operator...)
- it's class should be marked with 'TestClassAttribute'.</source>
<target state="needs-review-translation">Methoden, die mit [AssemblyCleanup] gekennzeichnet sind, müssen dem folgenden Layout folgen, um gültig zu sein:
– "öffentlich" sein
– "statisch" sein
– nicht generisch oder für eine generische Klasse definiert sein
Expand Down Expand Up @@ -39,8 +40,9 @@
- take a single parameter of type 'TestContext'
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">Methoden, die mit [AssemblyInitialize] gekennzeichnet sind, müssen dem folgenden Layout folgen, um gültig zu sein:
- not be a special method (finalizer, operator...)
- it's class should be marked with 'TestClassAttribute'.</source>
<target state="needs-review-translation">Methoden, die mit [AssemblyInitialize] gekennzeichnet sind, müssen dem folgenden Layout folgen, um gültig zu sein:
– "öffentlich" sein
– "statisch" sein
– nicht generisch oder für eine generische Klasse definiert sein
Expand Down Expand Up @@ -109,6 +111,7 @@
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should not be specified if the class is 'sealed'.</source>
<target state="new">Methods marked with [ClassCleanup] should follow the following layout to be valid:
Expand All @@ -119,6 +122,7 @@
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should not be specified if the class is 'sealed'.</target>
<note />
Expand All @@ -142,6 +146,7 @@
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should not be specified if the class is 'sealed'.</source>
<target state="new">Methods marked with [ClassInitialize] should follow the following layout to be valid:
Expand All @@ -152,6 +157,7 @@
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'
-'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should not be specified if the class is 'sealed'.</target>
<note />
Expand Down Expand Up @@ -453,8 +459,9 @@
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">Methoden, die mit [TestCleanup] gekennzeichnet sind, sollten dem folgenden Layout folgen, um gültig zu sein:
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'.</source>
<target state="needs-review-translation">Methoden, die mit [TestCleanup] gekennzeichnet sind, sollten dem folgenden Layout folgen, um gültig zu sein:
– "öffentlich" sein
– nicht "statisch" sein
– nicht generisch oder für eine generische Klasse definiert sein
Expand Down Expand Up @@ -527,8 +534,9 @@
- not take any parameter
- return type should be 'void', 'Task' or 'ValueTask'
- not be 'async void'
- not be a special method (finalizer, operator...).</source>
<target state="translated">Methoden, die mit [TestInitialize] gekennzeichnet sind, sollten dem folgenden Layout folgen, um gültig zu sein:
- not be a special method (finalizer, operator...)
-if it's class is 'sealed', it should be marked with 'TestClassAttribute'.</source>
<target state="needs-review-translation">Methoden, die mit [TestInitialize] gekennzeichnet sind, sollten dem folgenden Layout folgen, um gültig zu sein:
– "öffentlich" sein
– nicht "statisch" sein
– nicht generisch oder für eine generische Klasse definiert sein
Expand Down
Loading