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

Check/enforce naming convention for command names #145

Closed
bengtmartensson opened this issue Aug 11, 2016 · 1 comment
Closed

Check/enforce naming convention for command names #145

bengtmartensson opened this issue Aug 11, 2016 · 1 comment

Comments

@bengtmartensson
Copy link
Owner

bengtmartensson commented Aug 11, 2016

For the command names in the remote editor, there should be selectable, configurable naming schemes, e.g.

  • C identifier syntax [_A-Za-z][_0-9A-Za-z]*
  • C idenfifier (like above + checks against reserved words)
  • Linux input symbols (like Lirc wants; parse /usr/include/linux/input-event-codes.h dynamically? (with fallback))
  • NMTOKEN ("XML names")
  • ...

This should be either checked on request, warned when violated agains, or enforced. Should also be API callable, for e.g. an export that needs C compatible names.

Generally, command names with spaces should not necessary trigger warnings (only if requested). The export formats disallowing spaces should fix them.

@bengtmartensson
Copy link
Owner Author

Currently, no-one cares for this.

@bengtmartensson bengtmartensson closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2024
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