Skip to content

Commit e4c2df7

Browse files
authored
Fix bite sized regex in Check.ps1 (#3)
Check.ps1 uses bite sized to check the line lengths in the generated code. The call excludes any lines containing regexes. However, the regex used for this exception does not account for interpolated strings. Hence, we extend the regex accordingly. Note: this deliberately does not account for all possibilities to define strings in C#. Currently, the code only contains "plain" strings and interpolated strings.)
1 parent 7ae525c commit e4c2df7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Check.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function Main
2828
--inputs "AasCore.*/*.cs" `
2929
--max-line-length 200 `
3030
--max-lines-in-file 100000 `
31-
--ignore-lines-matching '^ +var [a-zA-Z0-9_]+ = ".+";'
31+
--ignore-lines-matching '^ +var [a-zA-Z0-9_]+ = \$?".+";'
3232

3333
Write-Host "${nl}Check.ps1: Inspecting the code with opinionated-usings...${nl}"
3434
dotnet opinionated-usings --inputs "AasCore.*/*.cs"

0 commit comments

Comments
 (0)