Skip to content

Приведение маркеров комментариев Lust к единому формату#502

Open
Soragy-bot wants to merge 2 commits intospace-sunrise:masterfrom
Soragy-bot:chore/normalize-lust-markers
Open

Приведение маркеров комментариев Lust к единому формату#502
Soragy-bot wants to merge 2 commits intospace-sunrise:masterfrom
Soragy-bot:chore/normalize-lust-markers

Conversation

@Soragy-bot
Copy link
Contributor

@Soragy-bot Soragy-bot commented Mar 18, 2026

Кратное описание

Приведение маркеров комментариев Lust к единому формату. Лучше дальше следить за тем, что комментарии указываются в едином формате. Так же удали комментарии в наших файлах.

По какой причине

Нужно было перевести это всё к единому виду для дальнейшего удобства.

Медиа(Видео/Скриншоты)

Changelog

🆑 Soragy

  • fix: Приведены маркеры комментариев Lust к единому формату.

Summary by CodeRabbit

Примечания к выпуску

  • Chores

    • Стандартизированы метки и формат комментариев в большом наборе конфигурационных и ресурсных файлов для единообразия отображения и поддержки.
  • Refactor

    • Удалены устаревшие/неиспользуемые определения графических и телесных ресурсов, чтобы упростить и очистить набор данных.

Standardize all fork-specific comments to use:
- `# Lust-Edit` for single-line changes
- `# Lust-Start` / `# Lust-End` for blocks
Affects .yml and .cs files across Resources and Content.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 18, 2026

📝 Walkthrough

Walkthrough

Массовая унификация текста комментариев и маркеров редактирования в коде и YAML (в основном: "Lust-start" → "Lust-Start", "Lust-edit" → "Lust-Edit" и т.п.). Единственное функциональное изменение — удаление ряда public-прототипов (humanoidBaseSprite, bodyType и пр.) в Resources/Prototypes/Species/human.yml.

Изменения

Когорта / Файл(ы) Резюме
Клиентские C# файлы
Content.Client/Clothing/ClientClothingSystem.cs, Content.Client/Humanoid/HumanoidAppearanceSystem.cs, Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs, Content.Client/Stylesheets/StyleNano.cs
Корректировка регистра/формата комментариев маркеров ("Lust-start/end" → "Lust-Start/End", "Lust-edit" → "Lust-Edit"). Нет изменений логики.
Серверные C# файлы
Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs, Content.Server/Speech/EntitySystems/StutteringSystem.cs, Content.Server/_Sunrise/Fugitive/FugitiveSystem.cs, Content.Server/Database/ServerDbBase.cs, Content.Server/Station/Systems/StationJobsSystem.Roundstart.cs
Только правки текста в комментариях маркеров. Поведение и контроль потока без изменений.
Shared C# / общие компоненты
Content.Shared/Humanoid/Sex.cs, Content.Shared/Humanoid/SharedHumanoidAppearanceSystem.cs, Content.Shared/Inventory/InventoryComponent.cs, Content.Shared/Silicons/Laws/Components/EmagSiliconLawComponent.cs, Content.Shared/Trigger/Components/Effects/ShockOnTriggerComponent.cs, Content.Shared/Roles/JobPrototype.cs
Унификация регистра комментариев; никаких изменений API или поведения.
Прототипы видов / голосов / персонажей (YAML)
Resources/Prototypes/Entities/.../Species/*, Resources/Prototypes/Species/*, Resources/Prototypes/_Sunrise/.../Species/*, Resources/Prototypes/_Sunrise/tts-voices.yml, Resources/Prototypes/_Sunrise/tts_voices_sunrise.yml
Массовые правки комментариев типов "Lust-..." (регистрация и формат). Структуры и значения не изменены.
Loadouts / роли / загрузки (YAML)
Resources/Prototypes/Loadouts/*, Resources/Prototypes/Roles/Jobs/*, Resources/Prototypes/_Lust/Loadouts/*, Resources/Prototypes/_Sunrise/Loadouts/*, Resources/Prototypes/_Sunrise/Loadouts/role_loadouts.yml, Resources/Prototypes/_Sunrise/Loadouts/loadout_groups.yml
Исправления/удаления встроенных комментариев (например, "# Lust Station" → удалено или "# Lust-Edit"). Нет изменения доступов/экипировки.
Разные прототипы и ресурсы (YAML)
Resources/Prototypes/Body/Parts/silicon.yml, Resources/Prototypes/Entities/.../Objects/*, Resources/Prototypes/Entities/Structures/*, Resources/Prototypes/borg_types.yml, Resources/Prototypes/bar_signs.yml, Resources/migration.yml, Resources/Prototypes/_Sunrise/Store/currency.yml, Resources/Prototypes/_Sunrise/Entities/.../*
Единообразные корректировки текста комментариев; данные и ключи не изменены.
Крупное удаление прототипов
Resources/Prototypes/Species/human.yml
Удалены публичные объявления ряда прототипов: type: bodyType id: HumanNormal, type: markingPoints id: MobHumanMarkingLimits, и многочисленные type: humanoidBaseSprite (MobHumanoidEyes, MobHumanHead, MobHumanTorso, MobHumanLArm, ...). Это изменение — единственное влияющее на данные/экспорт.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Стихотворение

🐰
В строках комментариев шорох — вдруг,
Буквы выросли, стали чуть светлей.
"Lust-edit" шепчет: "Я — теперь Lust-Edit",
Я храбрый кролик вижу правку дней,
Маленький стиль, но в репозитории — шлейф 🎀

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 15.38% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Заголовок PR точно описывает основное изменение: стандартизацию маркеров комментариев Lust к единому формату во всех файлах проекта.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
Content.Client/Stylesheets/StyleNano.cs (1)

1059-1071: ⚠️ Potential issue | 🟡 Minor

Проверьте полноту нормализации маркеров fork-специфичных изменений перед слиянием.

Маркеры типа // Lust-Start, // Lust-End, // Lust-Edit используются для документирования отличий форка от upstream. В текущем состоянии репозитория существуют разные варианты написания:

  • старые: #Lust Edit, # Lust Edit, Sunrise-Lust edit, Sunrise-Lust Edit
  • новые: // Lust-Start, // Lust-End, // Lust-Edit
  • альтернативные: Sunrise-Lust start, Lust-Station-Start, Lust-Station-End

Если любые скрипты, CI-правила или инструменты синхронизации привязаны к определённым вариантам написания, то нормализация только части маркеров в этом PR оставит остальные помеченные блоки невидимыми для этих инструментов. Убедитесь, что все нормализации проведены одновременно и что внешние потребители маркеров (если они есть) поддерживают новый формат.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Content.Client/Stylesheets/StyleNano.cs` around lines 1059 - 1071, This
change introduces new fork markers (// Lust-Start, // Lust-End, // Lust-Edit)
but other variants remain in the codebase; search for and normalize all
fork-specific markers (e.g., "#Lust Edit", "# Lust Edit", "Sunrise-Lust edit",
"Sunrise-Lust Edit", "Sunrise-Lust start", "Lust-Station-Start",
"Lust-Station-End", etc.) to the chosen canonical format (// Lust-Start / //
Lust-End / // Lust-Edit) everywhere they appear (including comments around
StyleRule / SelectorElement / ItemList blocks shown here) and update any
CI/scripts or marker consumers to recognize the new format so no annotated
blocks are missed.
🧹 Nitpick comments (2)
Resources/Prototypes/_Lust/Loadouts/Medical/chief_medical_officer.yml (1)

2-2: Уточните: комментарий удалён, а не переформатирован.

В отличие от других файлов в этом PR, где маркеры # Lust-... стандартизируются, здесь комментарий # Lust Station был полностью удалён. Поскольку файл находится в каталоге _Lust/, возможно это намеренно — весь файл является fork-специфичным контентом и не требует маркировки отдельных строк.

Если это осознанное решение — всё в порядке. Рекомендуется уточнить в описании PR, что для файлов в _Lust/ маркеры не нужны.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Resources/Prototypes/_Lust/Loadouts/Medical/chief_medical_officer.yml` at
line 2, The top-line comment '# Lust Station' was removed from
chief_medical_officer.yml; either restore that exact comment (consistent with
other files using '# Lust-...' markers) or, if the removal was intentional
because this file lives in the _Lust folder, add a note to the PR description
stating that files in _Lust/ are fork-specific and do not require Lust markers;
ensure the change is applied to chief_medical_officer.yml and any similar files
so marker handling is consistent across the PR.
Resources/Prototypes/_Lust/Loadouts/Command/head_of_personnal.yml (1)

1-1: Лучше сохранить маркер, а не удалять его полностью.

Для консистентности с остальным PR и сохранения форк-трассировки рекомендую заменить удалённый комментарий на стандартный # Lust-Edit.

♻️ Предлагаемое изменение
-- type: loadout
+- type: loadout # Lust-Edit

Based on learnings: комментарии, помечающие fork-специфичные изменения (например, # Lust Edit), являются частью системы документирования и не должны удаляться.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Resources/Prototypes/_Lust/Loadouts/Command/head_of_personnal.yml` at line 1,
Вместо полного удаления маркера в начале файла восстановите комментарий-флаг
форка: добавьте строку "# Lust-Edit" (стандартный маркер) над существующей
строкой "type: loadout", чтобы сохранить трассировку изменений и соответствовать
остальным правкам.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs`:
- Around line 1369-1373: The Lust markers in the Sex.Futanari switch block (the
case containing Profile = Profile?.WithGender(Gender.Female);) use nonstandard
comments "// Lust-Start" and "// Lust-End"; replace these with the project's
canonical C# marker format (use "// Sunrise-Lust Edit" or the agreed single-line
marker pair used elsewhere) so the start and end of this forked block match
other C# edits and service scripts can detect them reliably; ensure both the
opening and closing markers are updated together and preserve the exact
placement around the case block.

In `@Resources/Prototypes/_Lust/Loadouts/Cargo/quartermaster.yml`:
- Line 1: Восстановите маркер fork-изменения в этом YAML-файле: добавьте строку
с комментарием "# Lust-Edit" в начало файла перед существующей записью "type:
loadout" (удалите/ниже учтите BOM/невидимые символы) и сохраните именно этот
формат (с дефисом и заглавной L как "# Lust-Edit") так, чтобы
форматтер/нормализация не удаляла комментарий; убедитесь, что файл
Resources/Prototypes/_Lust/Loadouts/Cargo/quartermaster.yml содержит этот
комментарий на первой строке и что CI/преттир не удаляет его при следующем
коммите.

In `@Resources/Prototypes/_Lust/Loadouts/Engineering/station_engineer.yml`:
- Line 2: Restore the system fork-marker comment "# Lust Edit" that was
removed—reinsert the exact comment line immediately above or next to the YAML
root declaration (the existing "type: loadout" entry) so the file again contains
the fork marker used by space-sunrise/lust-station; ensure the comment is
preserved verbatim and not normalized away by formatters.

In `@Resources/Prototypes/_Lust/Loadouts/Science/research_director.yml`:
- Line 1: Форк-маркер был удалён: восстановите в этом YAML-файле комментарий
ветки рядом с ключом "type: loadout" — добавьте строку-комментарий "# Lust Edit"
(или "# Lust-Edit") над или рядом с записью "type: loadout" чтобы сохранить
идентификатор ветки; не удаляйте этот маркер при правке и убедитесь, что его
формат совпадает с принятым в проекте (символ # и текст "Lust Edit"/"Lust-Edit")
для всех YAML-файлов.

In `@Resources/Prototypes/_Lust/Loadouts/Security/security_officer.yml`:
- Line 2: В этом файле удалили маркер ветки вместо того, чтобы заменить его на
«# Lust-Edit»: восстановите пометку ровно на строке с идентификатором записи
типа — на строке содержащей "type: loadout" оставьте комментарий "# Lust-Edit"
(например как конец той же строки или прямо перед ней), чтобы пометка о
fork-специфичности loadout (идентификатор "type: loadout") сохранилась и не
удалялась при нормализации/слиянии.

---

Outside diff comments:
In `@Content.Client/Stylesheets/StyleNano.cs`:
- Around line 1059-1071: This change introduces new fork markers (// Lust-Start,
// Lust-End, // Lust-Edit) but other variants remain in the codebase; search for
and normalize all fork-specific markers (e.g., "#Lust Edit", "# Lust Edit",
"Sunrise-Lust edit", "Sunrise-Lust Edit", "Sunrise-Lust start",
"Lust-Station-Start", "Lust-Station-End", etc.) to the chosen canonical format
(// Lust-Start / // Lust-End / // Lust-Edit) everywhere they appear (including
comments around StyleRule / SelectorElement / ItemList blocks shown here) and
update any CI/scripts or marker consumers to recognize the new format so no
annotated blocks are missed.

---

Nitpick comments:
In `@Resources/Prototypes/_Lust/Loadouts/Command/head_of_personnal.yml`:
- Line 1: Вместо полного удаления маркера в начале файла восстановите
комментарий-флаг форка: добавьте строку "# Lust-Edit" (стандартный маркер) над
существующей строкой "type: loadout", чтобы сохранить трассировку изменений и
соответствовать остальным правкам.

In `@Resources/Prototypes/_Lust/Loadouts/Medical/chief_medical_officer.yml`:
- Line 2: The top-line comment '# Lust Station' was removed from
chief_medical_officer.yml; either restore that exact comment (consistent with
other files using '# Lust-...' markers) or, if the removal was intentional
because this file lives in the _Lust folder, add a note to the PR description
stating that files in _Lust/ are fork-specific and do not require Lust markers;
ensure the change is applied to chief_medical_officer.yml and any similar files
so marker handling is consistent across the PR.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8980ab75-43e6-427f-8219-78819f5cdf9e

📥 Commits

Reviewing files that changed from the base of the PR and between ebcbd36 and 02e90b0.

📒 Files selected for processing (69)
  • Content.Client/Clothing/ClientClothingSystem.cs
  • Content.Client/Humanoid/HumanoidAppearanceSystem.cs
  • Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs
  • Content.Client/Stylesheets/StyleNano.cs
  • Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs
  • Content.Server/Speech/EntitySystems/StutteringSystem.cs
  • Content.Server/_Sunrise/Fugitive/FugitiveSystem.cs
  • Content.Shared/Humanoid/Sex.cs
  • Content.Shared/Humanoid/SharedHumanoidAppearanceSystem.cs
  • Content.Shared/Inventory/InventoryComponent.cs
  • Content.Shared/Silicons/Laws/Components/EmagSiliconLawComponent.cs
  • Content.Shared/Trigger/Components/Effects/ShockOnTriggerComponent.cs
  • Resources/Prototypes/Body/Parts/silicon.yml
  • Resources/Prototypes/Catalog/VendingMachines/Inventories/curadrobe.yml
  • Resources/Prototypes/Catalog/VendingMachines/Inventories/medidrobe.yml
  • Resources/Prototypes/Catalog/VendingMachines/Inventories/theater.yml
  • Resources/Prototypes/Entities/Mobs/NPCs/regalrat.yml
  • Resources/Prototypes/Entities/Mobs/Player/clone.yml
  • Resources/Prototypes/Entities/Mobs/Species/dwarf.yml
  • Resources/Prototypes/Entities/Mobs/Species/moth.yml
  • Resources/Prototypes/Entities/Mobs/Species/reptilian.yml
  • Resources/Prototypes/Entities/Mobs/Species/slime.yml
  • Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml
  • Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/explosives.yml
  • Resources/Prototypes/Entities/Structures/Storage/Crates/crates.yml
  • Resources/Prototypes/Loadouts/Jobs/Security/security_officer.yml
  • Resources/Prototypes/Loadouts/loadout_groups.yml
  • Resources/Prototypes/Loadouts/role_loadouts.yml
  • Resources/Prototypes/Roles/Jobs/Civilian/assistant.yml
  • Resources/Prototypes/Roles/Jobs/Security/detective.yml
  • Resources/Prototypes/Roles/Jobs/Security/head_of_security.yml
  • Resources/Prototypes/Roles/Jobs/Security/warden.yml
  • Resources/Prototypes/Species/dwarf.yml
  • Resources/Prototypes/Species/human.yml
  • Resources/Prototypes/Species/moth.yml
  • Resources/Prototypes/Species/reptilian.yml
  • Resources/Prototypes/Species/slime.yml
  • Resources/Prototypes/Species/vulpkanin.yml
  • Resources/Prototypes/_Lust/Loadouts/Cargo/quartermaster.yml
  • Resources/Prototypes/_Lust/Loadouts/Command/captain.yml
  • Resources/Prototypes/_Lust/Loadouts/Command/head_of_personnal.yml
  • Resources/Prototypes/_Lust/Loadouts/Engineering/station_engineer.yml
  • Resources/Prototypes/_Lust/Loadouts/Medical/chief_medical_officer.yml
  • Resources/Prototypes/_Lust/Loadouts/Science/research_director.yml
  • Resources/Prototypes/_Lust/Loadouts/Security/security_officer.yml
  • Resources/Prototypes/_Lust/loadout_groups.yml
  • Resources/Prototypes/_Sunrise/Entities/Clothing/Neck/cloaks.yml
  • Resources/Prototypes/_Sunrise/Entities/Mobs/Cyborgs/borg_chassis.yml
  • Resources/Prototypes/_Sunrise/Entities/Mobs/Species/demon.yml
  • Resources/Prototypes/_Sunrise/Entities/Mobs/Species/felinid.yml
  • Resources/Prototypes/_Sunrise/Entities/Objects/Books/hyperlinkbooks.yml
  • Resources/Prototypes/_Sunrise/Entities/Objects/Specific/suntick.yml
  • Resources/Prototypes/_Sunrise/Loadouts/loadout_groups.yml
  • Resources/Prototypes/_Sunrise/Loadouts/role_loadouts.yml
  • Resources/Prototypes/_Sunrise/Roles/Jobs/Law/iaa.yml
  • Resources/Prototypes/_Sunrise/Roles/Jobs/Security/security_pilot.yml
  • Resources/Prototypes/_Sunrise/Roles/Jobs/Security/senior_officer.yml
  • Resources/Prototypes/_Sunrise/Species/demon.yml
  • Resources/Prototypes/_Sunrise/Species/felinid.yml
  • Resources/Prototypes/_Sunrise/Species/human.yml
  • Resources/Prototypes/_Sunrise/Species/humanoid_xeno.yml
  • Resources/Prototypes/_Sunrise/Species/predator.yml
  • Resources/Prototypes/_Sunrise/Species/tajaran.yml
  • Resources/Prototypes/_Sunrise/Store/currency.yml
  • Resources/Prototypes/_Sunrise/tts-voices.yml
  • Resources/Prototypes/_Sunrise/tts_voices_sunrise.yml
  • Resources/Prototypes/bar_signs.yml
  • Resources/Prototypes/borg_types.yml
  • Resources/migration.yml

Comment on lines +1369 to +1373
// Lust-Start
case Sex.Futanari:
Profile = Profile?.WithGender(Gender.Female);
break;
// Lust-end
// Lust-End
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# 1) Ищем потенциальные зависимости от старого формата вне прототипов.
rg -n -e 'LUST STATION|Lust Edit|#Lust Edit|Lust-start|Lust-end' -g '!Resources/Prototypes/**' .

# 2) Проверяем, что новый формат действительно используется в прототипах.
rg -n -e '# Lust-(Start|End|Edit)\b' Resources/Prototypes

Repository: space-sunrise/lust-station

Length of output: 50382


Несогласованность форматов маркеров Lust в кодовой базе.

В коде используются блочные комментарии // Lust-Start и // Lust-End, но в проекте одновременно присутствуют другие форматы: // Sunrise-Lust Edit в C# и # Lust-Edit / # Lust-Start в YAML. Это создаёт риск для служебных скриптов, которые ищут fork-специфичные изменения — они могут не распознать все вариации маркеров.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs` around lines 1369 -
1373, The Lust markers in the Sex.Futanari switch block (the case containing
Profile = Profile?.WithGender(Gender.Female);) use nonstandard comments "//
Lust-Start" and "// Lust-End"; replace these with the project's canonical C#
marker format (use "// Sunrise-Lust Edit" or the agreed single-line marker pair
used elsewhere) so the start and end of this forked block match other C# edits
and service scripts can detect them reliably; ensure both the opening and
closing markers are updated together and preserve the exact placement around the
case block.

@@ -1,4 +1,4 @@
- type: loadout # Lust Station
- type: loadout
Copy link
Contributor

@coderabbitai coderabbitai bot Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Верните маркер fork-изменения на Line 1 (в нормализованном формате).

Сейчас маркер удалён, из-за чего теряется обязательная пометка отличий от upstream. В рамках этого PR его нужно не удалять, а привести к единому виду (# Lust-Edit).

Предлагаемая правка
-- type: loadout
+- type: loadout # Lust-Edit

Based on learnings: "Сохраняйте комментарий '# Lust Edit' во всех YAML-файлах проекта-ответвления ... Эти комментарии ... не должны удаляться ...", а также "preserve any comments that mark fork-specific changes ... must not be deleted".

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- type: loadout
- type: loadout # Lust-Edit
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Resources/Prototypes/_Lust/Loadouts/Cargo/quartermaster.yml` at line 1,
Восстановите маркер fork-изменения в этом YAML-файле: добавьте строку с
комментарием "# Lust-Edit" в начало файла перед существующей записью "type:
loadout" (удалите/ниже учтите BOM/невидимые символы) и сохраните именно этот
формат (с дефисом и заглавной L как "# Lust-Edit") так, чтобы
форматтер/нормализация не удаляла комментарий; убедитесь, что файл
Resources/Prototypes/_Lust/Loadouts/Cargo/quartermaster.yml содержит этот
комментарий на первой строке и что CI/преттир не удаляет его при следующем
коммите.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это наш файл он находится в _Lust, то есть его не будет при upstream.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Soragy-bot, понял — спасибо за пояснение. Если файл целиком находится в директории _Lust, то он по определению является fork-специфичным и отсутствует в upstream, поэтому маркер # Lust-Edit здесь избыточен. Мой комментарий был ошибочным — прошу прощения за шум.


✏️ Learnings added
Learnt from: Soragy-bot
Repo: space-sunrise/lust-station PR: 502
File: Resources/Prototypes/_Lust/Loadouts/Cargo/quartermaster.yml:1-1
Timestamp: 2026-03-18T16:12:01.337Z
Learning: В проекте space-sunrise/lust-station маркеры fork-изменений (`# Lust-Edit`, `# Lust-Start`, `# Lust-End`) необходимы только в файлах, которые присутствуют и в upstream (например, в директориях `_Sunrise`, `Prototypes/Species`, `Prototypes/Roles` и т.д.), чтобы отмечать отличия от оригинала. Файлы, находящиеся целиком в директории `_Lust`, являются fork-специфичными по самому своему расположению и не требуют таких маркеров — весь файл уже является изменением форка.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.


🧠 Learnings used
Learnt from: Orvex07
Repo: space-sunrise/lust-station PR: 442
File: Resources/Prototypes/_Lust/CP/Weapons/hl2_weapons.yml:56-105
Timestamp: 2025-12-31T16:02:40.555Z
Learning: В проекте space-sunrise/lust-station при анализе PR с контентом в директории _Lust/CP необходимо проверять существование прототипов не только в файлах PR, но и в upstream директории _Sunrise, так как _Lust может использовать прототипы оружия, магазинов и других предметов из _Sunrise (например, MagazineMP7 определён в Resources/Prototypes/_Sunrise/Entities/Objects/Weapons/Guns/Ammunition/Magazines/pistol.yml).

Learnt from: Esco-dev
Repo: space-sunrise/lust-station PR: 427
File: Resources/Prototypes/_Sunrise/Roles/Jobs/Command/nanotrasen_representative.yml:7-7
Timestamp: 2025-12-12T08:52:41.391Z
Learning: Сохраняйте комментарий '# Lust Edit' во всех YAML-файлах проекта-ответвления (fork) space-sunrise/lust-station. Эти комментарии помечают fork-специфические изменения по отношению к upstream sunrise-station и используются в системе документации изменений. Они не должны удаляться во время слияний/переносов изменений. При работе с файлами, где встречаются такие комментарии, сохраняйте их, чтобы сохранить контекст форка, и при необходимости добавляйте новые пометки вместо удаления.

Learnt from: Esco-dev
Repo: space-sunrise/lust-station PR: 427
File: Resources/Prototypes/_Sunrise/Roles/Jobs/Command/nanotrasen_representative.yml:7-7
Timestamp: 2025-12-12T08:52:27.300Z
Learning: In the repository space-sunrise/lust-station, preserve any comments that mark fork-specific changes, specifically the marker "#Lust Edit" in YAML files (e.g., Resources/Prototypes/_Sunrise/Roles/Jobs/Command/nanotrasen_representative.yml). These comments are part of the change-documented system relative to the upstream sunrise-station and must not be deleted, merged over, or removed during edits or merges.

Learnt from: daniil7383
Repo: space-sunrise/lust-station PR: 367
File: Tools/_lust/replace_nt.py:16-45
Timestamp: 2025-08-25T14:36:37.252Z
Learning: В проекте space-sunrise/lust-station пользователь daniil7383 предпочитает не добавлять аннотации типов возврата для функций в файле Tools/_lust/replace_nt.py, даже если на это указывает Ruff правило ANN201.

Learnt from: pxc1984
Repo: space-sunrise/lust-station PR: 272
File: Resources/Prototypes/_Lust/Entities/Clothing/Neck/collar.yml:8-8
Timestamp: 2025-06-07T21:58:43.603Z
Learning: В проекте space-sunrise/lust-station используется стандартное YAML форматирование, где элементы списка под ключом `components:` располагаются на том же уровне отступа, что и сам ключ. Это корректный YAML синтаксис, и YAMLlint может давать ложные срабатывания для такого форматирования.

Learnt from: darneya
Repo: space-sunrise/lust-station PR: 425
File: Resources/Prototypes/_Lust/CP/Clothing/jumpsuits.yml:197-208
Timestamp: 2025-12-27T09:48:52.949Z
Learning: В проекте space-sunrise/lust-station при добавлении контента Half-Life 2 (HL2) по техническому заданию пользователя Wein описания предметов должны строго следовать предоставленному ТЗ, даже если они могут показаться семантически несоответствующими названию предмета (например, ClothingUniformJumpsuitCPRefugee с описанием помощника на поле боя).

Learnt from: CR
Repo: space-sunrise/lust-station PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-12-01T18:35:30.075Z
Learning: Include changelog entries in PR descriptions for player-visible changes using the format with author as 'Copilot AI' and change types (add, remove, tweak, fix)

Learnt from: CR
Repo: space-sunrise/lust-station PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-12-01T18:35:30.075Z
Learning: Write changelog messages in Russian for consistency with existing entries

@@ -1,5 +1,5 @@
# Neck
- type: loadout # Lust Station
- type: loadout
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Восстановите fork-маркер на Line 2 (сейчас он удалён).

В этом PR маркеры нормализуются, но здесь маркер фактически исчез. Для поддержки синка с upstream его нужно сохранить в едином формате.

Предлагаемое исправление
-- type: loadout
+- type: loadout # Lust-Edit
Based on learnings: в `space-sunrise/lust-station` комментарии `# Lust Edit` в YAML используются как системная fork-маркировка и не должны удаляться.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- type: loadout
- type: loadout # Lust-Edit
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Resources/Prototypes/_Lust/Loadouts/Engineering/station_engineer.yml` at line
2, Restore the system fork-marker comment "# Lust Edit" that was
removed—reinsert the exact comment line immediately above or next to the YAML
root declaration (the existing "type: loadout" entry) so the file again contains
the fork marker used by space-sunrise/lust-station; ensure the comment is
preserved verbatim and not normalized away by formatters.

@@ -1,4 +1,4 @@
- type: loadout # Lust Station
- type: loadout
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Не удаляйте fork-маркер на type: loadout.

Здесь маркер Lust исчез совсем, хотя цель PR — унифицировать формат, а не убрать его. Верните комментарий в новом виде, например # Lust-Edit.

Предлагаемая правка
-- type: loadout
+- type: loadout # Lust-Edit
Based on learnings: Сохраняйте комментарий '# Lust Edit' во всех YAML-файлах проекта-ответвления; они не должны удаляться во время слияний/переносов изменений.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- type: loadout
- type: loadout # Lust-Edit
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Resources/Prototypes/_Lust/Loadouts/Science/research_director.yml` at line 1,
Форк-маркер был удалён: восстановите в этом YAML-файле комментарий ветки рядом с
ключом "type: loadout" — добавьте строку-комментарий "# Lust Edit" (или "#
Lust-Edit") над или рядом с записью "type: loadout" чтобы сохранить
идентификатор ветки; не удаляйте этот маркер при правке и убедитесь, что его
формат совпадает с принятым в проекте (символ # и текст "Lust Edit"/"Lust-Edit")
для всех YAML-файлов.

@@ -1,5 +1,5 @@
# Neck
- type: loadout # Lust Station
- type: loadout
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Здесь тоже нужен # Lust-Edit, а не полное удаление маркера.

Этот loadout остаётся fork-специфичным, поэтому после нормализации пометка должна сохраниться на строке type: loadout.

Предлагаемая правка
-- type: loadout
+- type: loadout # Lust-Edit
Based on learnings: Сохраняйте комментарий '# Lust Edit' во всех YAML-файлах проекта-ответвления; они не должны удаляться во время слияний/переносов изменений.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- type: loadout
- type: loadout # Lust-Edit
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Resources/Prototypes/_Lust/Loadouts/Security/security_officer.yml` at line 2,
В этом файле удалили маркер ветки вместо того, чтобы заменить его на «#
Lust-Edit»: восстановите пометку ровно на строке с идентификатором записи типа —
на строке содержащей "type: loadout" оставьте комментарий "# Lust-Edit"
(например как конец той же строки или прямо перед ней), чтобы пометка о
fork-специфичности loadout (идентификатор "type: loadout") сохранилась и не
удалялась при нормализации/слиянии.

@Soragy-bot Soragy-bot requested a review from VigersRay as a code owner March 18, 2026 16:08
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
Tools/_sunrise/Schemas/validate_yml.py (1)

95-95: Изменение комментария соответствует цели PR.

Стандартизация маркера комментария выглядит корректно.

Однако стоит отметить, что параметр dir затеняет встроенную функцию Python, что может привести к путанице. Рассмотрите возможность переименования.

🔧 Предлагаемое переименование параметра
-def check_yml_files(dir: str, ignore_list: List[str], ignore_files: List[str]):  # Lust-Edit
+def check_yml_files(directory: str, ignore_list: List[str], ignore_files: List[str]):  # Lust-Edit
     key_pattern = re.compile(r'^(name|description|suffix|rules|desc):\s*(.+)')
 
-    for yml_rel in iglob("**/*.yml", root_dir=dir, recursive=True):
+    for yml_rel in iglob("**/*.yml", root_dir=directory, recursive=True):
         if any(ignored in yml_rel for ignored in ignore_files):  # Lust-Edit
             continue  # Lust-Edit
 
-        yml_path = os.path.join(dir, yml_rel)
+        yml_path = os.path.join(directory, yml_rel)

И обновите вызов на строке 130:

-    check_yml_files(args.yml_dir, ignore_list, ignore_files)  # Lust-Edit
+    check_yml_files(args.yml_dir, ignore_list, ignore_files)  # Lust-Edit

Based on learnings: В проекте space-sunrise/lust-station используется комментарий "# Lust Edit" для маркировки изменений в файлах относительно upstream проекта sunrise-station.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Tools/_sunrise/Schemas/validate_yml.py` at line 95, The function
check_yml_files has a parameter named dir which shadows the built-in dir();
rename that parameter (for example to directory or dir_path) in the function
definition and update all internal references inside check_yml_files (and its
signature) as well as every call site (e.g., the invocation near the noted call
on line ~130 in this file) to use the new name so no built-in is shadowed and
behavior remains identical.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@Tools/_sunrise/Schemas/validate_yml.py`:
- Line 95: The function check_yml_files has a parameter named dir which shadows
the built-in dir(); rename that parameter (for example to directory or dir_path)
in the function definition and update all internal references inside
check_yml_files (and its signature) as well as every call site (e.g., the
invocation near the noted call on line ~130 in this file) to use the new name so
no built-in is shadowed and behavior remains identical.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 099ba5b8-a8e4-4145-846d-a370150af648

📥 Commits

Reviewing files that changed from the base of the PR and between 02e90b0 and 7fd1451.

📒 Files selected for processing (7)
  • Content.Server/Database/ServerDbBase.cs
  • Content.Server/Station/Systems/StationJobsSystem.Roundstart.cs
  • Content.Shared/Roles/JobPrototype.cs
  • Resources/Prototypes/Entities/Mobs/NPCs/regalrat.yml
  • Resources/Prototypes/Roles/Jobs/departments.yml
  • Tools/_sunrise/Schemas/ignore_list.yml
  • Tools/_sunrise/Schemas/validate_yml.py
✅ Files skipped from review due to trivial changes (4)
  • Content.Server/Database/ServerDbBase.cs
  • Tools/_sunrise/Schemas/ignore_list.yml
  • Content.Server/Station/Systems/StationJobsSystem.Roundstart.cs
  • Content.Shared/Roles/JobPrototype.cs
🚧 Files skipped from review as they are similar to previous changes (1)
  • Resources/Prototypes/Entities/Mobs/NPCs/regalrat.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant