Coding Style

Precedence

The Adblock Plus coding style is based on others. Our rules (both general and language specific) always overrule referenced style guides. The language specific sections overrule the general section.

Consistency

Consistency is most important: Be consistent within functions, files, modules and projects. Making existing code conform with this style guide is fine, but it should happen in dedicated commits, preferably for a whole module or project at once.

General

JavaScript

HTML and CSS

Python

Java

C++

Objective-C

Puppet