Skip to content
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

Lint assets too #25

Merged
merged 6 commits into from
Oct 23, 2019
Merged

Lint assets too #25

merged 6 commits into from
Oct 23, 2019

Conversation

XhmikosR
Copy link
Collaborator

@XhmikosR XhmikosR commented Oct 19, 2019

This is totally WIP. I'm just trying to get the most important things out.

I'll rebase when the other PRs are merged.

Best reviewed with the non-whitespace diff: https://github.com/emedvedev/slackin-extended/pull/25/files?w=1

@XhmikosR XhmikosR mentioned this pull request Oct 20, 2019
@XhmikosR
Copy link
Collaborator Author

@emedvedev I've disabled most checks for assets so that we tackle them in batches. Can you have a look at the current errors? Remember you can push to my branch if needed :)

function submitForm (ev){
ev && ev.preventDefault()
function submitForm(ev) {
if (ev) ev.preventDefault()
Copy link
Collaborator Author

@XhmikosR XhmikosR Oct 22, 2019

Choose a reason for hiding this comment

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

I'm not sure if this is needed. When can this be undefined or null?

@lgtm-com
Copy link

lgtm-com bot commented Oct 22, 2019

This pull request fixes 3 alerts when merging 422c71b into c6b8fc4 - view on LGTM.com

fixed alerts:

  • 1 for Useless assignment to local variable
  • 1 for Missing variable declaration
  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Oct 22, 2019

This pull request fixes 3 alerts when merging 5196fdc into a65794e - view on LGTM.com

fixed alerts:

  • 1 for Useless assignment to local variable
  • 1 for Missing variable declaration
  • 1 for Unused variable, import, function or class

@XhmikosR
Copy link
Collaborator Author

@emedvedev can you please disable the PR comments on lgtm.com dashboard?

@emedvedev
Copy link
Owner

Done, sorry :)

@emedvedev
Copy link
Owner

I'll take a look at the errors a bit later today, should be able to merge by EOD.

@emedvedev
Copy link
Owner

Not entirely sure why the Set Node.js version fails in the GitHub pipeline.

@XhmikosR
Copy link
Collaborator Author

It's an issue with GH Actions which I assume it will be solved automatically when people at GitHub notice the issue, if they haven't already.

@@ -682,7 +682,6 @@
*/

function Response(req, options) {
options = options || {}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Are we sure this wasn't supposed to be used? Like this.options?

Copy link
Owner

Choose a reason for hiding this comment

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

It's not passed downstream and there's no reference to it anywhere else, so I think it should be safe.

@emedvedev
Copy link
Owner

GitHub tests pass now, and the LGTM issues in assets are fixed as well, so we can merge this. I'll create a separate PR for the LGTM issues outside of assets.

@emedvedev emedvedev marked this pull request as ready for review October 23, 2019 17:31
@emedvedev emedvedev merged commit 53f8fc8 into emedvedev:master Oct 23, 2019
@XhmikosR XhmikosR deleted the lint-assets branch October 23, 2019 17:36
@XhmikosR
Copy link
Collaborator Author

I actually want to reduce the suppressed rules too eventually :)

@emedvedev
Copy link
Owner

Ah! Sorry for merging too soon then, haha. Feel free to open another PR for tackling the suppressed rules :)

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.

None yet

2 participants