-
Notifications
You must be signed in to change notification settings - Fork 683
Added rules for coding style checking. #42
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
Conversation
@@ -0,0 +1,45 @@ | |||
#!/usr/bin/tclsh | |||
|
|||
# Copyright 2014-2015 Samsung Electronics Co., Ltd. |
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.
"Copyright 2015" as it is new file, created in the current year, isn't it correct?
Andrey, update copyright for all newly created files. Fix the issues and merge it into mainline. |
@egavrin, @ruben-ayrapetyan, copyright and commit message were updated, please check. |
@sand1k LGTM |
} | ||
} | ||
|
||
if {$tok_type in {if for do else } || ($tok_type == "while" && $prev_tok != "rightbrace")} { |
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.
The following case of style breaking is not catched:
while (p)
{
p = false;
}
while (q)
q = false;
@ruben-ayrapetyan, issues that you mentioned were fixed. |
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
Add new coding style rules and fix appeared issues.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com