Skip to content

#19 Use clang-format#255

Draft
tzijnge wants to merge 11 commits into
mainfrom
#19-use-clang-format
Draft

#19 Use clang-format#255
tzijnge wants to merge 11 commits into
mainfrom
#19-use-clang-format

Conversation

@tzijnge
Copy link
Copy Markdown
Owner

@tzijnge tzijnge commented May 26, 2026

❇️ @coderabbitai

Description

Fixes issue #19

@coderabbitai summary

Type

  • feature
  • bugfix
  • doc
  • removal
  • misc

* Check clang-format with reviewdog
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 26, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: dd530686-ffe3-4006-8b14-ba093c4d1628

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tzijnge tzijnge mentioned this pull request May 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 26, 2026

Test Results

  2 files  ±0    2 suites  ±0   19s ⏱️ -1s
678 tests +8  678 ✅ +8  0 💤 ±0  0 ❌ ±0 
753 runs  +8  753 ✅ +8  0 💤 ±0  0 ❌ ±0 

Results for commit cb94d93. ± Comparison against base commit 5abba51.

♻️ This comment has been updated with latest results.

tzijnge added 8 commits May 26, 2026 09:20
* Added configuration file and exlusions for clang-format
* Better exclusions. Fixed some rules
* Applied formatting
* Tabs to spaces for generated code
* Stop using digit separator. It's a c++14 feature that clang-format doesn't handle correctly when in C++11 mode
* Split LrpcTypes into LrpcBaseTypes.hpp and byte-specific code in LrpcBaseTypes.hpp
* Removed dependency on code-generation package. Using custom code in src/codegen/cppfile/cpp_file.py
* Fixed stale imports
* Fix long lines
* Some CppFile updates
* Update files for new code generation
self._indent = indent
self._level = 0
self._owns_file = writer is None
self._file: TextIO = Path(filename).open("w") if writer is None else writer # noqa: SIM115
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
R1732: Consider using 'with' for resource-allocating operations (consider-using-with)

self._indent = indent
self._level = 0
self._owns_file = writer is None
self._file: TextIO = Path(filename).open("w") if writer is None else writer # noqa: SIM115
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
W1514: Using open without explicitly specifying an encoding (unspecified-encoding)

@@ -0,0 +1 @@
from .cpp_file import CppFile as CppFile
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
R0801: Similar lines in 2 files

@@ -0,0 +1 @@
from .cpp_file import CppFile as CppFile
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
R0801: Similar lines in 2 files

tzijnge added 2 commits June 1, 2026 13:46
* Some clang-format ignores
* Refactor generation of LrpcBaseTypes.hpp and LrpcByteTypes.hpp
* Update linkspector
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 1, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
12 New issues

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant