2 Coding Style
John Johansen edited this page 2018-03-06 14:57:47 +00:00

The apparmor project coding style is governed by the language used for a for a given piece of code.

Kernel

Kernel patches must follow the linux kernel coding style guidelines.

Userspace

C/C++ libraries, and tools should follow the linux kernel coding style guidelines with the exception that lines longer than 80 characters are allowed where appropriate.

Python code should follow the pycode or pep8 style with the exception that lines longer that 80 characters are allowed where appropriate.