From 8fab1807926774579d7b40ca2d853ea5054f4985 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Sun, 13 Oct 2024 13:40:44 -0400 Subject: [PATCH] Use 'proposal' instead of 'EIP' for no_backticks --- eipw-lint/src/lints/markdown/no_backticks.rs | 2 +- eipw-lint/tests/eipv/markdown-malformed-eip/expected.txt | 2 +- eipw-lint/tests/lint_markdown_no_backticks.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eipw-lint/src/lints/markdown/no_backticks.rs b/eipw-lint/src/lints/markdown/no_backticks.rs index 562a6bbf..7880ab0a 100644 --- a/eipw-lint/src/lints/markdown/no_backticks.rs +++ b/eipw-lint/src/lints/markdown/no_backticks.rs @@ -59,7 +59,7 @@ impl<'a, 'b, 'c> Visitor<'a, 'b, 'c> { self.ctx.report( self.ctx .annotation_level() - .title("EIP references should not be in backticks") + .title("proposal references should not be in backticks") .id(self.slug) .snippet( Snippet::source(&source) diff --git a/eipw-lint/tests/eipv/markdown-malformed-eip/expected.txt b/eipw-lint/tests/eipv/markdown-malformed-eip/expected.txt index 29da0d87..b1560b98 100644 --- a/eipw-lint/tests/eipv/markdown-malformed-eip/expected.txt +++ b/eipw-lint/tests/eipv/markdown-malformed-eip/expected.txt @@ -1,4 +1,4 @@ -error[markdown-no-backticks]: EIP references should not be in backticks +error[markdown-no-backticks]: proposal references should not be in backticks --> input.md | 18 | This is the motivation for the EIP, which extends `ERC-721`. diff --git a/eipw-lint/tests/lint_markdown_no_backticks.rs b/eipw-lint/tests/lint_markdown_no_backticks.rs index 643a0fb4..82b6dddb 100644 --- a/eipw-lint/tests/lint_markdown_no_backticks.rs +++ b/eipw-lint/tests/lint_markdown_no_backticks.rs @@ -32,7 +32,7 @@ hello assert_eq!( reports, - r#"error[markdown-no-backticks]: EIP references should not be in backticks + r#"error[markdown-no-backticks]: proposal references should not be in backticks | 7 | `EIP-1234` |