This commit is contained in:
Dale 2021-01-22 13:36:59 +00:00 коммит произвёл GitHub
Родитель 4e706851b7
Коммит abf8af8d64
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -195,6 +195,15 @@ Checks that strings do not contain Objective-C style alternative position tokens
Objective-C seems to be allows positional tokens of the form `%1@` rather than `%1$@`. While not illegal, it is preferred that all tokens between languages are consistent so that tools don't experience unexpected failures, etc.
## Placeholder token explanation
Identifier: `placeholder_token_explanation`
Opt-In: `true`
Checks that if a placeholder is used in a string, the comment explicitly explains what it is replaced with.
Precondition: Each placeholder in the string and its explanation in comment is expected to follow `token_position_identifiers` rule.
## Swift Interpolation
Identifier: `swift_interpolation`
@ -232,14 +241,6 @@ Check that each token has a position specifier with it. e.g. `%s` is not allowed
</details>
## Placeholder token explanation
Identifier: `placeholder_token_explanation`
Opt-In: `true`
Checks that if a placeholder is used in a string, the comment explicitly explains what it is replaced with.
Precondition: Each placeholder in the string and its explanation in comment is expected to follow `token_position_identifiers` rule.
# Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a