Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"words": [
"Anson",
"Blockquotes",
"buildnotes",
"camelcase",
"CodeQL",
"copilot",
Expand Down
25 changes: 23 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
.vs
*.bak
# Visual Studio
.vs/
*.suo
*.user
*.userosscache
*.sln.docstates
*.userprefs

# Visual Studio Code
.vscode/*
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/settings.json

# JetBrains Rider
.idea/
*.sln.iml

# Build results
bin/
obj/
TestResults/
Expand All @@ -17,12 +33,17 @@ coverage/

# Temporary files
*.tmp
*.bak
.DS_Store
*~

# Node.js dependencies
node_modules/
package-lock.json

# Agent communication files
AGENT_REPORT_*.md

# Generated documentation
docs/*.pdf
docs/guide/*.html
Expand Down
16 changes: 16 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Markdown linting configuration for markdownlint-cli2
"config": {
"default": true,
"MD003": { "style": "atx" },
"MD007": { "indent": 2 },
"MD013": { "line_length": 120 },
"MD033": false,
"MD041": false
},
// Ignore patterns
"ignores": [
"node_modules",
"AGENT_REPORT_*.md"
]
}
8 changes: 0 additions & 8 deletions .markdownlint.json

This file was deleted.

6 changes: 3 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build",
"--configuration",
"Release",
"${workspaceFolder}/DemaConsulting.SonarMark.sln"
"${workspaceFolder}/DemaConsulting.SonarMark.slnx"
],
"problemMatcher": "$msCompile",
"group": {
Expand All @@ -29,7 +29,7 @@
"test",
"--configuration",
"Release",
"${workspaceFolder}/DemaConsulting.SonarMark.sln"
"${workspaceFolder}/DemaConsulting.SonarMark.slnx"
],
"problemMatcher": "$msCompile",
"group": {
Expand Down Expand Up @@ -136,7 +136,7 @@
"Release",
"--collect",
"XPlat Code Coverage",
"${workspaceFolder}/DemaConsulting.SonarMark.sln"
"${workspaceFolder}/DemaConsulting.SonarMark.slnx"
],
"problemMatcher": "$msCompile",
"presentation": {
Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ All markdown files must follow these rules (enforced by markdownlint):
- Lists must be surrounded by blank lines
- Use reference-style links: `[text][ref]` with `[ref]: url` at document end
- **Exception**: `README.md` uses absolute URLs (it's included in the NuGet package)
- **Exception**: Agent markdown files in `.github/agents/*.md` use inline links `[text](url)` for visibility in agent
context

### Spell Checking

Expand Down Expand Up @@ -204,7 +206,7 @@ Run all linters to ensure code quality and consistency:

```bash
# Markdown linting
npx markdownlint-cli2 "**/*.md" "#node_modules"
npx markdownlint-cli2

# Spell checking
npx cspell "**/*.{md,cs}" --no-progress
Expand Down
31 changes: 0 additions & 31 deletions DemaConsulting.SonarMark.sln

This file was deleted.

4 changes: 4 additions & 0 deletions DemaConsulting.SonarMark.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Solution>
<Project Path="src/DemaConsulting.SonarMark/DemaConsulting.SonarMark.csproj" />
<Project Path="test/DemaConsulting.SonarMark.Tests/DemaConsulting.SonarMark.Tests.csproj" />
</Solution>
2 changes: 1 addition & 1 deletion lint.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
REM Run all linters for SonarMark (Windows)

echo Checking markdown...
call npx markdownlint-cli2 "**/*.md" "#node_modules"
call npx markdownlint-cli2
if %errorlevel% neq 0 exit /b %errorlevel%

echo Checking spelling...
Expand Down
2 changes: 1 addition & 1 deletion lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e # Exit on error

echo "📝 Checking markdown..."
npx markdownlint-cli2 "**/*.md" "#node_modules"
npx markdownlint-cli2

echo "🔤 Checking spelling..."
npx cspell "**/*.{cs,md,json,yaml,yml}" --no-progress
Expand Down
Loading