rspec/rules/S1313/kotlin/rule.adoc

39 lines
621 B
Plaintext
Raw Normal View History

2020-06-30 12:47:33 +02:00
include::../description.adoc[]
include::../ask-yourself.adoc[]
include::../recommended.adoc[]
== Sensitive Code Example
----
val ip = "192.168.12.42"
val socket = ServerSocket(ip, 6667)
----
== Compliant Solution
----
val ip = System.getenv("myapplication.ip")
val socket = ServerSocket(ip, 6667)
----
include::../exceptions.adoc[]
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]