We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b17ab commit d7864abCopy full SHA for d7864ab
.github/workflows/check-rust-examples.yml
@@ -424,7 +424,8 @@ jobs:
424
LEGACY_COUNT=0
425
LEGACY_FILES=""
426
427
- for file in $(find src/coding-guidelines -name "*.rst" 2>/dev/null); do
+ # Check both .rst and .rst.inc files (per-guideline structure uses .rst.inc)
428
+ for file in $(find src/coding-guidelines \( -name "*.rst" -o -name "*.rst.inc" \) 2>/dev/null); do
429
COUNT=$(grep -c "^\s*\.\. code-block:: rust" "$file" 2>/dev/null || echo 0)
430
if [ "$COUNT" -gt 0 ]; then
431
LEGACY_FILES="$LEGACY_FILES\n- $file: $COUNT occurrences"
0 commit comments