FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/csharp/ql/src/ASP/SplitControlStructure.ql at codeql-cli/v2.27.1 · github/codeql · GitHub
github
codeql
Repository navigation
Code
Issues
1k
(1k)
Pull requests
485
(485)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
csharp
/
ql
/
src
/
ASP
/
SplitControlStructure.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (15 loc) · 490 Bytes
Breadcrumbs
codeql
/
csharp
/
ql
/
src
/
ASP
/
SplitControlStructure.ql
Copy path
File metadata and controls
17 lines (15 loc) · 490 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
* @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."
Back
|
FazBrowse Home
|
New Git URL