File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 fi
3434
3535 # File patterns to check (text files)
36- PATTERNS="\.cs$|\.csproj$|\.sln$|\.json$|\.yml$|\.yaml$|\.md$|\.sh$|\.ps1$|\.cmd$|\.txt$|\.xml$|\.config$|\.props$|\.targets$|\.js$|\. ts$|\.html$|\.css$|\.scss$"
36+ PATTERNS="\.cs$|\.csproj$|\.sln$|\.ts$|\.html$|\.css$|\.scss$"
3737
3838 # Directories and file patterns to exclude
3939 EXCLUDE_PATTERNS="(^|\/)(\.|node_modules|bin|obj|artifacts|packages|\.vs|\.nuke\/temp)($|\/)"
Original file line number Diff line number Diff line change 1+ using System ;
2+
3+ namespace ElectronNET . TestDemo
4+ {
5+ /// <summary>
6+ /// This is a demo class to test trailing whitespace detection.
7+ /// </summary>
8+ public class TrailingWhitespaceDemo
9+ {
10+ // This line has trailing spaces at the end
11+ private string demoField ;
12+
13+ public TrailingWhitespaceDemo ( )
14+ {
15+ demoField = "Hello World" ;
16+ }
17+
18+ public void DemoMethod ( )
19+ {
20+ Console . WriteLine ( "This demonstrates the trailing whitespace check." ) ;
21+ // The workflow will detect these trailing spaces
22+ }
23+ }
24+ }
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < title > Trailing Whitespace Test</ title >
6+ </ head >
7+ < body >
8+ < h1 > Demo Page</ h1 >
9+ < p > This file has trailing whitespace to demonstrate the check.</ p >
10+ < div class ="container ">
11+ < span > Content here</ span >
12+ </ div >
13+ </ body >
14+ </ html >
You can’t perform that action at this time.
0 commit comments