Skip to content

Commit 6f4e1f0

Browse files
Copilotsoftworkz
andcommitted
Simplify PATTERNS and add demo files with trailing whitespace
Co-authored-by: softworkz <4985349+softworkz@users.noreply.github.com>
1 parent 3090f44 commit 6f4e1f0

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

.github/workflows/trailing-whitespace-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
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)($|\/)"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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>

0 commit comments

Comments
 (0)