-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Инспектор #324
Инспектор #324
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -91,7 +91,7 @@ public WriteToTargetIdMessage(string fullName, string jobTitle, List<ProtoId<Acc | |||||||||||||||||
"Zookeeper", // DeltaV - Add Zookeeper access | ||||||||||||||||||
"ChiefJustice", // DeltaV - Add Chief Justice access | ||||||||||||||||||
"Justice", // DeltaV - Add Justice access | ||||||||||||||||||
"Prosecutor", // Delta V - Add Prosecutor access | ||||||||||||||||||
"Inspector", // LPP - Add inspector access | ||||||||||||||||||
"EVA", // lpp | ||||||||||||||||||
"Gateway", // lpp | ||||||||||||||||||
"LPPExpeditor", // lpp | ||||||||||||||||||
Comment on lines
+94
to
97
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Рекомендуется унифицировать стиль комментариев Для поддержания единообразия кодовой базы предлагается привести комментарии к общему стилю: - "Inspector", // LPP - Add inspector access
- "EVA", // lpp
- "Gateway", // lpp
- "LPPExpeditor", // lpp
+ "Inspector", // LPP: Add Inspector access
+ "EVA", // LPP: External access
+ "Gateway", // LPP: Gateway access
+ "LPPExpeditor", // LPP: Expeditor access 📝 Committable suggestion
Suggested change
💡 Codebase verification Обнаружены остаточные упоминания роли Прокурора В системе все еще присутствуют файлы, содержащие упоминания роли Прокурора, которые необходимо обновить:
Необходимо заменить все упоминания "Prosecutor" на "Inspector" в указанных файлах для обеспечения согласованности изменений. 🔗 Analysis chainНеобходимо проверить полное удаление доступа Прокурора Хотя доступ Инспектора был добавлен корректно, важно убедиться, что все упоминания роли Прокурора были полностью удалены из системы. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Описание: Поиск оставшихся упоминаний роли Прокурора
echo "Поиск упоминаний 'Prosecutor' в коде:"
rg -i "prosecutor"
Length of output: 2031 Script: #!/bin/bash
# Проверим, есть ли упоминания в файлах конфигурации доступа и ролей
echo "Поиск упоминаний в файлах конфигурации доступа:"
rg -i "prosecutor" -g "*.yml" --type yaml -A 5 Resources/Prototypes/**/access.yml Resources/Prototypes/**/jobs.yml
echo -e "\nПроверка файлов с ID-картами и правами доступа:"
rg -i "prosecutor" -g "*.cs" --type csharp Content.Shared/Access/
Length of output: 548 Script: #!/bin/bash
# Поиск файлов конфигурации в правильных директориях
echo "Поиск файлов конфигурации доступа и ролей:"
fd -e yml -e yaml
echo -e "\nПроверка содержимого найденных файлов на наличие 'prosecutor':"
fd -e yml -e yaml -x rg -i "prosecutor" -l {} \;
echo -e "\nПроиск определений ролей и прав доступа в коде:"
ast-grep --pattern 'enum $_Access {
$$$
}'
Length of output: 196096 |
||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,5 +1,5 @@ | ||||||
job-description-medical-borg = Half-human, Half-machine. Follow your laws, serve the crew, and assist the medical department. | ||||||
job-description-chief-justice = Manage the justice department, act as a judge, and ensure everyone recieves fair and just treatment. | ||||||
job-description-clerk = Organize trials, notarize documents, review charges, and act as a judge if needed. | ||||||
job-description-prosecutor = Take statements from security and prepare cases against those accused of commiting crimes. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. prosecutor вернуть вместо inspector |
||||||
job-description-inspector = Take statements from security and prepare cases against those accused of commiting crimes. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Исправьте опечатку в описании должности. В описании должности инспектора есть опечатка: "commiting" должно быть "committing". Примените следующие изменения: -job-description-inspector = Take statements from security and prepare cases against those accused of commiting crimes.
+job-description-inspector = Take statements from security and prepare cases against those accused of committing crimes. 📝 Committable suggestion
Suggested change
💡 Codebase verification Обнаружены несогласованные названия роли в файлах прототипов В кодовой базе найдены файлы, где все еще используется старое название "prosecutor":
Необходимо обновить эти файлы, чтобы они соответствовали новому названию роли "Inspector". 🔗 Analysis chainПроверьте согласованность названия роли во всех файлах. Убедитесь, что замена "Prosecutor" на "Inspector" выполнена последовательно во всех связанных файлах. Выполните следующий скрипт для проверки: Let me check if there are corresponding new "inspector" files and references to match the renamed role, as we found several "prosecutor" references in prototypes and sprite paths. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Описание: Поиск оставшихся упоминаний "prosecutor" в кодовой базе
echo "Поиск упоминаний 'prosecutor' в файлах локализации:"
rg -i "prosecutor" "Resources/Locale"
echo -e "\nПоиск упоминаний 'prosecutor' в файлах прототипов:"
rg -i "prosecutor" "Resources/Prototypes"
echo -e "\nПоиск упоминаний 'prosecutor' в других файлах:"
rg -i "prosecutor" --type-not yaml --type-not ftl
Length of output: 1710 Script: #!/bin/bash
# Поиск файлов с упоминанием "inspector" для сравнения
echo "Поиск упоминаний 'inspector' в файлах прототипов:"
rg -i "inspector" "Resources/Prototypes"
echo -e "\nПроверка наличия соответствующих файлов с 'inspector' в спрайтах:"
fd "inspector.*\.rsi$" Resources/Textures
Length of output: 10233 |
||||||
job-description-courier = Deliver mail and other packages from and to logistics. Avoid dogs. |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,6 +1,6 @@ | ||||||
job-name-medical-borg = Medical Cyborg | ||||||
job-name-chief-justice = Chief Justice | ||||||
job-name-clerk = Clerk | ||||||
job-name-prosecutor = Prosecutor | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. в job-name- меняй обратно на prosecutor |
||||||
job-name-inspector = inspector | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Необходимо использовать заглавную букву для названия должности. Для соблюдения единого стиля с другими названиями должностей в файле, значение должно начинаться с заглавной буквы. Примените следующие изменения: -job-name-inspector = inspector
+job-name-inspector = Inspector 📝 Committable suggestion
Suggested change
|
||||||
job-name-lawyer = Attorney | ||||||
job-name-courier = Courier |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -33,4 +33,4 @@ station-beacon-corpsman = Corpsman | |||||
|
||||||
station-beacon-justice = Justice | ||||||
station-beacon-chiefjustice = Chief Justice | ||||||
station-beacon-prosecutor = Prosecutor | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Меняй в station-beacon- обратно на prosecutor |
||||||
station-beacon-inspector = inspector | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Необходимо исправить регистр значения маяка станции. Значение маяка Примените следующие изменения: -station-beacon-inspector = inspector
+station-beacon-inspector = Inspector 📝 Committable suggestion
Suggested change
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
id-card-access-level-orders = Orders | ||
id-card-access-level-mantis = Mantis | ||
id-card-access-level-cj = Chief Justice | ||
id-card-access-level-prosecutor = Prosecutor | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. в id-card-access-level- меняй обратно на prosecutor |
||
id-card-access-level-inspector = Inspector | ||
id-card-access-level-justice = Justice | ||
id-card-access-level-corpsman = Corpsman |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,2 +1,2 @@ | ||||||
ent-ClothingNeckProsecutorbadge = prosecutor badge | ||||||
.desc = A badge to show that the owner is a 'legitimate' prosecutor who passed the NT bar exam required to practice law. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. вернуть айди ClothingNeckProsecutorbadge |
||||||
ent-ClothingNeckPinspectorbadge = inspector badge | ||||||
.desc = A badge to show that the owner is a 'legitimate' inspector who passed the NT bar exam required to practice law. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Исправьте написание и идентификатор записи. В соответствии с правилами локализации:
Предлагаемые изменения: -ent-ClothingNeckPinspectorbadge = inspector badge
+ent-ClothingNeckInspectorbadge = Inspector badge 📝 Committable suggestion
Suggested change
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -18,5 +18,5 @@ ent-ClothingUniformJumpskirtChiefJustice = chief justice's jumpskirt | |||||||||||||||||
.desc = A fancy black jumpskirt with a lace cravat to make it even more fancy. Proper judicial attire. | ||||||||||||||||||
ent-ClothingUniformJumpskirtClerk = clerk's dress skirt | ||||||||||||||||||
.desc = A modest dress skirt for the person with the power to notarize anything. | ||||||||||||||||||
ent-ClothingUniformJumpskirtProsecutor = prosecutor's dress skirt | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Вернуть айди ClothingUniformJumpskirtProsecutor |
||||||||||||||||||
.desc = A red suit and skirt with a fancy cravat. Perfect for a prosecutor. | ||||||||||||||||||
ent-ClothingUniformJumpskirtInspector = inspector's dress skirt | ||||||||||||||||||
.desc = A red suit and skirt with a fancy cravat. Perfect for a inspector. | ||||||||||||||||||
Comment on lines
+21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Рассмотрите возможность уточнения описания Текущее описание довольно общее и унаследовано от роли прокурора. Предлагаю адаптировать его более конкретно под роль инспектора. Предлагаемые изменения: - .desc = A red suit and skirt with a fancy cravat. Perfect for a inspector.
+ .desc = A red suit and skirt with a fancy cravat. The distinguished attire of a station inspector. 📝 Committable suggestion
Suggested change
Исправьте заглавную букву после знака равенства Согласно правилам кодирования, все переводы, начинающиеся с "ent-", должны иметь заглавную букву после знака равенства. Примените следующие изменения: -ent-ClothingUniformJumpskirtInspector = inspector's dress skirt
+ent-ClothingUniformJumpskirtInspector = Inspector's dress skirt 📝 Committable suggestion
Suggested change
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -52,5 +52,5 @@ ent-ClothingUniformJumpsuitClerk = clerk's suit | |||||
.desc = A modest suit for the person with the power to notarize anything. | ||||||
ent-ClothingUniformJumpsuitChemShirt = formal chemistry suit | ||||||
.desc = There's still some odd stains on this suit. Hm. | ||||||
ent-ClothingUniformJumpsuitProsecutor = prosecutor's suit | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Вернуть айди ClothingUniformJumpsuitProsecutor |
||||||
.desc = A red suit with a fancy cravat. Perfect for a prosecutor. | ||||||
ent-ClothingUniformJumpsuitInspector = inspector's suit | ||||||
.desc = A red suit with a fancy cravat. Perfect for a inspector. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Рекомендуется уточнить описание униформы В описании есть небольшая грамматическая ошибка: используется неопределенный артикль "a" перед словом "inspector". Также можно сделать описание более информативным. Предлагаемое исправление: - .desc = A red suit with a fancy cravat. Perfect for a inspector.
+ .desc = A red suit with a fancy cravat. Perfect for an inspector of the station. 📝 Committable suggestion
Suggested change
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -4,7 +4,7 @@ ent-SpawnPointChiefJustice = chiefjustice | |||||||||
.desc = { ent-SpawnPointJobBase.desc } | ||||||||||
ent-SpawnPointClerk = clerk | ||||||||||
.desc = { ent-SpawnPointJobBase.desc } | ||||||||||
ent-SpawnPointProsecutor = prosecutor | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. вернуть айди обратно на SpawnPointProsecutor |
||||||||||
ent-SpawnPointInspector = inspector | ||||||||||
.desc = { ent-SpawnPointJobBase.desc } | ||||||||||
Comment on lines
+7
to
8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Необходимо исправить регистр первой буквы значения. Согласно правилам кодирования, все значения после = для ключей, начинающихся с ent-, должны начинаться с заглавной буквы. Примените следующие изменения: -ent-SpawnPointInspector = inspector
+ent-SpawnPointInspector = Inspector
.desc = { ent-SpawnPointJobBase.desc } 📝 Committable suggestion
Suggested change
|
||||||||||
ent-SpawnPointCourier = courier | ||||||||||
.desc = { ent-SpawnPointJobBase.desc } |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -4,7 +4,7 @@ ent-ChiefJusticePDA = chief justice PDA | |||||||||
.desc = Whosoever bears this PDA is the law. | ||||||||||
ent-ClerkPDA = clerk PDA | ||||||||||
.desc = It has the stamp to prove it's been officially notarized! | ||||||||||
ent-ProsecutorPDA = prosecutor PDA | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. вернуть ProsecutorPDA |
||||||||||
ent-InspectorPDA = inspector PDA | ||||||||||
.desc = Sharp. Looks like it could prosecute you all on its own. | ||||||||||
Comment on lines
+7
to
8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Обновите описание в соответствии с новой ролью Текущее описание все еще содержит отсылку к прокурорской деятельности ("prosecute"), что не соответствует новой роли Инспектора. Рекомендуется изменить описание, чтобы оно лучше отражало функции Инспектора. Предлагаемые изменения: ent-InspectorPDA = inspector PDA
- .desc = Sharp. Looks like it could prosecute you all on its own.
+ .desc = Sharp. Looks like it could inspect every detail on its own. 📝 Committable suggestion
Suggested change
|
||||||||||
ent-SyndiListeningPostPDA = { ent-SyndiPDA } | ||||||||||
.desc = { ent-SyndiPDA.desc } |
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -52,6 +52,6 @@ ent-DefaultStationBeaconJustice = { ent-DefaultStationBeacon } | |||||||||||||
ent-DefaultStationBeaconChiefJustice = { ent-DefaultStationBeacon } | ||||||||||||||
.suffix = Chief Justice | ||||||||||||||
.desc = { ent-DefaultStationBeacon.desc } | ||||||||||||||
ent-DefaultStationBeaconProsecutor = { ent-DefaultStationBeacon } | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. вернуть DefaultStationBeaconProsecutor |
||||||||||||||
.suffix = Prosecutor | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. вернуть суффикс Prosecutor |
||||||||||||||
ent-DefaultStationBeaconInspector = { ent-DefaultStationBeacon } | ||||||||||||||
.suffix = inspector | ||||||||||||||
.desc = { ent-DefaultStationBeacon.desc } | ||||||||||||||
Comment on lines
+55
to
57
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Исправьте регистр суффикса для соответствия правилам кодирования Согласно правилам кодирования, все переводы, начинающиеся с 'ent-', должны иметь первую букву в верхнем регистре после знака '='. Необходимо изменить регистр слова 'inspector'. Примените следующие изменения: ent-DefaultStationBeaconInspector = { ent-DefaultStationBeacon }
- .suffix = inspector
+ .suffix = Inspector
.desc = { ent-DefaultStationBeacon.desc } 📝 Committable suggestion
Suggested change
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,20 +16,20 @@ ent-AirlockJusticeLocked = { ent-AirlockJustice } | |
ent-AirlockJusticeGlassLocked = { ent-AirlockJusticeGlass } | ||
.suffix = Justice, Locked | ||
.desc = { ent-AirlockJusticeGlass.desc } | ||
ent-AirlockProsecutorLocked = { ent-AirlockJustice } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. вернуть AirlockProsecutorLocked |
||
.suffix = Prosecutor, Locked | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. вернуть суффикс Prosecutor |
||
ent-AirlockInspectorLocked = { ent-AirlockJustice } | ||
.suffix = Inspector, Locked | ||
.desc = { ent-AirlockJustice.desc } | ||
ent-AirlockProsecutorGlassLocked = { ent-AirlockJusticeGlass } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. вернуть AirlockProsecutorGlassLocked |
||
.suffix = Prosecutor, Locked | ||
ent-AirlockInspectorGlassLocked = { ent-AirlockJusticeGlass } | ||
.suffix = Inspector, Locked | ||
.desc = { ent-AirlockJusticeGlass.desc } | ||
ent-AirlockMaintChiefJusticeLocked = { ent-AirlockMaint } | ||
.suffix = ChiefJustice, Locked | ||
.desc = { ent-AirlockMaint.desc } | ||
ent-AirlockMaintJusticeLocked = { ent-AirlockMaint } | ||
.suffix = Justice, Locked | ||
.desc = { ent-AirlockMaint.desc } | ||
ent-AirlockMaintProsecutorLocked = { ent-AirlockMaint } | ||
.suffix = Prosecutor, Locked | ||
ent-AirlockMaintInspectorLocked = { ent-AirlockMaint } | ||
.suffix = Inspector, Locked | ||
.desc = { ent-AirlockMaint.desc } | ||
ent-AirlockCorpsmanLocked = { ent-AirlockSecurity } | ||
.suffix = Corpsman, Locked | ||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -60,7 +60,7 @@ ent-ChiefJusticeIDCard = chief justice ID card | |||||||||
.desc = { ent-IDCardStandard.desc } | ||||||||||
ent-ClerkIDCard = clerk ID card | ||||||||||
.desc = { ent-IDCardStandard.desc } | ||||||||||
ent-ProsecutorIDCard = presecutor ID card | ||||||||||
ent-InspectorIDCard = presecutor ID card | ||||||||||
.desc = { ent-IDCardStandard.desc } | ||||||||||
Comment on lines
+63
to
64
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Необходимо исправить название и форматирование карты Инспектора В строке обнаружены следующие проблемы:
Примените следующие изменения: -ent-InspectorIDCard = presecutor ID card
+ent-InspectorIDCard = Inspector ID card
.desc = { ent-IDCardStandard.desc } 📝 Committable suggestion
Suggested change
|
||||||||||
ent-HoPIDCard = head of personnel ID card | ||||||||||
.desc = { ent-IDCardStandard.desc } | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,5 +1,5 @@ | ||||||
job-description-medical-borg = Наполовину человек, наполовину машина. Следуйте своим законам, служите команде и помогайте медицинскому отделу. | ||||||
job-description-chief-justice = Руководите министерством Юридического отдела, выступайте в роли судьи и следите за тем, чтобы ко всем относились справедливо. | ||||||
job-description-clerk = Организуйте судебные процессы, нотариально заверяйте документы, рассматривайте обвинения и при необходимости выступайте в качестве судьи | ||||||
job-description-prosecutor = Принимайте заявления от службы безопасности и готовьте дела против тех, кто обвиняется в совершении преступлений. | ||||||
job-description-Inspector = Принимайте заявления от службы безопасности и готовьте дела против тех, кто обвиняется в совершении преступлений. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Исправьте регистр в ключе локализации. Ключ локализации должен быть в нижнем регистре для соответствия стилю других записей в файле. Примените следующие изменения: -job-description-Inspector = Принимайте заявления от службы безопасности и готовьте дела против тех, кто обвиняется в совершении преступлений.
+job-description-inspector = Принимайте заявления от службы безопасности и готовьте дела против тех, кто обвиняется в совершении преступлений. 📝 Committable suggestion
Suggested change
|
||||||
job-description-courier = Доставляйте почту и другие посылки в отдел снабжения. Избегайте собак. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
job-name-medical-borg = Медицинский киборг | ||
job-name-chief-justice = Верховный Судья | ||
job-name-clerk = Судья | ||
job-name-prosecutor = Прокурор | ||
job-name-inspector = Инспектор | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Обнаружено нарушение алфавитного порядка Текущий порядок в файле не соответствует алфавитному. Рекомендуемый порядок:
Пожалуйста, измените порядок записей в файле в соответствии с русским алфавитом для улучшения читаемости и поддержки. 🔗 Analysis chainИзменение корректно реализовано! Перевод должности "Inspector" как "Инспектор" выполнен верно и соответствует формату файла. Однако рекомендуется проверить, соблюдается ли алфавитный порядок на русском языке для всех должностей в файле. Let me check the actual order in the file to compare with the sorted list. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Проверка алфавитного порядка должностей в файле локализации
echo "Текущий порядок должностей:"
grep "job-name-" "Resources/Locale/ru-RU/deltav/job/job-names.ftl" | cut -d'=' -f2 | sort -f
echo -e "\nСравните с текущим порядком в файле для проверки алфавитного порядка."
Length of output: 380 Script: #!/bin/bash
# Description: Получить текущий порядок в файле
echo "Порядок в файле:"
grep "job-name-" "Resources/Locale/ru-RU/deltav/job/job-names.ftl" | cut -d'=' -f2
Length of output: 193 |
||
job-name-lawyer = Адвокат | ||
job-name-courier = Курьер |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -22,4 +22,4 @@ station-beacon-park = Парк | |||||
station-beacon-corpsman = Полевой Врач | ||||||
station-beacon-justice = Судебная | ||||||
station-beacon-chiefjustice = Верховный Судья | ||||||
station-beacon-prosecutor = Прокурор | ||||||
station-beacon-Inspector = Инспектор | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Исправьте регистр в ключе локализации Ключ Примените следующие изменения: -station-beacon-Inspector = Инспектор
+station-beacon-inspector = Инспектор 📝 Committable suggestion
Suggested change
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,6 +1,6 @@ | ||||||
id-card-access-level-orders = Заказы | ||||||
id-card-access-level-mantis = Мантис | ||||||
id-card-access-level-cj = Верховный Судья | ||||||
id-card-access-level-prosecutor = Прокурор | ||||||
id-card-access-level-Inspector = Инспектор | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Исправьте формат идентификатора доступа Идентификатор Примените следующие изменения: -id-card-access-level-Inspector = Инспектор
+id-card-access-level-inspector = Инспектор 📝 Committable suggestion
Suggested change
|
||||||
id-card-access-level-justice = Суд | ||||||
id-card-access-level-corpsman = Полевой Врач |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ent-ClothingNeckProsecutorbadge = Значок прокурора | ||
.desc = Значок который выдают лицензированным прокурорам юридического департамента корпорации NT. | ||
ent-ClothingNeckInspectorbadge = Значок инспектора | ||
.desc = Значок который выдают лицензированным инспекторам юридического департамента корпорации NT. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ ent-SpawnPointChiefJustice = Спавнер верховного судьи | |
.desc = { ent-SpawnPointJobBase.desc } | ||
ent-SpawnPointClerk = Спавнер судьи | ||
.desc = { ent-SpawnPointJobBase.desc } | ||
ent-SpawnPointProsecutor = Спавнер прокурора | ||
ent-SpawnPointInspector = Спавнер инспектора | ||
.desc = { ent-SpawnPointJobBase.desc } | ||
Comment on lines
+7
to
8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Исправьте регистр первой буквы после знака равенства Согласно правилам кодирования, все переводы, начинающиеся с "ent-", должны иметь заглавную букву после знака равенства. Примените следующие изменения: -ent-SpawnPointInspector = Спавнер инспектора
+ent-SpawnPointInspector = Cпавнер инспектора
|
||
ent-SpawnPointCourier = Спавнер курьера | ||
.desc = { ent-SpawnPointJobBase.desc } |
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -52,6 +52,6 @@ ent-DefaultStationBeaconJustice = { ent-DefaultStationBeacon } | |||||||||||
ent-DefaultStationBeaconChiefJustice = { ent-DefaultStationBeaconJustice } | ||||||||||||
.suffix = Кабинет верховного судьи | ||||||||||||
.desc = { ent-DefaultStationBeaconJustice.desc } | ||||||||||||
ent-DefaultStationBeaconProsecutor = { ent-DefaultStationBeacon } | ||||||||||||
.suffix = Кабинет прокурора | ||||||||||||
ent-DefaultStationBeaconInspector = { ent-DefaultStationBeacon } | ||||||||||||
.suffix = Кабинет инспектора | ||||||||||||
Comment on lines
+55
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Изменения соответствуют требованиям локализации Структура и формат новой записи маяка для Инспектора корректны и соответствуют общему стилю файла. Для улучшения читаемости рекомендуется использовать заглавную букву в начале значения суффикса. ent-DefaultStationBeaconInspector = { ent-DefaultStationBeacon }
- .suffix = Кабинет инспектора
+ .suffix = Кабинет Инспектора
.desc = { ent-DefaultStationBeacon.desc } 📝 Committable suggestion
Suggested change
|
||||||||||||
.desc = { ent-DefaultStationBeacon.desc } |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -249815,7 +249815,7 @@ entities: | |||||
- type: Transform | ||||||
pos: 72.5,17.5 | ||||||
parent: 2 | ||||||
- proto: SpawnPointProsecutor | ||||||
- proto: SpawnPointInspector | ||||||
entities: | ||||||
- uid: 44087 | ||||||
components: | ||||||
|
@@ -254377,7 +254377,7 @@ entities: | |||||
setupAvailableNetworks: | ||||||
- SurveillanceCameraService | ||||||
nameSet: True | ||||||
id: Офис Адвоката\Прокурора | ||||||
id: Офис Адвоката\Инспектора | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Рекомендуется использовать английский язык для идентификаторов Согласно правилам кодирования, в прототипах следует избегать использования русского языка. Предлагаю заменить идентификатор на английский вариант. - id: Офис Адвоката\Инспектора
+ id: Lawyer\Inspector Office 📝 Committable suggestion
Suggested change
|
||||||
- uid: 39703 | ||||||
components: | ||||||
- type: Transform | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89325,7 +89325,7 @@ entities: | |
- type: Transform | ||
pos: -39.5,7.5 | ||
parent: 2 | ||
- proto: SpawnPointProsecutor | ||
- proto: SpawnPointInspector | ||
entities: | ||
- uid: 8343 | ||
components: | ||
|
@@ -111104,7 +111104,7 @@ entities: | |
pos: -8.5,-4.5 | ||
parent: 2 | ||
- type: WarpPoint | ||
location: Офис Адвокатов\Прокуроров | ||
location: Офис Адвокатов\Инспекторов | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Необходимо убрать русский текст из прототипа! Согласно правилам кодирования, в прототипах запрещены переводы на русский язык. Текст должен быть на английском или реализован через ссылку на перевод. Предлагаемое исправление: - location: Офис Адвокатов\Инспекторов
+ location: Office-Advocates-Inspectors Также рекомендуется добавить соответствующий перевод в файл локализации.
|
||
- proto: WarpPointLibrary | ||
entities: | ||
- uid: 7194 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59905,7 +59905,7 @@ entities: | |
- type: Transform | ||
pos: -27.5,-20.5 | ||
parent: 2 | ||
- proto: SpawnPointProsecutor | ||
- proto: SpawnPointInspector | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Прототип SpawnPointInspector находится вне папки _LostParadise Прототип SpawnPointInspector определен в
🔗 Analysis chainИзменение прототипа соответствует требованиям. Замена SpawnPointProsecutor на SpawnPointInspector корректна и соответствует целям PR. Давайте проверим существование прототипа в правильной локации: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Проверяем существование прототипа SpawnPointInspector в нашей папке
fd "SpawnPointInspector" Resources/Prototypes/_LostParadise/
Length of output: 60 Script: #!/bin/bash
# Расширим поиск на всю директорию Resources/Prototypes
fd "SpawnPointInspector" Resources/Prototypes/
# Также проверим содержимое файлов на наличие определения прототипа
rg "SpawnPointInspector" Resources/Prototypes/ -A 5
Length of output: 605 |
||
entities: | ||
- uid: 11026 | ||
components: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prosecutor на Inspector обратно изменить, комментарий тоже восстановить