Files
codeql/csharp/ql/src/ASP/BlockCodeResponseWrite.ql
2025-06-17 09:56:43 +02:00

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()'."