Skip to content

first try of count_lit_ref#564

Open
MarinaProsche wants to merge 11 commits intomasterfrom
539_links_count_in_spec_chapter
Open

first try of count_lit_ref#564
MarinaProsche wants to merge 11 commits intomasterfrom
539_links_count_in_spec_chapter

Conversation

@MarinaProsche
Copy link
Collaborator

Задача: #539
В данном PR основа для критерия поиска ссылок на источники в определенных разделах.
В классе StyleCheckSettings изменена конфигурация словарей типов проверяемых файлов: добавлен ключ "headers_for_lit_count".
Сейчас для примера выбраны (закомментированы) разделы, которые наиболее часто встречаются в работах НИР и ВКР.

Необходимы уточнения:

  • какие именно разделы следует учитывать.
  • критерии оценки (минимальный или максимальный порог).

description = ''
id = 'references_in_chapter_check'

def __init__(self, file_info, chapters_for_lit_ref = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

какие именно разделы следует учитывать
критерии оценки (минимальный или максимальный порог).

разделы и пороги подаем в качестве аргумента критерия - словарь

Пример:

{
    'введение': [1, 10],
    'определения, обозначения и сокращения': [0, 5],
    'заключение': [1;5]
}

Оценка критерия = процент разделов попавших в нужный интервал

  • количество разделов, прошедших проверку / количество проверяемых разделов)

Можно добавить верхние и нижние пороги:

  • если вычисленная оценка < min -> за критерий 0
  • если вычисленная оценка < max -> за критерий 1

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@HadronCollider Логика исправлена. Требуется установить min и max (сейчас 0 и 0), а также указать разделы.

@github-actions github-actions bot added the has conflicts if new merge has conflicts label Sep 2, 2024
@github-actions github-actions bot removed the has conflicts if new merge has conflicts label Sep 23, 2024
@github-actions github-actions bot added the has conflicts if new merge has conflicts label Feb 18, 2025
@HadronCollider
Copy link
Collaborator

Проверить переиспользование SW* критериев

@vovanbravin vovanbravin force-pushed the 539_links_count_in_spec_chapter branch from b17a1fe to db387f3 Compare January 27, 2026 15:32
@github-actions github-actions bot removed the has conflicts if new merge has conflicts label Jan 27, 2026
@github-actions github-actions bot added the has conflicts if new merge has conflicts label Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

future_integration Интеграция/мерж в будущих релизах has conflicts if new merge has conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Критерий на наличие и количество ссылок в рамках Актуальности

3 participants