This repository was archived by the owner on Jul 12, 2022. It is now read-only.
Commit 9ed44d4
committed
Disable NonAsciiCharacter Rule on verbatim strings
The rewriting logic we have for verbatim strings is incorrect, since
you can not use Unicode excape sequences inside them. Issue 39 tracks
the correct fix, but for now, we'll just disable the rule on these sorts
of strings.1 parent d24b9ee commit 9ed44d4
2 files changed
Lines changed: 14 additions & 6 deletions
File tree
- src
- Microsoft.DotNet.CodeFormatting.Tests/Rules
- Microsoft.DotNet.CodeFormatting/Rules
src/Microsoft.DotNet.CodeFormatting.Tests/Rules/NonAsciiCharactersAreEscapedInLiteralsRuleTests.cs
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| |||
0 commit comments