Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

169 lines
5.0KB

  1. ---
  2. Language: Cpp
  3. # BasedOnStyle: WebKit
  4. # Access specifiers are best unindented, to keep them easy to spot:
  5. AccessModifierOffset: -4
  6. # Keep them together. Would be preferable to put all arguments on a new line
  7. AlignAfterOpenBracket: true
  8. # Newline escapes should be aligned, they're prettier that way
  9. AlignEscapedNewlinesLeft: false
  10. # Same with OpenBracket alignment. No need for that.
  11. AlignOperands: false
  12. # Purdy
  13. AlignTrailingComments: true
  14. AlignConsecutiveAssignments: true
  15. AlignConsecutiveDeclarations: true
  16. # Yuck:
  17. AllowAllParametersOfDeclarationOnNextLine: false
  18. AllowShortBlocksOnASingleLine: false
  19. AllowShortCaseLabelsOnASingleLine: false
  20. AllowShortIfStatementsOnASingleLine: false
  21. AllowShortLoopsOnASingleLine: false
  22. AllowShortFunctionsOnASingleLine: true
  23. # Ew, no.
  24. AlwaysBreakAfterDefinitionReturnType: false
  25. # Not mandatory...
  26. AlwaysBreakTemplateDeclarations: true
  27. # Readability:
  28. AlwaysBreakBeforeMultilineStrings: true
  29. # Nice...
  30. BreakBeforeBinaryOperators: All
  31. BreakBeforeTernaryOperators: true
  32. # Yessir
  33. BreakConstructorInitializersBeforeComma: true
  34. # Please, keep it readable:
  35. BinPackParameters: false
  36. BinPackArguments: false
  37. # Not a hard and fast rule, but yeah
  38. ColumnLimit: 100
  39. # Bleh
  40. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  41. # This is a tough one... it can be confusing to seem them alligned with code
  42. ConstructorInitializerIndentWidth: 4
  43. # No, there's a One True Way to align these things
  44. DerivePointerAlignment: false
  45. # No need
  46. IndentCaseLabels: false
  47. # Gross
  48. IndentWrappedFunctionNames: false
  49. IndentFunctionDeclarationAfterType: false
  50. MaxEmptyLinesToKeep: 1
  51. KeepEmptyLinesAtTheStartOfBlocks: true
  52. # Never ever ever
  53. NamespaceIndentation: None
  54. # These feel about right...
  55. PenaltyBreakBeforeFirstCallParameter: 600
  56. PenaltyBreakComment: 300
  57. PenaltyBreakString: 1000
  58. PenaltyBreakFirstLessLess: 120
  59. PenaltyExcessCharacter: 1000000
  60. PenaltyReturnTypeOnItsOwnLine: 60
  61. PointerAlignment: Left
  62. # Keep it away:
  63. SpacesBeforeTrailingComments: 2
  64. Cpp11BracedListStyle: true
  65. Standard: Cpp11
  66. IndentWidth: 4
  67. TabWidth: 8
  68. UseTab: Never
  69. BreakBeforeBraces: Attach
  70. # Used to do this, not anymore
  71. SpacesInParentheses: false
  72. SpacesInSquareBrackets: false
  73. SpacesInAngles: false
  74. SpaceInEmptyParentheses: false
  75. SpacesInCStyleCastParentheses: false
  76. SpaceAfterCStyleCast: false
  77. SpacesInContainerLiterals: true
  78. SpaceBeforeAssignmentOperators: true
  79. ContinuationIndentWidth: 4
  80. CommentPragmas: '^ IWYU pragma:'
  81. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
  82. SpaceBeforeParens: ControlStatements
  83. DisableFormat: false
  84. ...
  85. ---
  86. Language: JavaScript
  87. # BasedOnStyle: WebKit
  88. # Access specifiers are best unindented, to keep them easy to spot:
  89. AccessModifierOffset: -4
  90. # Keep them together. Would be preferable to put all arguments on a new line
  91. AlignAfterOpenBracket: true
  92. # Newline escapes should be aligned, they're prettier that way
  93. AlignEscapedNewlinesLeft: false
  94. # Same with OpenBracket alignment. No need for that.
  95. AlignOperands: false
  96. # Purdy
  97. AlignTrailingComments: true
  98. # Yuck:
  99. AllowAllParametersOfDeclarationOnNextLine: false
  100. AllowShortBlocksOnASingleLine: true
  101. AllowShortCaseLabelsOnASingleLine: false
  102. AllowShortIfStatementsOnASingleLine: false
  103. AllowShortLoopsOnASingleLine: false
  104. AllowShortFunctionsOnASingleLine: true
  105. # Ew, no.
  106. AlwaysBreakAfterDefinitionReturnType: false
  107. # Not mandatory...
  108. AlwaysBreakTemplateDeclarations: false
  109. # Readability:
  110. AlwaysBreakBeforeMultilineStrings: true
  111. # Nice...
  112. BreakBeforeBinaryOperators: All
  113. BreakBeforeTernaryOperators: true
  114. # Yessir
  115. BreakConstructorInitializersBeforeComma: true
  116. # Please, keep it readable:
  117. BinPackParameters: false
  118. BinPackArguments: false
  119. # Not a hard and fast rule, but yeah
  120. ColumnLimit: 100
  121. # Bleh
  122. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  123. # This is a tough one... it can be confusing to seem them alligned with code
  124. ConstructorInitializerIndentWidth: 4
  125. # No, there's a One True Way to align these things
  126. DerivePointerAlignment: false
  127. # No need
  128. IndentCaseLabels: false
  129. # Gross
  130. IndentWrappedFunctionNames: false
  131. IndentFunctionDeclarationAfterType: false
  132. # Two empty lines are useful as physical seperators
  133. MaxEmptyLinesToKeep: 2
  134. KeepEmptyLinesAtTheStartOfBlocks: true
  135. # Never ever ever
  136. NamespaceIndentation: None
  137. # These feel about right...
  138. PenaltyBreakBeforeFirstCallParameter: 600
  139. PenaltyBreakComment: 300
  140. PenaltyBreakString: 1000
  141. PenaltyBreakFirstLessLess: 120
  142. PenaltyExcessCharacter: 1000000
  143. PenaltyReturnTypeOnItsOwnLine: 60
  144. PointerAlignment: Left
  145. # Keep it away:
  146. SpacesBeforeTrailingComments: 2
  147. Cpp11BracedListStyle: true
  148. Standard: Cpp11
  149. IndentWidth: 2
  150. TabWidth: 8
  151. UseTab: Never
  152. # Attach is the One True Brace Style
  153. BreakBeforeBraces: Attach
  154. # Used to do this, not anymore
  155. SpacesInParentheses: false
  156. SpacesInSquareBrackets: false
  157. SpacesInAngles: false
  158. SpaceInEmptyParentheses: false
  159. SpacesInCStyleCastParentheses: false
  160. SpaceAfterCStyleCast: false
  161. SpacesInContainerLiterals: false
  162. SpaceBeforeAssignmentOperators: true
  163. ContinuationIndentWidth: 4
  164. CommentPragmas: '^ IWYU pragma:'
  165. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
  166. SpaceBeforeParens: ControlStatements
  167. DisableFormat: false
  168. ...