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

Create Tutorial - How to read, write and modify linter checks (B) #378

Open
U8NWXD opened this issue Aug 26, 2024 · 0 comments
Open

Create Tutorial - How to read, write and modify linter checks (B) #378

U8NWXD opened this issue Aug 26, 2024 · 0 comments
Labels

Comments

@U8NWXD
Copy link
Member

U8NWXD commented Aug 26, 2024

Skills covered

Lint Checks, python, Reading/Modifying/Understanding Lint checks.

Similar issues

Existing relevant pages

Example

Write a lint check to avoid using string formatting using %s or .format().

Example:

Before -
get_redirect_route( r'%s/can_access_classroom_page' % feconf.ACCESS_VALIDATION_HANDLER_PREFIX, access_validators.ClassroomAccessValidationHandler),

After -
get_redirect_route( f"{feconf.ACCESS_VALIDATION_HANDLER_PREFIX}/can_access_classroom_page", access_validators.ClassroomAccessValidationHandler ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants