Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // -*- json -*-
  2. // vim: set syntax=json
  3.  
  4. {
  5.     "naming": {
  6.         "global-var-prefix": "g_",
  7.         "global-fn-prefix": "",
  8.         "typedef-suffix": "_t",
  9.         "struct-suffix": "_s",
  10.         "union-suffix": "_u",
  11.         "enum-suffix": "_e",
  12.         "require-style": "under_score",
  13.         "minimum-length": 2,
  14.         "allow-short-on-top": false,
  15.         "allow-short-in-loop": true,
  16.         "allow-short-in-block": true,
  17.         "disallow-leading-underscore": true
  18.     },
  19.  
  20.     "lines": {
  21.         "maximum-length": 80,
  22.         "disallow-trailing-space": true,
  23.         // \n, \r\n or \n
  24.         // "require-line-break": "\n",
  25.         "require-newline-at-eof": true
  26.     },
  27.  
  28.     "indentation": {
  29.         "size": 4,
  30.         "maximum-level": 4,
  31.         "flat-switch": false
  32.     },
  33.  
  34.     "whitespace": {
  35.         // After `while`, `do`, `if`, `else`, `for` and `switch`.
  36.         "after-control": true,
  37.         // Before `while` and `else`.
  38.         "before-control": true,
  39.         "before-comma": false,
  40.         "after-comma": true,
  41.         "after-left-paren": false,
  42.         "before-right-paren": false,
  43.         "after-left-square": false,
  44.         "before-right-square": false,
  45.         "before-semicolon": false,
  46.         "after-semicolon": true,
  47.  
  48.         "require-block-on-newline": true,
  49.         "newline-before-members": false,
  50.         "newline-before-block": true,
  51.         "newline-before-control": true,
  52.         "newline-before-fn-body": true,
  53.  
  54.         "between-unary-and-operand": false,
  55.         "around-binary": true,
  56.         // "around-bitwise": false,
  57.         "around-assignment": true,
  58.         "around-accessor": false,
  59.         "in-conditional": true,
  60.         "after-cast": false,
  61.         "in-call": false,
  62.         "after-name-in-fn-def": false,
  63.         "before-declarator-name": true,
  64.         "before-members": true,
  65.         "pointer-place": "declarator",
  66.  
  67.         "allow-alignment" : true
  68.     },
  69.  
  70.     "block": {
  71.         "disallow-empty": true,
  72.         "disallow-short": true,
  73.         "disallow-oneline": true,
  74.         "require-decls-on-top": true,
  75.         "allow-before-decls": ["assert"]
  76.     },
  77.  
  78.     "runtime": {
  79.         "require-threadsafe-fn": false,
  80.         "require-safe-fn": true,
  81.         "require-sized-int": true,
  82.         "require-sizeof-as-fn": false
  83.     }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement