Calendar:Style Guide: Difference between revisions

Jump to navigation Jump to search
Update license header link to https://www.mozilla.org/MPL/headers/
mNo edit summary
(Update license header link to https://www.mozilla.org/MPL/headers/)
 
Line 12: Line 12:
= Common/General =  
= Common/General =  
* No vim/emacs modelines in any file
* No vim/emacs modelines in any file
* Use the license boilerplate from [http://www.mozilla.org/MPL/boilerplate-1.1/ http://www.mozilla.org/MPL/boilerplate-1.1/]
* Use the license boilerplate from https://www.mozilla.org/MPL/headers/
* Avoid duplicate code: Use existing utility functions (example: base/src/calUtils.js) if possible
* Avoid duplicate code: Use existing utility functions (example: base/src/calUtils.js) if possible
* Create your own utility functions if code is being used more than once. If you cannot find a utility file to place your function in, create your own. Do so sparingly.  
* Create your own utility functions if code is being used more than once. If you cannot find a utility file to place your function in, create your own. Do so sparingly.  
canmove, Confirmed users
1,126

edits

Navigation menu