-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 524_fix_bug_with_users_downloads
- Loading branch information
Showing
41 changed files
with
197 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1 @@ | ||
from .presentation_checks import * | ||
from .report_checks import * | ||
|
||
AVAILABLE_CHECKS = { | ||
'pres': { | ||
TemplateNameCheck.id: TemplateNameCheck, | ||
SldNumCheck.id: SldNumCheck, | ||
SldEnumCheck.id: SldEnumCheck, | ||
TitleFormatCheck.id: TitleFormatCheck, | ||
FindDefSld.id: FindDefSld, | ||
SearchKeyWord.id: SearchKeyWord, | ||
FindTasks.id: FindTasks, | ||
SldSimilarity.id: SldSimilarity, | ||
PresRightWordsCheck.id: PresRightWordsCheck, | ||
PresImageShareCheck.id: PresImageShareCheck, | ||
FurtherDev.id: FurtherDev, | ||
PresBannedWordsCheck.id: PresBannedWordsCheck, | ||
PresVerifyGitLinkCheck.id: PresVerifyGitLinkCheck, | ||
PresEmptySlideCheck.id: PresEmptySlideCheck, | ||
}, | ||
'report': { | ||
ReportSimpleCheck.id: ReportSimpleCheck, | ||
ReportPageCounter.id: ReportPageCounter, | ||
ReportImageShareCheck.id: ReportImageShareCheck, | ||
LRReportSectionCheck.id: LRReportSectionCheck, | ||
ReportHeadersAtPageTopCheck.id: ReportHeadersAtPageTopCheck, | ||
ReportShortSectionsCheck.id: ReportShortSectionsCheck, | ||
ReportStyleCheck.id: ReportStyleCheck, | ||
ReportBannedWordsCheck.id: ReportBannedWordsCheck, | ||
ReportRightWordsCheck.id: ReportRightWordsCheck, | ||
BannedWordsInLiteratureCheck.id: BannedWordsInLiteratureCheck, | ||
ReferencesToLiteratureCheck.id: ReferencesToLiteratureCheck, | ||
ImageReferences.id: ImageReferences, | ||
TableReferences.id: TableReferences, | ||
ReportFirstPagesCheck.id: ReportFirstPagesCheck, | ||
ReportMainCharacterCheck.id: ReportMainCharacterCheck, | ||
ReportNeededHeadersCheck.id: ReportNeededHeadersCheck, | ||
ReportChapters.id: ReportChapters, | ||
ReportSectionComponent.id: ReportSectionComponent, | ||
ReportMainTextCheck.id: ReportMainTextCheck, | ||
SpellingCheck.id: SpellingCheck | ||
} | ||
} | ||
from .check_analyzer import AVAILABLE_CHECKS, CRITERIA_INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import inspect | ||
from . import presentation_checks, report_checks | ||
from .base_check import BaseCriterion | ||
|
||
|
||
def get_filtered_module_members(module): | ||
return filter( | ||
lambda member: inspect.isclass(member[1]) and issubclass(member[1], BaseCriterion), | ||
inspect.getmembers(module) | ||
) | ||
|
||
|
||
CRITERIA_INFO = { | ||
'pres': {cls.id: {'class': cls, 'name': name, 'label': cls.label, 'description': cls.description} for name, cls in get_filtered_module_members(presentation_checks)}, | ||
'report': {cls.id: {'class': cls, 'name': name, 'label': cls.label, 'description': cls.description} for name, cls in get_filtered_module_members(report_checks)} | ||
} | ||
|
||
AVAILABLE_CHECKS = { | ||
'pres': {cls_id: CRITERIA_INFO['pres'][cls_id]['class'] for cls_id in CRITERIA_INFO['pres']}, | ||
'report': {cls_id: CRITERIA_INFO['report'][cls_id]['class'] for cls_id in CRITERIA_INFO['report']} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.