File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -242,14 +242,14 @@ lint_identifier_non_ascii_char = identifier contains non-ASCII characters
242
242
243
243
lint_identifier_uncommon_codepoints = identifier contains { $codepoints_len ->
244
244
[ one ] { $identifier_type ->
245
- [ Exclusion ] a Unicode codepoint that is no longer used
245
+ [ Exclusion ] a Unicode codepoint that its corresponding script is no longer used
246
246
[ Technical ] a Unicode codepoint that has specialized usage
247
247
[ Limited_Use ] a Unicode codepoint that is in limited use
248
248
[ Not_NFKC ] a Unicode codepoint that is not used in normalized strings
249
249
*[ other ] an uncommon Unicode codepoint
250
250
}
251
251
*[ other ] { $identifier_type ->
252
- [ Exclusion ] { $codepoints_len } Unicode codepoints that are no longer used
252
+ [ Exclusion ] { $codepoints_len } Unicode codepoints that their corresponding scripts are no longer used
253
253
[ Technical ] { $codepoints_len } Unicode codepoints that have specialized usage
254
254
[ Limited_Use ] { $codepoints_len } Unicode codepoints that are in limited use
255
255
[ Not_NFKC ] { $codepoints_len } Unicode codepoints that are not used in normalized strings
Original file line number Diff line number Diff line change @@ -190,7 +190,8 @@ impl EarlyLintPass for NonAsciiIdents {
190
190
if check_uncommon_codepoints
191
191
&& !symbol_str. chars ( ) . all ( GeneralSecurityProfile :: identifier_allowed)
192
192
{
193
- let mut chars: Vec < _ > = symbol_str. chars ( )
193
+ let mut chars: Vec < _ > = symbol_str
194
+ . chars ( )
194
195
. map ( |c| ( c, GeneralSecurityProfile :: identifier_type ( c) ) )
195
196
. collect ( ) ;
196
197
@@ -200,7 +201,8 @@ impl EarlyLintPass for NonAsciiIdents {
200
201
( IdentifierType :: Limited_Use , "Limited_Use" ) ,
201
202
( IdentifierType :: Not_NFKC , "Not_NFKC" ) ,
202
203
] {
203
- let codepoints: Vec < _ > = chars. extract_if ( |( _, ty) | * ty == Some ( id_ty) ) . collect ( ) ;
204
+ let codepoints: Vec < _ > =
205
+ chars. extract_if ( |( _, ty) | * ty == Some ( id_ty) ) . collect ( ) ;
204
206
if codepoints. is_empty ( ) {
205
207
continue ;
206
208
}
You can’t perform that action at this time.
0 commit comments