Skip to content

Commit

Permalink
馃帹 Code format and linting config update (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
burgholzer committed Jun 20, 2024
1 parent 677b643 commit 38d188a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FormatStyle: file

Checks: |
clang-diagnostic-*,
clang-analyzer-*,
boost-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
-bugprone-unchecked-optional-access,
clang-analyzer-*,
-clang-analyzer-core.NullDereference,
clang-diagnostic-*,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-non-private-member-variables-in-classes,
Expand Down Expand Up @@ -63,7 +63,9 @@ CheckOptions:
- key: readability-identifier-naming.ParameterCase
value: camelBack
- key: readability-identifier-naming.ParameterIgnoredRegexp
value: ".*ZX.*|.*SWAP.*|.*CEX.*|.*DD.*|.*EQ.*"
value: ".*ZX.*|.*SWAP.*|.*CEX.*|.*DD.*|.*EQ.*|.*_"
- key: readability-identifier-naming.ConstantParameterIgnoredRegexp
value: ".*ZX.*|.*SWAP.*|.*CEX.*|.*DD.*|.*EQ.*|.*_"
- key: readability-identifier-naming.NamespaceCase
value: lower_case
- key: readability-identifier-naming.StaticConstantCase
Expand Down
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{py,pyi}]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[{*.{cmake,cmake.in},CMakeLists.txt}]
max_line_length = 100
1 change: 0 additions & 1 deletion .git_archival.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
ref-names: $Format:%D$
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ instance/

# Sphinx documentation
docs/_build/
docs/api/

# PyBuilder
.pybuilder/
Expand Down Expand Up @@ -137,7 +138,7 @@ _skbuild/

# Any build dirs in the tests
test/**/build/
/src/mqt/qmap/_version.py
/src/mqt/**/_version.py

# Common editor files
*~
Expand Down Expand Up @@ -170,3 +171,6 @@ Thumbs.db
/docs/**/build
.vs
out/build

node_modules/
wheelhouse/

0 comments on commit 38d188a

Please sign in to comment.