Skip to content

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