From c0c59b82ec661b59995ef79545602f4ab5352f8a Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 21 Jun 2023 21:44:52 -0400 Subject: [PATCH] Use 'Checks for uses' consistently (#5279) --- .../src/rules/flake8_pyi/rules/bad_version_info_comparison.rs | 2 +- .../flake8_simplify/rules/open_file_with_context_handler.rs | 2 +- crates/ruff/src/rules/pygrep_hooks/rules/no_eval.rs | 2 +- crates/ruff/src/rules/pylint/rules/await_outside_async.rs | 2 +- .../src/rules/pylint/rules/load_before_global_declaration.rs | 2 +- .../ruff/src/rules/pylint/rules/named_expr_without_context.rs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/ruff/src/rules/flake8_pyi/rules/bad_version_info_comparison.rs b/crates/ruff/src/rules/flake8_pyi/rules/bad_version_info_comparison.rs index 305e1ba2c7..8d43070991 100644 --- a/crates/ruff/src/rules/flake8_pyi/rules/bad_version_info_comparison.rs +++ b/crates/ruff/src/rules/flake8_pyi/rules/bad_version_info_comparison.rs @@ -6,7 +6,7 @@ use ruff_macros::{derive_message_formats, violation}; use crate::checkers::ast::Checker; /// ## What it does -/// Checks for usages of comparators other than `<` and `>=` for +/// Checks for uses of comparators other than `<` and `>=` for /// `sys.version_info` checks in `.pyi` files. All other comparators, such /// as `>`, `<=`, and `==`, are banned. /// diff --git a/crates/ruff/src/rules/flake8_simplify/rules/open_file_with_context_handler.rs b/crates/ruff/src/rules/flake8_simplify/rules/open_file_with_context_handler.rs index b59d76e040..98c35c4d15 100644 --- a/crates/ruff/src/rules/flake8_simplify/rules/open_file_with_context_handler.rs +++ b/crates/ruff/src/rules/flake8_simplify/rules/open_file_with_context_handler.rs @@ -7,7 +7,7 @@ use ruff_python_semantic::SemanticModel; use crate::checkers::ast::Checker; /// ## What it does -/// Checks for usages of the builtin `open()` function without an associated context +/// Checks for uses of the builtin `open()` function without an associated context /// manager. /// /// ## Why is this bad? diff --git a/crates/ruff/src/rules/pygrep_hooks/rules/no_eval.rs b/crates/ruff/src/rules/pygrep_hooks/rules/no_eval.rs index 921d634e51..a5d8572f95 100644 --- a/crates/ruff/src/rules/pygrep_hooks/rules/no_eval.rs +++ b/crates/ruff/src/rules/pygrep_hooks/rules/no_eval.rs @@ -6,7 +6,7 @@ use ruff_macros::{derive_message_formats, violation}; use crate::checkers::ast::Checker; /// ## What it does -/// Checks for usages of the builtin `eval()` function. +/// Checks for uses of the builtin `eval()` function. /// /// ## Why is this bad? /// The `eval()` function is insecure as it enables arbitrary code execution. diff --git a/crates/ruff/src/rules/pylint/rules/await_outside_async.rs b/crates/ruff/src/rules/pylint/rules/await_outside_async.rs index dd17f4eb7b..850cf7a9f7 100644 --- a/crates/ruff/src/rules/pylint/rules/await_outside_async.rs +++ b/crates/ruff/src/rules/pylint/rules/await_outside_async.rs @@ -6,7 +6,7 @@ use ruff_macros::{derive_message_formats, violation}; use crate::checkers::ast::Checker; /// ## What it does -/// Checks for usages of `await` outside of `async` functions. +/// Checks for uses of `await` outside of `async` functions. /// /// ## Why is this bad? /// Using `await` outside of an `async` function is a syntax error. diff --git a/crates/ruff/src/rules/pylint/rules/load_before_global_declaration.rs b/crates/ruff/src/rules/pylint/rules/load_before_global_declaration.rs index 687692ffbd..e97da007cb 100644 --- a/crates/ruff/src/rules/pylint/rules/load_before_global_declaration.rs +++ b/crates/ruff/src/rules/pylint/rules/load_before_global_declaration.rs @@ -7,7 +7,7 @@ use ruff_python_ast::source_code::OneIndexed; use crate::checkers::ast::Checker; /// ## What it does -/// Checks for usages of names that are declared as `global` prior to the +/// Checks for uses of names that are declared as `global` prior to the /// relevant `global` declaration. /// /// ## Why is this bad? diff --git a/crates/ruff/src/rules/pylint/rules/named_expr_without_context.rs b/crates/ruff/src/rules/pylint/rules/named_expr_without_context.rs index 3576d36ea3..27627585c8 100644 --- a/crates/ruff/src/rules/pylint/rules/named_expr_without_context.rs +++ b/crates/ruff/src/rules/pylint/rules/named_expr_without_context.rs @@ -6,7 +6,7 @@ use ruff_macros::{derive_message_formats, violation}; use crate::checkers::ast::Checker; /// ## What it does -/// Checks for usages of named expressions (e.g., `a := 42`) that can be +/// Checks for uses of named expressions (e.g., `a := 42`) that can be /// replaced by regular assignment statements (e.g., `a = 42`). /// /// ## Why is this bad?