rspec/rules/S4823/csharp/rule.adoc

52 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-06-30 12:49:37 +02:00
include::../description.adoc[]
include::../ask-yourself.adoc[]
include::../recommended.adoc[]
== Sensitive Code Example
----
namespace MyNamespace
{
class Program
{
static void Main(string[] args) // Sensitive if there is a reference to "args" in the method.
{
string myarg = args[0];
// ...
}
}
}
----
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
=== Highlighting
main: command line parameter in the ``++Main++`` method prototype
secondaries: references to ``++args++``.
'''
== Comments And Links
(visible only on this page)
=== on 16 Oct 2018, 15:46:03 Nicolas Harraudeau wrote:
*Implementation details*:
An issue should be created if and only if ``++args++`` is used in the ``++Main++`` function. The issue should be created on the ``++Main++`` function prototype, with a highlight on the ``++args++`` parameter.
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]