Skip to content

Prefer to use URI.open and File.open instead of Kernel.open#802

Merged
rafaelfranca merged 3 commits into
rails:mainfrom
hsbt:suppress-warning-codeql
Feb 23, 2023
Merged

Prefer to use URI.open and File.open instead of Kernel.open#802
rafaelfranca merged 3 commits into
rails:mainfrom
hsbt:suppress-warning-codeql

Conversation

@hsbt

@hsbt hsbt commented Dec 13, 2022

Copy link
Copy Markdown
Contributor

👋 CodeQL detects "Use of Kernel.open or IO.read with a non-constant value" warnings in https://github.com/ruby/ruby. I hope to suppress them.

@deivid-rodriguez

Copy link
Copy Markdown
Contributor

I fixed the URI.open ones similarly at #787. Not yet attended unfortunately!

@hsbt

hsbt commented Dec 13, 2022

Copy link
Copy Markdown
Contributor Author

Oh! Thanks to share it.

@deivid-rodriguez

Copy link
Copy Markdown
Contributor

Should we enable Security/Open in RuboCop configuration file too?

@hsbt

hsbt commented Dec 15, 2022

Copy link
Copy Markdown
Contributor Author

👍 or add CodeQL actions.

@deivid-rodriguez

Copy link
Copy Markdown
Contributor

That too, just thought of RuboCop since it's already used.

@rafaelfranca

Copy link
Copy Markdown
Member

Can you please rebase this PR?

@hsbt hsbt force-pushed the suppress-warning-codeql branch from 47d4a06 to c88f213 Compare February 9, 2023 01:40
@hsbt hsbt force-pushed the suppress-warning-codeql branch from c88f213 to 16db563 Compare February 9, 2023 01:51
@hsbt

hsbt commented Feb 9, 2023

Copy link
Copy Markdown
Contributor Author

@rafaelfranca done 🚀

@rafaelfranca rafaelfranca merged commit 2d69011 into rails:main Feb 23, 2023
@hsbt hsbt deleted the suppress-warning-codeql branch February 24, 2023 00:30
@hsbt

hsbt commented Feb 24, 2023

Copy link
Copy Markdown
Contributor Author

Thanks @rafaelfranca ❤️

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.

3 participants