-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add documentation for forbidden-io-functions option of forbidden_io_function_checker #947
Add documentation for forbidden-io-functions option of forbidden_io_function_checker #947
Conversation
Pull Request Test Coverage Report for Build 6241107158
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vsahni3 great work. I left two inline comments. Additionally, please add your name to the list of contributors (at the bottom of the README).
docs/checkers/index.md
Outdated
@@ -2131,6 +2131,17 @@ if __name__ == "__main__": | |||
name = input() | |||
``` | |||
|
|||
By default, [`input`], [`open`] and [`print`] are not allowed. However, you can choose which I/O functions specifically to disallow using the forbidden-io-functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write the option name forbidden-io-functions inside backticks (`) so that it appears in code font.
docs/checkers/index.md
Outdated
@@ -2131,6 +2131,17 @@ if __name__ == "__main__": | |||
name = input() | |||
``` | |||
|
|||
By default, [`input`], [`open`] and [`print`] are not allowed. However, you can choose which I/O functions specifically to disallow using the forbidden-io-functions | |||
option. This takes a list of built-in function names that should not be used. For example, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the word "built-in". (The functions could be from anywhere.)
Great work @vsahni3! |
Motivation and Context
There is currently no documentation for the forbidden-io-functions configuration option of the forbidden_io_function_checker. This can make it difficult for users to know about its existence, how to use it, and what additional flexibility it offers.
Your Changes
This pull request adds documentation for the above configuration option detailing its purpose, how to use it, and what it should be used for.
Type of change (select all that apply):
Testing
To ensure the documentation is readable and well-formatted, I built the documentation website to see how the users would view it and made sure everything was as expected.
Checklist