Skip to content

Clone of 390 2#9

Open
illicitonion wants to merge 5 commits intomainfrom
clone-of-390-2
Open

Clone of 390 2#9
illicitonion wants to merge 5 commits intomainfrom
clone-of-390-2

Conversation

@illicitonion
Copy link
Copy Markdown
Member

No description provided.

@illicitonion illicitonion added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. NotCoursework labels Apr 10, 2026
@cyf-ai-code-reviewer
Copy link
Copy Markdown

Thanks for opening a new PR! AI started to review it

Comment on lines +58 to +62
# Is a file?
if stat.S_ISREG(st.st_mode):
result_files.append(file_path)
# Is a directory?
if stat.S_ISDIR(st.st_mode):
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The comments '# Is a file?' and '# Is a directory?' are describing what the following if-statements are checking. Since the code is already using clear function names (stat.S_ISREG and stat.S_ISDIR) and variable names, these comments may not add much value. When code is self-explanatory, do you think it's necessary to add comments that just restate what the code does? How might you decide when a comment is truly helpful versus when it might be redundant?

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

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. NotCoursework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants