Submitty / Submitty

Homework Submission, Automated Grading, and TA grading system.
http://submitty.org
BSD 3-Clause "New" or "Revised" License
637 stars 772 forks source link

Need to define a code style convention for SQL #5582

Open Kevin-MM opened 4 years ago

Kevin-MM commented 4 years ago

What problem are you trying to solve with Submitty We have defined coding style conventions for most languages in the code base. See coding style guide. Most of which are enforced through linting. We need to define a standard for writing SQL. For example is it select * from users; or SELECT * FROM users;

Describe the way you'd like to solve this problem Submitty developers should agree on a convention, and we can then add that specification to the developer documentation and maybe add SQL linting if a tool exists.

MasterOdin commented 4 years ago

related to #4736, though the focus is somewhat different.

At least for your example, the rule would be "All reserved keywords should be capitalized (e.g. SELECT or INSERT)".