diff --git a/Code-Standards.md b/Code-Standards.md index 2399fc4..96bfe41 100644 --- a/Code-Standards.md +++ b/Code-Standards.md @@ -100,4 +100,51 @@ popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { return false; } }); +``` + +#### Variable names and scope +Variable names has to be clear for what it is used. Scope should be defined properly for the variable. Example, + +``` +private TextView issueNumber; +private ImageView issueAssigneeAvatar; +``` + +#### Layout ID's name +Every layout must have components with defined ID's. Example, + +``` + + + + + +``` + +#### String names +All the string names in strings.xml must be meaningful. Also check for the string if it is already defined. + +``` +Pull Request was merged successfully +Pull Request is not available for merge ``` \ No newline at end of file