Skip to content

Commit

Permalink
Completely refactored
Browse files Browse the repository at this point in the history
- simplified the code,
- dependency updated and handled via cmake instead of git submodules
- using spdlog,
- no ECB namespace,
- checking naming convention via clang-tidy,
- ecb_fetcher tool for getting the data,
- instructions how to set it up with nginx and cron,
  • Loading branch information
opokatech committed Apr 7, 2024
1 parent 752b5d7 commit 4bafb59
Show file tree
Hide file tree
Showing 77 changed files with 2,259 additions and 171,157 deletions.
49 changes: 28 additions & 21 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,31 +1,38 @@
BasedOnStyle: LLVM
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignOperands: true
BreakBeforeBraces: Custom
AllowShortFunctionsOnASingleLine: All
AlwaysBreakTemplateDeclarations: 'Yes'
BasedOnStyle: LLVM
BraceWrapping:
AfterClass: false
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterEnum: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
ColumnLimit: 120
IndentWidth: 4
SplitEmptyRecord: true
BreakBeforeBraces: Custom
ColumnLimit: 120
IndentCaseLabels: true
IndentPPDirectives: BeforeHash
IndentWidth: 4
Language: Cpp
NamespaceIndentation: All
ObjCBlockIndentWidth: 4
# SpaceBeforeInheritanceColon: true
Standard: Cpp11
TabWidth: 4
UseTab: Never
SpaceBeforeInheritanceColon: false
SpaceBeforeRangeBasedForLoopColon: false
Standard: c++17
TabWidth: 4
UseTab: Never
51 changes: 51 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Checks: '-checks=-*,bugprone-*,clang-analyzer-*,cppcoreguidelines-*,modernize-*,readability-*,
-bugprone-unchecked-optional-access,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-type-vararg,
-modernize-loop-convert,
-modernize-pass-by-value,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type,
-readability-braces-around-statements,
-readability-convert-member-functions-to-static,
-readability-identifier-length,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-function-size,
-readability-magic-numbers,
-readability-named-parameter,
-readability-simplify-boolean-expr,
-readability-uppercase-literal-suffix,
-readability-use-anyofallof'

WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
CheckOptions:
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
value: true
- key: modernize-use-override.IgnoreDestructors
value: 1
- key: readability-identifier-naming.ClassCase
value: Camel_Snake_Case
- key: readability-identifier-naming.ClassMemberCase
value: lower_case
- key: readability-identifier-naming.MemberPrefix
value: 'm_'
- key: readability-identifier-naming.ClassMethodCase
value: lower_case
- key: readability-identifier-naming.ConstexprVariableCase
value: UPPER_CASE
- key: readability-identifier-naming.StaticConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.LocalVariableCase
value: lower_case
...
Loading

0 comments on commit 4bafb59

Please sign in to comment.