Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Latest commit

 

History

History
31 lines (25 loc) · 1.03 KB

CONTRIBUTING.md

File metadata and controls

31 lines (25 loc) · 1.03 KB

CollaboDev

Contributing Guidelines

General

  • Variable names, front end HTML should all be written in British English - American English will be frowned upon

Python

  • Code should conform to flake8 and pylint linters
  • If a view does not use the request variable, it should be renamed to _request

HTML

  • HTML between django {% %} tags should be indented
  • Inverted commas should be used for tag attributes

JavaScript

  • Code should conform to the eslint plugin 'eslint-plugin-standard'
  • Files containing exported functions should contain an exported declaration on the first line as shown below:
/* exported foo */

function foo () {
 return 'bar'
}
  • Strings should be contained in apostrophes - not inverted commas

CSS

  • Each CSS rule set should have one blank line between itself and other rule sets
  • Declarations should be ordered alphabetically within a rule set*

*Guideline has yet to be implemented across the whole project