Skip to content

Commit 908b384

Browse files
committed
Add some configuration files
1 parent b02a111 commit 908b384

File tree

4 files changed

+151
-0
lines changed

4 files changed

+151
-0
lines changed

.clang-format

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: Mozilla
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignConsecutiveMacros: true
9+
AlignEscapedNewlines: Right
10+
AlignOperands: true
11+
AlignTrailingComments: true
12+
AllowAllParametersOfDeclarationOnNextLine: true
13+
AllowShortBlocksOnASingleLine: false
14+
AllowShortCaseLabelsOnASingleLine: false
15+
AllowShortFunctionsOnASingleLine: None
16+
AllowShortIfStatementsOnASingleLine: false
17+
AllowShortLoopsOnASingleLine: false
18+
AlwaysBreakAfterDefinitionReturnType: None
19+
AlwaysBreakAfterReturnType: None
20+
AlwaysBreakBeforeMultilineStrings: false
21+
AlwaysBreakTemplateDeclarations: true
22+
BinPackArguments: true
23+
BinPackParameters: false
24+
BraceWrapping:
25+
AfterCaseLabel: true
26+
AfterClass: true
27+
AfterControlStatement: true
28+
AfterEnum: true
29+
AfterFunction: true
30+
AfterNamespace: false
31+
AfterObjCDeclaration: false
32+
AfterStruct: true
33+
AfterUnion: true
34+
AfterExternBlock: false
35+
BeforeCatch: true
36+
BeforeElse: true
37+
IndentBraces: false
38+
SplitEmptyFunction: true
39+
SplitEmptyRecord: true
40+
SplitEmptyNamespace: true
41+
BreakBeforeBinaryOperators: None
42+
BreakBeforeBraces: Custom
43+
BreakBeforeInheritanceComma: false
44+
BreakBeforeTernaryOperators: true
45+
BreakConstructorInitializersBeforeComma: false
46+
BreakConstructorInitializers: BeforeColon
47+
BreakAfterJavaFieldAnnotations: false
48+
BreakStringLiterals: true
49+
ColumnLimit: 120
50+
CommentPragmas: '^ IWYU pragma:'
51+
CompactNamespaces: true
52+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
53+
ConstructorInitializerIndentWidth: 4
54+
ContinuationIndentWidth: 2
55+
Cpp11BracedListStyle: false
56+
DerivePointerAlignment: false
57+
DisableFormat: false
58+
ExperimentalAutoDetectBinPacking: false
59+
FixNamespaceComments: true
60+
ForEachMacros:
61+
- foreach
62+
- Q_FOREACH
63+
- BOOST_FOREACH
64+
- TEST_GROUP
65+
- TEST_GROUP_BASE
66+
- TEST_BASE
67+
IncludeBlocks: Preserve
68+
IncludeCategories:
69+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
70+
Priority: 2
71+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
72+
Priority: 3
73+
- Regex: '.*'
74+
Priority: 1
75+
IncludeIsMainRegex: '(Test)?$'
76+
IndentCaseLabels: false
77+
IndentPPDirectives: None
78+
IndentWidth: 4
79+
IndentWrappedFunctionNames: false
80+
JavaScriptQuotes: Leave
81+
JavaScriptWrapImports: true
82+
KeepEmptyLinesAtTheStartOfBlocks: true
83+
MacroBlockBegin: ''
84+
MacroBlockEnd: ''
85+
MaxEmptyLinesToKeep: 1
86+
NamespaceIndentation: None
87+
ObjCBlockIndentWidth: 2
88+
ObjCSpaceAfterProperty: true
89+
ObjCSpaceBeforeProtocolList: false
90+
PenaltyBreakAssignment: 2
91+
PenaltyBreakBeforeFirstCallParameter: 19
92+
PenaltyBreakComment: 300
93+
PenaltyBreakFirstLessLess: 120
94+
PenaltyBreakString: 1000
95+
PenaltyExcessCharacter: 1000000
96+
PenaltyReturnTypeOnItsOwnLine: 200
97+
PointerAlignment: Left
98+
RawStringFormats:
99+
- Delimiters: ['pb', 'proto']
100+
Language: TextProto
101+
BasedOnStyle: google
102+
ReflowComments: true
103+
SortIncludes: true
104+
SortUsingDeclarations: true
105+
SpaceAfterCStyleCast: true
106+
SpaceAfterTemplateKeyword: false
107+
SpaceBeforeAssignmentOperators: true
108+
SpaceBeforeParens: ControlStatements
109+
SpaceInEmptyParentheses: false
110+
SpacesBeforeTrailingComments: 1
111+
SpacesInAngles: Leave
112+
SpacesInContainerLiterals: false
113+
SpacesInCStyleCastParentheses: false
114+
SpacesInParentheses: false
115+
SpacesInSquareBrackets: false
116+
Standard: c++20
117+
TabWidth: 4
118+
TypenameMacros: ['TEST']
119+
UseTab: Never
120+
...
121+

.coderabbit.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
language: "en-GB"
3+
early_access: false
4+
reviews:
5+
profile: "chill"
6+
request_changes_workflow: false
7+
high_level_summary: true
8+
poem: false
9+
review_status: true
10+
collapse_walkthrough: false
11+
changed_files_summary: false
12+
estimate_code_review_effort: false
13+
auto_review:
14+
enabled: true
15+
drafts: false
16+
chat:
17+
auto_reply: true

.codespellrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[codespell]
2+
skip = ./libraries,./tests/googletest,./resources,./icons

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
allow:
8+
- dependency-type: "all"
9+
ignore:
10+
- dependency-name: "*"
11+
update-types: ["version-update:semver-patch"]

0 commit comments

Comments
 (0)