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 CA1062 message and description to not suggest code contracts #6327

Merged
merged 2 commits into from
Dec 10, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -1165,10 +1165,10 @@
<value>Remove redundant element initializer</value>
</data>
<data name="ValidateArgumentsOfPublicMethodsDescription" xml:space="preserve">
<value>An externally visible method dereferences one of its reference arguments without verifying whether that argument is null (Nothing in Visual Basic). All reference arguments that are passed to externally visible methods should be checked against null. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument. If the method is designed to be called only by known assemblies, you should make the method internal.</value>
<value>An externally visible method dereferences one of its reference arguments without verifying whether that argument is 'null' ('Nothing' in Visual Basic). All reference arguments that are passed to externally visible methods should be checked against 'null'. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. If the method is designed to be called only by known assemblies, you should make the method internal.</value>
</data>
<data name="ValidateArgumentsOfPublicMethodsMessage" xml:space="preserve">
<value>In externally visible method '{0}', validate parameter '{1}' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.</value>
<value>In externally visible method '{0}', validate parameter '{1}' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'.</value>
</data>
<data name="ValidateArgumentsOfPublicMethodsTitle" xml:space="preserve">
<value>Validate arguments of public methods</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1988,13 +1988,13 @@
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsDescription">
<source>An externally visible method dereferences one of its reference arguments without verifying whether that argument is null (Nothing in Visual Basic). All reference arguments that are passed to externally visible methods should be checked against null. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument. If the method is designed to be called only by known assemblies, you should make the method internal.</source>
<target state="translated">Externě viditelná metoda přistupuje přes ukazatel k datům jednoho ze svých atributů odkazů bez ověření, jestli argument není null (Nothing v jazyce Visual Basic). Ve všech argumentech odkazů, které se předávají externě viditelným metodám, by se měla kontrolovat hodnota null. V případě potřeby vyvolejte ArgumentNullException, když je argument null, nebo přidejte předběžnou podmínku Code Contract, která vyhodnocuje argument, který není null. Pokud je metoda navržená tak, že ji budou volat jen známá sestavení, měli byste ji převést na interní metodu.</target>
<source>An externally visible method dereferences one of its reference arguments without verifying whether that argument is 'null' ('Nothing' in Visual Basic). All reference arguments that are passed to externally visible methods should be checked against 'null'. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. If the method is designed to be called only by known assemblies, you should make the method internal.</source>
<target state="needs-review-translation">Externě viditelná metoda přistupuje přes ukazatel k datům jednoho ze svých atributů odkazů bez ověření, jestli argument není null (Nothing v jazyce Visual Basic). Ve všech argumentech odkazů, které se předávají externě viditelným metodám, by se měla kontrolovat hodnota null. V případě potřeby vyvolejte ArgumentNullException, když je argument null, nebo přidejte předběžnou podmínku Code Contract, která vyhodnocuje argument, který není null. Pokud je metoda navržená tak, že ji budou volat jen známá sestavení, měli byste ji převést na interní metodu.</target>
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsMessage">
<source>In externally visible method '{0}', validate parameter '{1}' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.</source>
<target state="translated">Dříve, než v externě viditelné metodě {0} použijete parametr {1}, ověřte, že tento parametr není null. V případě potřeby vyvolejte ArgumentNullException, když je argument null, nebo přidejte předběžnou podmínku Code Contract, která vyhodnocuje argument, který není null.</target>
<source>In externally visible method '{0}', validate parameter '{1}' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'.</source>
<target state="needs-review-translation">Dříve, než v externě viditelné metodě {0} použijete parametr {1}, ověřte, že tento parametr není null. V případě potřeby vyvolejte ArgumentNullException, když je argument null, nebo přidejte předběžnou podmínku Code Contract, která vyhodnocuje argument, který není null.</target>
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1988,13 +1988,13 @@
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsDescription">
<source>An externally visible method dereferences one of its reference arguments without verifying whether that argument is null (Nothing in Visual Basic). All reference arguments that are passed to externally visible methods should be checked against null. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument. If the method is designed to be called only by known assemblies, you should make the method internal.</source>
<target state="translated">Eine extern sichtbare Methode dereferenziert eines der zugehörigen Verweisargumente, ohne dass geprüft wird, ob das Argument NULL ist ("Nothing" in Visual Basic). Alle Verweisargumente, die an extern sichtbare Methoden übergeben werden, müssen auf NULL überprüft werden. Lösen Sie gegebenenfalls eine ArgumentNullException aus, wenn das Argument NULL ist, oder fügen Sie eine Codevertragsvorbedingung hinzu, die ein Nicht-NULL-Argument durchsetzt. Wenn die Methode darauf ausgelegt ist, nur von bekannten Assemblys aufgerufen zu werden, müssen Sie die Methode als intern festlegen.</target>
<source>An externally visible method dereferences one of its reference arguments without verifying whether that argument is 'null' ('Nothing' in Visual Basic). All reference arguments that are passed to externally visible methods should be checked against 'null'. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. If the method is designed to be called only by known assemblies, you should make the method internal.</source>
<target state="needs-review-translation">Eine extern sichtbare Methode dereferenziert eines der zugehörigen Verweisargumente, ohne dass geprüft wird, ob das Argument NULL ist ("Nothing" in Visual Basic). Alle Verweisargumente, die an extern sichtbare Methoden übergeben werden, müssen auf NULL überprüft werden. Lösen Sie gegebenenfalls eine ArgumentNullException aus, wenn das Argument NULL ist, oder fügen Sie eine Codevertragsvorbedingung hinzu, die ein Nicht-NULL-Argument durchsetzt. Wenn die Methode darauf ausgelegt ist, nur von bekannten Assemblys aufgerufen zu werden, müssen Sie die Methode als intern festlegen.</target>
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsMessage">
<source>In externally visible method '{0}', validate parameter '{1}' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.</source>
<target state="translated">Überprüfen Sie in der extern sichtbaren Methode "{0}", dass der Parameter "{1}" ungleich NULL ist, bevor Sie ihn verwenden. Lösen Sie gegebenenfalls eine ArgumentNullException aus, wenn das Argument NULL ist, oder fügen Sie eine Codevertragsvorbedingung hinzu, die ein Nicht-NULL-Argument durchsetzt.</target>
<source>In externally visible method '{0}', validate parameter '{1}' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'.</source>
<target state="needs-review-translation">Überprüfen Sie in der extern sichtbaren Methode "{0}", dass der Parameter "{1}" ungleich NULL ist, bevor Sie ihn verwenden. Lösen Sie gegebenenfalls eine ArgumentNullException aus, wenn das Argument NULL ist, oder fügen Sie eine Codevertragsvorbedingung hinzu, die ein Nicht-NULL-Argument durchsetzt.</target>
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1988,13 +1988,13 @@
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsDescription">
<source>An externally visible method dereferences one of its reference arguments without verifying whether that argument is null (Nothing in Visual Basic). All reference arguments that are passed to externally visible methods should be checked against null. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument. If the method is designed to be called only by known assemblies, you should make the method internal.</source>
<target state="translated">Un método visible externamente desreferencia uno de sus argumentos de referencia sin comprobar si ese argumento es NULL (Nothing en Visual Basic). Todos los argumentos de referencia pasados a métodos visibles externamente deben comprobarse para ver si son NULL. Si procede, inicie una excepción ArgumentNullException cuando el argumento sea NULL o agregue una condición previa de contrato de código con aserción de un argumento no nulo. Si el método está diseñado para que solo lo llamen ensamblados conocidos, debería convertirlo en interno.</target>
<source>An externally visible method dereferences one of its reference arguments without verifying whether that argument is 'null' ('Nothing' in Visual Basic). All reference arguments that are passed to externally visible methods should be checked against 'null'. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. If the method is designed to be called only by known assemblies, you should make the method internal.</source>
<target state="needs-review-translation">Un método visible externamente desreferencia uno de sus argumentos de referencia sin comprobar si ese argumento es NULL (Nothing en Visual Basic). Todos los argumentos de referencia pasados a métodos visibles externamente deben comprobarse para ver si son NULL. Si procede, inicie una excepción ArgumentNullException cuando el argumento sea NULL o agregue una condición previa de contrato de código con aserción de un argumento no nulo. Si el método está diseñado para que solo lo llamen ensamblados conocidos, debería convertirlo en interno.</target>
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsMessage">
<source>In externally visible method '{0}', validate parameter '{1}' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.</source>
<target state="translated">En el método "{0}" visible externamente, valide que el parámetro "{1}" no es NULL antes de usarlo. Si procede, inicie una excepción ArgumentNullException cuando el argumento es NULL o agregue una condición previa de contrato de código con aserción de un argumento no nulo.</target>
<source>In externally visible method '{0}', validate parameter '{1}' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'.</source>
<target state="needs-review-translation">En el método "{0}" visible externamente, valide que el parámetro "{1}" no es NULL antes de usarlo. Si procede, inicie una excepción ArgumentNullException cuando el argumento es NULL o agregue una condición previa de contrato de código con aserción de un argumento no nulo.</target>
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1988,13 +1988,13 @@
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsDescription">
<source>An externally visible method dereferences one of its reference arguments without verifying whether that argument is null (Nothing in Visual Basic). All reference arguments that are passed to externally visible methods should be checked against null. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument. If the method is designed to be called only by known assemblies, you should make the method internal.</source>
<target state="translated">Une méthode visible de manière externe déréférence un de ses arguments de référence sans vérifier si cet argument a une valeur null (Nothing en Visual Basic). Tous les arguments de référence passés à des méthodes visibles de manière externe doivent faire l'objet d'une vérification permettant de déterminer s'ils ont une valeur null. Le cas échéant, ArgumentNullException doit être levé quand l'argument a une valeur null, ou vous devez ajouter une condition préalable au contrat de code pour garantir que l'argument a une valeur non null. Si la méthode est conçue pour être appelée uniquement par des assemblys connus, rendez la méthode interne.</target>
<source>An externally visible method dereferences one of its reference arguments without verifying whether that argument is 'null' ('Nothing' in Visual Basic). All reference arguments that are passed to externally visible methods should be checked against 'null'. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. If the method is designed to be called only by known assemblies, you should make the method internal.</source>
<target state="needs-review-translation">Une méthode visible de manière externe déréférence un de ses arguments de référence sans vérifier si cet argument a une valeur null (Nothing en Visual Basic). Tous les arguments de référence passés à des méthodes visibles de manière externe doivent faire l'objet d'une vérification permettant de déterminer s'ils ont une valeur null. Le cas échéant, ArgumentNullException doit être levé quand l'argument a une valeur null, ou vous devez ajouter une condition préalable au contrat de code pour garantir que l'argument a une valeur non null. Si la méthode est conçue pour être appelée uniquement par des assemblys connus, rendez la méthode interne.</target>
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsMessage">
<source>In externally visible method '{0}', validate parameter '{1}' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.</source>
<target state="translated">Dans la méthode '{0}' visible de manière externe, vérifiez que le paramètre '{1}' a une valeur non null avant de l'utiliser. Le cas échéant, ArgumentNullException doit être levé quand l'argument a une valeur null, ou vous devez ajouter une condition préalable au contrat de code pour garantir que l'argument a une valeur non null.</target>
<source>In externally visible method '{0}', validate parameter '{1}' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'.</source>
<target state="needs-review-translation">Dans la méthode '{0}' visible de manière externe, vérifiez que le paramètre '{1}' a une valeur non null avant de l'utiliser. Le cas échéant, ArgumentNullException doit être levé quand l'argument a une valeur null, ou vous devez ajouter une condition préalable au contrat de code pour garantir que l'argument a une valeur non null.</target>
<note />
</trans-unit>
<trans-unit id="ValidateArgumentsOfPublicMethodsTitle">
Expand Down
Loading