Rule Definition
For readability aspects, naming conventions must be respected
Remediation
Change name according to the naming convention
Violation Code Sample
//All Control names will result into violation private System.Windows.Forms.Button Submit; private System.Windows.Forms.CheckBox IsLocal; private System.Windows.Forms.ComboBox Countries; private System.Windows.Forms.Form MyForm; private System.Windows.Forms.GroupBox Box1; private System.Windows.Forms.ImageList imageList1; private System.Windows.Forms.Label Name; private System.Windows.Forms.ListBox listBox1; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.PictureBox picBox1; private System.Windows.Forms.RadioButton radioButton1; private System.Windows.Forms.Splitter mysplitter1; private System.Windows.Forms.StatusBar statusBar1; private System.Windows.Forms.TabControl tbControl1; private System.Windows.Forms.TabPage tbPage1; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Button btn_Submit; //due to underscore private System.Windows.Forms.CheckBox chk_IsLocal; //due to underscore
Fixed Code Sample
//Corrected Names of control private System.Windows.Forms.Button btnSubmit; private System.Windows.Forms.CheckBox chkIsLocal; private System.Windows.Forms.ComboBox cmbCountries; private System.Windows.Forms.Form frmMyForm; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.ImageList imlImageList1; private System.Windows.Forms.Label lblName; private System.Windows.Forms.ListBox lstlistBox1; private System.Windows.Forms.Panel pnlpanel1; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.RadioButton optRadioButton1; private System.Windows.Forms.Splitter splitter1; private System.Windows.Forms.StatusBar sbstatusBar1; private System.Windows.Forms.TabControl tabControl1; private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TextBox txtBox1;
Reference
https://dotnetdaily.net/web-development/tutorials/c-coding-guidelines-series-naming-conventions https://en.wikipedia.org/wiki/Hungarian_notation
Related Technologies
.Net
Technical Criterion
Documentation - Naming Convention Conformity
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.