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

Spell checker #5

Closed
lordmauve opened this issue May 26, 2015 · 1 comment
Closed

Spell checker #5

lordmauve opened this issue May 26, 2015 · 1 comment

Comments

@lordmauve
Copy link
Owner

Originally reported by: Daniel Pope (Bitbucket: lordmauve, GitHub: lordmauve)


In #4, Dave was confused because his misnamed function was not being picked up by the Pygame Zero runtime.

To mitigate this danger, we could include a spell checker that identifies names in the module namespace, which look like misspellings of the names we expect. The spellchecker would emit warnings at startup time, but would not otherwise affect the program's behaviour.

The names we could spellcheck are a relatively small list, including:

  • draw update and the on_mouse_*, on_key_* hooks
  • Parameters names for those functions
  • TITLE, WIDTH, HEIGHT and ICON

There is a fairly succinct example code for a spellchecker here, which should be adapted to also catch:

  • Case problems
  • Missing underscores

@lordmauve
Copy link
Owner Author

Original comment by Daniel Pope (Bitbucket: lordmauve, GitHub: lordmauve):


Resolved by d184894 and a5992e8 targetted for 1.1

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

No branches or pull requests

1 participant