-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Remove semicolons from JS tests #12058
Conversation
This is fixed. |
@twbs Can anybody review this as soon as possible? Every single change in JS unit test files may require start from scratch, so I need to do all the things again. 😟 |
Given the larger chunks of JS being rewritten, we need @fat to look into this. |
Even after setting |
Hm? |
NVM, I fixed the issues myself. |
@zdroid: do you mind if I make a new PR for this and then you just rebase for the semicolons? |
Hm. What was the problem with tests? 2014-02-13 9:09 GMT+01:00 XhmikosR [email protected]:
Zlatan Vasović - ZDroid |
Well, it simply is easier for me to review my changes. This is one patch with indentation changes + semicolons. |
See #12720. After that is in, you can rebase your branch and update the PR to get only the semicolon changes. |
JSHint can be bad with indent checking, especially when there is a indent Can these pull requests be done vice versa? First this for general coding You can also get access to ZDroid/bootstrap and add commits directly here, 2014-02-13 9:21 GMT+01:00 XhmikosR [email protected]:
Zlatan Vasović - ZDroid |
This was much easier for me to do it myself than reviewing this; if you hadn't mixed the indentation changes with the others I wouldn't mind... |
BTW, I'm all for not using JSHint's indent option but for now it does the job as you can see from my PR. We can switch to JSCS after that. |
Hm. I fixed indent, removed semicolons and removed transition support 2014-02-13 9:42 GMT+01:00 XhmikosR [email protected]:
Zlatan Vasović - ZDroid |
I will have a closer look later today and rebase your patch on top of mine. |
OK. 2014-02-13 9:50 GMT+01:00 XhmikosR [email protected]:
Zlatan Vasović - ZDroid |
@zdroid: I checked your changes and I'm not sure they all make sense, so I won't include them in my PR. I suggest you wait until the other PR is merged and then create separate patches for the changes you make. For example, the semicolons change is fine, but some others aren't, Rebasing wasn't so hard but there will be conflicts ofc. |
I also tried JSCS but its indentation check seems weird to me... So I'll definitely leave this for another time. |
OK so far. 2014-02-13 17:41 GMT+01:00 XhmikosR [email protected]:
Zlatan Vasović - ZDroid |
I had a closer look and the remaining indentation changes break |
better? |
Almost there :P I think the semicolons removal should be done separately from the transition change. |
* Licensed under the MIT license. | ||
*/ | ||
|
||
/*global QUnit:true, alert:true*/ |
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.
This should also be separate.
Lol. So I should make 3 (or 4) pull requests. :D Can I just make 2: for semicolons and for the rest? |
I meant separate patches, not separate pull requests. |
Just to clarify, basically a single PR with separate commits? |
I just don't like pull requests with more than one commit. One commit per 2014-02-17 11:16 GMT+01:00 Heinrich Fenkart [email protected]:
Zlatan Vasović - ZDroid |
Commits are free; mixing different changes in the same commit is just bad practice. All these changes refer to the same files; tests. That is why I suggested separate patches in the same PR. But separate PRs are ok I guess, if you insist on keeping one patch per PR. |
One commit per pull request is pretty clear if you describe what is changed (like I did in the pull request description). |
No, it's not. It's too generic patch which can be split up in clear, separate patches. |
@XhmikosR I broke the pull request into 3 smaller ones. |
LGTM now. |
Semicolons, comma first, spaces vs tabs... So many different opinions :P |
Yay. As @fat wrote the most of Bootstrap JS and Bootstrap docs JS code, he can make opinions about |
@zdroid: your last comment is irrelevant. I simply pointed out that there are so many different opinions on the style that things get complex. |
Yes, but I talked specifically about semicolons. :P 2014-02-18 9:19 GMT+01:00 XhmikosR [email protected]:
Zlatan Vasović - ZDroid |
@XhmikosR So, gonna merge this? |
I guess so since that's the current style already. |
! |
Remove semicolons from JS tests
💛