Skip to content

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

Merged
merged 1 commit into from
May 14, 2015
Merged

Added rules for coding style checking. #42

merged 1 commit into from
May 14, 2015

Conversation

sand1k
Copy link
Contributor

@sand1k sand1k commented May 12, 2015

Add new coding style rules and fix appeared issues.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com

@@ -0,0 +1,45 @@
#!/usr/bin/tclsh

# Copyright 2014-2015 Samsung Electronics Co., Ltd.
Copy link
Contributor

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?

@egavrin
Copy link
Contributor

egavrin commented May 13, 2015

Andrey, update copyright for all newly created files.
PS Regarding commit message, "Add new coding style rules and fix appeared issues."

Fix the issues and merge it into mainline.

@sand1k
Copy link
Contributor Author

sand1k commented May 13, 2015

@egavrin, @ruben-ayrapetyan, copyright and commit message were updated, please check.

@egavrin
Copy link
Contributor

egavrin commented May 13, 2015

@sand1k LGTM

}
}

if {$tok_type in {if for do else } || ($tok_type == "while" && $prev_tok != "rightbrace")} {
Copy link
Contributor

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;

@sand1k
Copy link
Contributor Author

sand1k commented May 13, 2015

@ruben-ayrapetyan, issues that you mentioned were fixed.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants