Skip to content

Document all bazel rules provided in the repository#13

Merged
Szelethus merged 13 commits intoEricsson:mainfrom
Szelethus:readme_update
Aug 7, 2025
Merged

Document all bazel rules provided in the repository#13
Szelethus merged 13 commits intoEricsson:mainfrom
Szelethus:readme_update

Conversation

@Szelethus
Copy link
Copy Markdown
Contributor

@Szelethus Szelethus commented Jun 24, 2025

I extended the README file to give a describe each rule currently found in the repository do and how can one load and use them. In particular, I wanted to draw attention to the difference in between codechecker_test and code_checker_test. Considering that many of these things are subject to change, I didn't wanna go overboard detailing each parameter yet.

This I hope is one PR among many aiming to improve our documentation. Considering that we are still in the early stages of this repository, the aim and scope are modest, and I'm not trying terribly hard to target a specific audience (soon-to-be-users, contributors, etc). Its simply an informal first impression page where every currently user-facing rules are described at least minimally.

There many other things that need to be done:

  • Specify the minimal requirements and environment needed to pass all tests as they are now (Update Prerequisites #29, Add Getting Started #35 )
  • A simple copy-paste command line to set up the repository and its requirements via apt, not only modules
  • Have an actual user documentation, and update CONTRIBUTING.md.

Preview is here: https://github.com/Szelethus/codechecker_bazel/blob/readme_update/README.md

I extended the README file to give a bit more detail on what each of the
rules do and how can one load and use them. In particular, I wanted to
draw attention to the difference in between codechecker_test and
code_checker_test. Considering that many of these things are subject to
change, I didn't wanna go overboard detailing each parameter.
@Szelethus Szelethus requested review from dkrupp and nettle June 24, 2025 12:09
@Szelethus Szelethus added the documentation Improvements or additions to documentation label Jun 24, 2025
Copy link
Copy Markdown
Collaborator

@nettle nettle left a comment

Choose a reason for hiding this comment

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

Looks good as a start! Please see some comments.

Comment thread README.md
Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@Szelethus Szelethus requested review from furtib and nettle July 29, 2025 12:47
@Szelethus
Copy link
Copy Markdown
Contributor Author

I updated the summary to lay out the aim of the PR, and have created issues about the problems we raised here. As the codebase matures and these problems are fixed, rules are merged, I'm more than happy to ammend. Do you think this page is okay now?

Comment thread README.md
nettle
nettle previously requested changes Jul 29, 2025
Copy link
Copy Markdown
Collaborator

@nettle nettle left a comment

Choose a reason for hiding this comment

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

General recommendation/comment: I think we should keep this simpler and do not describe things which are not working, not implemented, may cause questions we have no answers to etc. We will add details later. Besides (and this is important!) - nobody reads the documentation when everything is intuitive and working. And everyone is always angry at misleading documentation. Another thing - the best documentation is working example. Besides, README must be a very short document and not an academic paper. We should consider wiki with API description instead.

Comment thread README.md Outdated
Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md Outdated
Copy link
Copy Markdown
Member

@dkrupp dkrupp 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 it is good approach that we document the purpose of each rule in a consize way, because any potential user and/or contributor of this project would better understand the intended purpose of the rules and implementation status, which is important in an evolving project like this.

Adding API documentation (to the bazel rules) is a good idea.

I think with the minor corrections, the documentation is ready to land.

Comment thread README.md Outdated
Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@nettle nettle requested review from nettle and removed request for nettle July 31, 2025 16:55
Copy link
Copy Markdown
Collaborator

@nettle nettle left a comment

Choose a reason for hiding this comment

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

There is one broken link and a few suggestions

@Szelethus
Copy link
Copy Markdown
Contributor Author

I made some changes today but the patch is still not ready for another round of reviews.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@Szelethus
Copy link
Copy Markdown
Contributor Author

Mind that it seems like simply writing #31 won't make for a clickable link in the README, only in comments and issue/PR summaries.

@Szelethus Szelethus requested review from dkrupp, furtib and nettle August 5, 2025 14:55
@Szelethus
Copy link
Copy Markdown
Contributor Author

I think the patch is ready for another round. @nettle, @dkrupp, I've tried to address all your inline comments, either by fixing them or providing satisfactory answers. Where I felt it was appropriate, I marked the conversation resolved, but where I had some lingering doubt, I left that decision for you. What do you think needs to be done before merging this?

@furtib Is the thread regarding the output directory correct according to the best of your knowledge?

Summarizing the PR summary, I don't see this PR as the final stage in terms documentation, just a step in what I believe to be the right direction.

Comment thread README.md
Comment thread README.md
@Szelethus Szelethus mentioned this pull request Aug 6, 2025
Copy link
Copy Markdown
Member

@dkrupp dkrupp left a comment

Choose a reason for hiding this comment

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

LGTM

@Szelethus Szelethus dismissed nettle’s stale review August 7, 2025 08:19

We discussed in a meeting that @nettle has no time to review the PR further, and is not opposed to us merging it if we feel it's ready.

@Szelethus Szelethus merged commit 1542791 into Ericsson:main Aug 7, 2025
1 check passed
furtib pushed a commit to furtib/rules_codechecker that referenced this pull request Aug 27, 2025
I extended the README file to give a describe each rule currently found
in the repository do and how can one load and use them. In particular, I
wanted to draw attention to the difference in between codechecker_test
and code_checker_test. Considering that many of these things are subject
to change, I didn't wanna go overboard detailing each parameter yet.

This I hope is one PR among many aiming to improve our documentation.
Considering that we are still in the early stages of this repository,
the aim and scope are modest, and I'm not trying terribly hard to target
a specific audience (soon-to-be-users, contributors, etc). Its simply an
informal first impression page where every currently user-facing rules
are described at least minimally.

There many other things that need to be done:
* Specify the minimal requirements and environment needed to pass all
tests as they are now
(Ericsson#29, Ericsson#35 )
* A simple copy-paste command line to set up the repository and its
requirements via apt, not only modules
* Have an actual user documentation, and update CONTRIBUTING.md.

Preview is here:
https://github.com/Szelethus/codechecker_bazel/blob/readme_update/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants