Skip to content

Commit

Permalink
lint: Sort c-006 matches so tests are reproducable
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Oct 18, 2023
1 parent 2d86262 commit 5056ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion se/se_epub_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -3366,7 +3366,7 @@ def lint(self, skip_lint_ignore: bool, allowed_messages: Optional[List[str]] = N
messages.append(LintMessage("m-039", "[attr]schema:accessibilityFeature[/] property set to [val]alternativeText[/] in metadata, but no images in ebook.", se.MESSAGE_TYPE_ERROR, self.metadata_file_path))

if missing_styles:
messages.append(LintMessage("c-006", f"Semantic found, but missing corresponding style in [path][link=file://{local_css_path}]local.css[/][/].", se.MESSAGE_TYPE_ERROR, local_css_path, set(missing_styles)))
messages.append(LintMessage("c-006", f"Semantic found, but missing corresponding style in [path][link=file://{local_css_path}]local.css[/][/].", se.MESSAGE_TYPE_ERROR, local_css_path, sorted(set(missing_styles))))

for double_spaced_file in double_spaced_files:
messages.append(LintMessage("t-001", "Double spacing found. Sentences should be single-spaced. (Note that double spaces might include Unicode no-break spaces!)", se.MESSAGE_TYPE_ERROR, double_spaced_file))
Expand Down

0 comments on commit 5056ea2

Please sign in to comment.