mirror of
https://github.com/github/codeql.git
synced 2026-05-15 03:39:32 +02:00
19 lines
525 B
Plaintext
19 lines
525 B
Plaintext
/**
|
|
* @name Block code with a single Response.Write()
|
|
* @description Embedded code blocks with a single 'Response.Write()' reduce the readability of the page.
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @precision high
|
|
* @id cs/asp/response-write
|
|
* @tags quality
|
|
* maintainability
|
|
* readability
|
|
* frameworks/asp.net
|
|
*/
|
|
|
|
import semmle.code.asp.AspNet
|
|
|
|
from AspBlockCode code
|
|
where code.getBody().trim().matches("Response.Write(%")
|
|
select code, "Non-inline code calls 'Response.Write()'."
|