rspec/rules/S1542/tsql/rule.adoc

57 lines
673 B
Plaintext
Raw Normal View History

2020-06-30 12:47:33 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
CREATE PROCEDURE sp_PrintMagicNumber
AS
BEGIN
PRINT 42
END
GO
CREATE FUNCTION MagicNumber()
RETURNS INT
AS
BEGIN
RETURN 42
END
GO
----
== Compliant Solution
----
CREATE PROCEDURE usp_PrintMagicNumber
AS
BEGIN
PRINT 42
END
GO
CREATE FUNCTION fn_MagicNumber()
RETURNS INT
AS
BEGIN
RETURN 42
END
GO
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../parameters.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]