Files
Rules/.cursor/rules/powershell-spec.mdc
T
PapaTramp 40aee1d3ef rules: file encoding for PowerShell (Windows) and shell (Linux)
Add alwaysApply file-encoding rule, shell-spec, .editorconfig and .gitattributes templates so agents save .ps1 as UTF-8 BOM+CRLF and .sh as UTF-8+LF; document runtime JSON/spool without BOM.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 09:17:43 +10:00

17 lines
820 B
Plaintext

---
description: Компактный PowerShell в выводе агента
globs: **/*.{ps1,psm1}
alwaysApply: false
---
# PowerShell — компактный вывод
- Pipeline вместо многострочных `foreach`, где читаемо.
- Без comment-based help и лишних `Write-Host`, если не просили UI/логи.
- Не дублируй длинные CLI-аргументы целиком — placeholder или переменная.
- Сохраняй стиль и алиасы **существующего файла**; не навязывай `gc`/`gci` если в проекте полные имена.
## Кодировка и EOL
См. **`file-encoding.mdc`**: `.ps1` — **UTF-8 with BOM**, **CRLF**; runtime JSON/spool на диск — **UTF-8 без BOM**.