Capitalize pep8-naming messages

This commit is contained in:
Charlie Marsh
2022-10-16 17:58:26 -04:00
parent 56f69ce71e
commit bd4394aa89
2 changed files with 11 additions and 10 deletions

View File

@@ -1213,19 +1213,19 @@ impl CheckKind {
CheckKind::NoOverIndentation => "Docstring is over-indented".to_string(),
// pep8-naming
CheckKind::InvalidClassName(name) => {
format!("class name `{name}` should use CapWords convention ")
format!("Class name `{name}` should use CapWords convention ")
}
CheckKind::InvalidFunctionName(name) => {
format!("function name `{name}` should be lowercase")
format!("Function name `{name}` should be lowercase")
}
CheckKind::InvalidArgumentName(name) => {
format!("argument name `{name}` should be lowercase")
format!("Argument name `{name}` should be lowercase")
}
CheckKind::InvalidFirstArgumentNameForClassMethod => {
"first argument of a classmethod should be named `cls`".to_string()
"First argument of a class method should be named `cls`".to_string()
}
CheckKind::InvalidFirstArgumentNameForMethod => {
"first argument of a method should be named `self`".to_string()
"First argument of a method should be named `self`".to_string()
}
// Meta
CheckKind::UnusedNOQA(codes) => match codes {