简体   繁体   English

使用匈牙利表示法在VB.NET中验证命名样式的工具

[英]Tool to validate naming style in VB.NET following Hungarian notation

I'm maintaining a legacy ASP.NET website written in VB.NET. 我正在维护一个用VB.NET编写的遗留ASP.NET网站。 Our customers force us to use Hungarian notation for declaring variables and such: 我们的客户强迫我们使用匈牙利表示法来声明变量等:

Eg: 例如:

Dim sSomeString as String
Dim oSomeObject as xxxClass

Is there any tool like FxCop, StyleCop, ReSharper that can help me determine the code that violate this naming style? 是否有像FxCop,StyleCop,ReSharper这样的工具可以帮助我确定违反这种命名风格的代码?

(Disclaimer: I'm part of SubMain, the company that makes CodeIt.Right) (免责声明:我是SubMain的一员,这是制作CodeIt.Right的公司)

Yes, there is a tool that will do that. 是的,有一个工具可以做到这一点。 While the recommended shipped rule set is aiming at MS .NET Guidelines, CodeIt.Right also ships with rules that help to enforce Hungarian notation as well as refactorings to automatically fix incorrect names. 虽然推荐的已发布规则集针对的是MS .NET准则,但CodeIt.Right还附带了有助于强制执行匈牙利表示法以及重构以自动修复错误名称的规则。 It even has rules that help you convert Hungarian notation into MS .NET recommended naming conventions. 它甚至有一些规则可以帮助您将匈牙利表示法转换为MS .NET推荐的命名约定。

Contact customer service via email link on our web site and they will point you to the appropriate set of rules to use. 通过我们网站上的电子邮件链接联系客户服务,他们将指出您使用的相应规则集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM