Skip to content

addons/namingng.py: Improve output and unit test.#5820

Merged
danmar merged 2 commits into
cppcheck-opensource:mainfrom
Rail-Connected:pullreq9
Jan 3, 2024
Merged

addons/namingng.py: Improve output and unit test.#5820
danmar merged 2 commits into
cppcheck-opensource:mainfrom
Rail-Connected:pullreq9

Conversation

@mvds00
Copy link
Copy Markdown
Contributor

@mvds00 mvds00 commented Jan 2, 2024

For naming issues reported, column was always set to 0, which is now fixed.

Global variable naming errors were reported as "Public member" issues, which is also fixed.

The unit test now covers namespaces, class names, public and private member variables.

mvds00 added 2 commits January 2, 2024 17:25
addons/namingng.py reported all issues on column 0, which is now fixed.

The unit test is updated, and expanded with tests for checking class name,
namespace, public and private member variables.
Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

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

I think this is acceptable and can be merged if you feel it is ready.

please note my comment that the "column" can't be calculated properly when using directives.

Comment thread addons/namingng.py
@mvds00
Copy link
Copy Markdown
Contributor Author

mvds00 commented Jan 3, 2024

I think it is ready

@danmar danmar merged commit 8261ded into cppcheck-opensource:main Jan 3, 2024
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.

2 participants