Skip to content

Add Selene linter #904

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
Nov 15, 2021
Merged

Add Selene linter #904

merged 1 commit into from
Nov 15, 2021

Conversation

lithammer
Copy link
Collaborator

@lithammer lithammer requested a review from mjlbach May 14, 2021 06:55
@lithammer lithammer force-pushed the selene-linter branch 2 times, most recently from aab7e1e to e8fb07f Compare June 16, 2021 07:49
@lithammer lithammer marked this pull request as ready for review June 16, 2021 08:27
@lithammer lithammer force-pushed the selene-linter branch 4 times, most recently from 9b7f60b to a706ec2 Compare August 5, 2021 13:09
@mjlbach
Copy link
Contributor

mjlbach commented Nov 14, 2021

@lithammer would you mind rebasing this and seeing how bad the damage is/what we would have to change? Last time I remember a lotttt of red.

@lithammer lithammer force-pushed the selene-linter branch 2 times, most recently from 0ae0451 to 6f87e89 Compare November 15, 2021 09:03
@mjlbach
Copy link
Contributor

mjlbach commented Nov 15, 2021

are you psychic, I literally just opened this PR to rebase it haha

@lithammer
Copy link
Collaborator Author

Hah! Gotta find a reason to not work 😉 Anyway, seems like it doesn't have much to complain about anymore. Just some unused variables:

warning[unused_variable]: j is defined, but never used
   ┌─ lua/lspconfig/rust_analyzer.lua:28:30
   │
28 │         on_stdout = function(j, d, e)
   │                              ^

warning[unused_variable]: e is defined, but never used
   ┌─ lua/lspconfig/rust_analyzer.lua:28:36
   │
28 │         on_stdout = function(j, d, e)
   │                                    ^

warning[unused_variable]: j is defined, but never used
   ┌─ lua/lspconfig/rust_analyzer.lua:31:30
   │
31 │         on_stderr = function(j, d, e)
   │                              ^

warning[unused_variable]: e is defined, but never used
   ┌─ lua/lspconfig/rust_analyzer.lua:31:36
   │
31 │         on_stderr = function(j, d, e)
   │                                    ^

warning[unused_variable]: s is defined, but never used
    ┌─ lua/lspconfig/util.lua:189:23
    │
189 │     local function it(s, v)
    │                       ^

@mjlbach
Copy link
Contributor

mjlbach commented Nov 15, 2021

Andddd we should probably fix those And I did fix those :) . Can we move the selene config files out of the top level of the repo and then add the selene lint to make lint?

@lithammer
Copy link
Collaborator Author

Can we move the selene config files out of the top level of the repo

A downside with that is it will break editor integration. But I'm fine either way.

[...] and then add the selene lint to make lint?

It should already be there. Or were you thinking of something else?

@mjlbach
Copy link
Contributor

mjlbach commented Nov 15, 2021

A downside with that is it will break editor integration. But I'm fine either way.

You made this point in the neovim core formatting check too, but this time I concede :)

@mjlbach mjlbach merged commit 9910bd6 into master Nov 15, 2021
@mjlbach mjlbach deleted the selene-linter branch November 15, 2021 09:18
@lithammer
Copy link
Collaborator Author

A downside with that is it will break editor integration. But I'm fine either way.

You made this point in the neovim core formatting check too, but this time I conceed :)

Indeed! You win some, you lose some 🤷‍♂️

@mjlbach
Copy link
Contributor

mjlbach commented Nov 15, 2021

At this point I am amazed at the level of CI we have in the repo without implementing server specific tests 😆

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.

2 participants