Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

5earle
Copy link
Contributor

@5earle 5earle commented Feb 6, 2018

PR Checklist

Please check that your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #9153

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Feb 6, 2018
@5earle
Copy link
Contributor Author

5earle commented Feb 6, 2018

Addresses #9153

Remove JSHint warnings

@Splaktar Splaktar self-assigned this Feb 11, 2018
@Splaktar Splaktar added P5: nice to have These issues will not be fixed without community contributions. in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs labels Feb 11, 2018
@Splaktar Splaktar added this to the 1.1.8 milestone Feb 11, 2018
@Splaktar Splaktar self-requested a review February 11, 2018 02:47
Copy link
Contributor

@Splaktar Splaktar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just disable these two rules via the following in .jshintrc:

  "sub": true,
  "multistr": true,

Copy link
Contributor

@Splaktar Splaktar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please revert the changes to the multiline strings and references like clickedItem['name']? Then please squash your commits.

@5earle
Copy link
Contributor Author

5earle commented Feb 11, 2018

ok so just make changes to the .jshint and the missing semicolons?

@Splaktar
Copy link
Contributor

Splaktar commented Feb 11, 2018

Yes please, also the Confusing use of '!' should be fixed (not excluded).

Copy link
Contributor

@Splaktar Splaktar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is coming along well. Almost ready 😄. I just had a couple more minor comments.

@@ -1,4 +1,7 @@
{
"sub": true,
"multistr": true,
"-W018": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I was trying to say that we should fix the issues where "confusing use of '!'" gave a warning, not exclude the rule.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok i will look into it, but I'm not sure why its showing a warning

Nebraska, Nevada, New Hampshire, New Jersey, New Mexico, New York, North Carolina,\
North Dakota, Ohio, Oklahoma, Oregon, Pennsylvania, Rhode Island, South Carolina,\
South Dakota, Tennessee, Texas, Utah, Vermont, Virginia, Washington, West Virginia,\
Wisconsin, Wyoming';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please remove these added spaces? It should be indented 8 spaces, not 9.

@5earle
Copy link
Contributor Author

5earle commented Feb 13, 2018

these are giving me some problems to fix

if (!!value === targetValue)
if (setVisible.queued && setVisible.value === !!value

@Splaktar
Copy link
Contributor

OK, yeah it's not trivial to fix those. Let's go with your first instinct and just exclude that rule in the .jshintrc file for now. Thanks for looking into it!

Copy link
Contributor

@Splaktar Splaktar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good now, thank you. Please squash your commits and then we can get this submitted to be merged.

@Splaktar
Copy link
Contributor

I would like to get this merged into 1.1.8 as we're hoping to release it this week, can you please squash your commits so that we can merge this?

add sub:true and multistr=true to .jshintrc

revert and remove confusing use of ! warning

update fix

fix space

exclude warnings
@5earle
Copy link
Contributor Author

5earle commented Mar 13, 2018

ok so i was trying to do the rebase.

after squash attempt:

commit 8752694
Author: ew [email protected]
Date: Mon Feb 5 22:43:56 2018 -0500
Fix jshint warnings
add sub:true and multistr=true to .jshintrc
revert and remove confusing use of ! warning
update fix
fix space
exclude warnings


Fail to Push:

! [rejected] fix-jshint -> fix-jshint (non-fast-forward)
error: failed to push some refs to 'https://github.com/5earle/material.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

@Splaktar
Copy link
Contributor

Have you tried force push? That's needed when re-writing a remote branch's history like we want to do when squashing commits.

@5earle
Copy link
Contributor Author

5earle commented Mar 13, 2018

ok that did the trick

@Splaktar Splaktar added pr: merge ready This PR is ready for a caretaker to review type: chore and removed needs: squash commits in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs labels Mar 14, 2018
@mmalerba mmalerba merged commit cec409a into angular:master Mar 15, 2018
@5earle 5earle deleted the fix-jshint branch March 16, 2018 00:08
chmelevskij pushed a commit to chmelevskij/material that referenced this pull request Jun 19, 2018
add sub:true and multistr=true to .jshintrc

revert and remove confusing use of ! warning

update fix

fix space

exclude warnings
Splaktar pushed a commit that referenced this pull request Jul 31, 2018
add sub:true and multistr=true to .jshintrc

revert and remove confusing use of ! warning

update fix

fix space

exclude warnings
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ P5: nice to have These issues will not be fixed without community contributions. pr: merge ready This PR is ready for a caretaker to review type: chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants