Skip to content

Conversation

@jpodivin
Copy link
Contributor

@jpodivin jpodivin commented Jan 9, 2026

While working on code for Log Detective, I have noticed that most checkers don't have any documentation.
If they are short, the code is enough, but in some cases they can be complex and have side effects.

I have written some short explanatory docstrings for those checkers that seemed to need them,
and placed them on the class level, so they can be seen when someone hovers over the class name in IDE.
Technically, you could put them in the _pre_check method, but this way it's more user friendly.

I deliberately decided against describing operation of simple checkers and details of operation.
This PR is only focusing on parts that may give people trouble.

RELEASE NOTES BEGIN

Enhanced documentation of checker classes.

RELEASE NOTES END

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This is a great initiative to add documentation to the checkers. The added docstrings improve the code's readability. I've noticed a few places where the docstring formatting could be improved to better align with PEP 257 for multi-line docstrings. I've left a few suggestions to address this, as well as a minor typo.

@centosinfra-prod-github-app
Copy link
Contributor

@jpodivin jpodivin force-pushed the checkers/docstrings branch from c4f43d8 to 8c8f2b3 Compare January 9, 2026 15:41
@centosinfra-prod-github-app
Copy link
Contributor

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

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant