mirror of
https://github.com/github/codeql.git
synced 2026-07-25 13:12:11 +02:00
18 lines
490 B
Plaintext
18 lines
490 B
Plaintext
/**
|
|
* @name Split control structure
|
|
* @description Splitting control structures across multiple code blocks makes .aspx pages more difficult to maintain.
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @precision medium
|
|
* @id cs/asp/split-control-structure
|
|
* @tags quality
|
|
* maintainability
|
|
* readability
|
|
*/
|
|
|
|
import semmle.code.asp.AspNet
|
|
|
|
from AspCode code
|
|
where exists(code.getBody().regexpFind("(Then|\\{)\\s*$", _, _))
|
|
select code, "Split control structure."
|