StyleCop Spelling Rules and Hyperlinks

Is there a way to disable StyleCop spell checking for hyperlinks? I really like the rule feature, but it complains about misspelled words in many of my hyperlinks.

+6
source share
1 answer

I found 2 possible workarounds for this:

1) Attempt CamelCase of your hyperlinks.

I have a couple of problems with this approach. First, I like all my lowercase hyperlinks, if possible; I ocd about it. Second (and more importantly), business matters for some hyperlinks. Thus, to get past but could potentially disrupt your hyperlinks.

2) Drop the hyperlinks inside the <see href=""/> .

I found that StyleCop will not try to force the spell check feature in this case.

+5
source

Source: https://habr.com/ru/post/927496/


All Articles