Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add blank .semgrepignore & fix findings #4417

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

kernelkind
Copy link
Contributor

If .semgrepignore is not present, semgrep uses a default .semgrepignore file. The defaults excluded some tests which is not the desired outcome.

Add a blank .semgrepignore file to indicate that nothing additional to .gitignore should be ignored by semgrep.

Also, add a second pattern to ban-direct-sleep-in-tests rule to find the sleep function when the fully qualified function name is present.

@kernelkind
Copy link
Contributor Author

I removed fedimint-load-test-tool/ because the code inside the directory seem to not be tests themselves, but tools to run tests. I can re-add it and add the sleep_in_test methods if it actually is needed though

If .semgrepignore is not present, semgrep uses a default .semgrepignore
file. The defaults excluded some tests which is not the desired outcome.

Add a blank .semgrepignore file to indicate that nothing additional to
.gitignore should be ignored by semgrep.

Also, add a second pattern to ban-direct-sleep-in-tests rule to find
the sleep function when the fully qualified function name is present.
@kernelkind kernelkind marked this pull request as ready for review February 26, 2024 02:52
@kernelkind kernelkind requested review from a team as code owners February 26, 2024 02:52
@elsirion elsirion added this pull request to the merge queue Feb 26, 2024
@elsirion
Copy link
Contributor

Good catch, thx!

Merged via the queue into fedimint:master with commit dd00932 Feb 26, 2024
20 checks passed
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.

None yet

3 participants