Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions problemtools/verifyproblem.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,13 @@ def check(self, context: Context) -> bool:
if not self._metadata.rights_owner and not self._metadata.source and not self._metadata.credits.authors:
self.error('No author, source or rights_owner provided')

# Sanity check that the author name is parsed reasonably
disallowed_in_name = [',', '&']
for author in self._metadata.credits.authors:
for disallowed_character in disallowed_in_name:
if disallowed_character in author.name:
self.warning(f'Author name parsed to "{author.name}", which contains character "{disallowed_character}".')

# Check license
if self._metadata.license == metadata.License.UNKNOWN:
self.warning("License is 'unknown'")
Expand Down