Skip to content

Commit c72291b

Browse files
doc: improve vocab to include more synonym
1 parent 8e295d4 commit c72291b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/guide/project/lint-rule.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Be sure to add `./` to the beginning of your rules. ast-grep will not recognize
156156

157157
:::
158158

159-
## Suppress Linting Error
159+
## Ignore Linting Error
160160

161161
It is possible to ignore a single line of code in ast-grep's scanning. A developer can suppress ast-grep's error by adding `ast-grep-ignore` above the line that triggers the issue.
162162

@@ -169,8 +169,8 @@ The suppression comment has the following format:
169169

170170
* A comment with the content `ast-grep-ignore` will suppress the following line's diagnostic.
171171
* The magic word `ast-grep-ignore` alone will suppress _all_ kinds of diagnostics.
172-
* `ast-grep-ignore: <rule-id>` can suppress specific rules.
173-
* You can ignore multiple rules by providing a comma-separated list in the comment. e.g. `ast-grep-ignore: rule-1, rule-2`
172+
* `ast-grep-ignore: <rule-id>` can turn off specific rules.
173+
* You can turn off multiple rules by providing a comma-separated list in the comment. e.g. `ast-grep-ignore: rule-1, rule-2`
174174

175175
See the [playground](https://ast-grep.github.io/playground.html#eyJtb2RlIjoiQ29uZmlnIiwibGFuZyI6ImphdmFzY3JpcHQiLCJxdWVyeSI6IiRDQUxMRVIgOj0gJmZvb3t9IiwicmV3cml0ZSI6IiIsImNvbmZpZyI6ImlkOiBuby1jb25zb2xlXG5sYW5ndWFnZTogSmF2YVNjcmlwdFxucnVsZTpcbiAgcGF0dGVybjogY29uc29sZS5sb2coJEEpIiwic291cmNlIjoiY29uc29sZS5sb2coJ2hlbGxvJykgIC8vIG1hdGNoXG4vLyBhc3QtZ3JlcC1pZ25vcmVcbmNvbnNvbGUubG9nKCdzdXBwcmVzc2VkJykgLy8gc3VwcHJlc3NlZFxuLy8gYXN0LWdyZXAtaWdub3JlOiBuby1jb25zb2xlXG5jb25zb2xlLmxvZygnc3VwcHJlc3NlZCcpIC8vIHN1cHByZXNzZWRcbi8vIGFzdC1ncmVwLWlnbm9yZTogb3RoZXItcnVsZVxuY29uc29sZS5sb2coJ3dvcmxkJykgLy8gbWF0Y2hcbiJ9) for example.
176176

0 commit comments

Comments
 (0)