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

ci: check for deprecated util functions #3462

Merged
merged 1 commit into from
Nov 26, 2024
Merged

ci: check for deprecated util functions #3462

merged 1 commit into from
Nov 26, 2024

Conversation

justinmk
Copy link
Member

@justinmk justinmk commented Nov 26, 2024

util.dirname is deprecated (and banned in configs) since #3460

Example

see https://github.com/neovim/nvim-lspconfig/actions/runs/12033646442/job/33548305477?pr=3462 for an example run.

image

@dundargoc
Copy link
Member

Wait, isn't it supposed to be util.path.dirname?

echo "see: https://github.com/neovim/nvim-lspconfig/blob/master/CONTRIBUTING.md#adding-a-server-to-lspconfig."
exit 1
fi

SEARCH_PATTERN='(util\.dirname)'
Copy link
Member

@dundargoc dundargoc Nov 26, 2024

Choose a reason for hiding this comment

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

util.path.dirname or path.dirname

Also seems like we already check for this in the check above it

Copy link
Member Author

Choose a reason for hiding this comment

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

the above check is something about "root" specifically. this new check will be a place to catch all deprecated functions

Copy link
Member

Choose a reason for hiding this comment

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

I know, it just caught my eye since we check for the same function twice, the context is just different. Not a big deal.

@justinmk justinmk merged commit 16008a6 into master Nov 26, 2024
11 checks passed
@justinmk justinmk deleted the deprutil branch November 26, 2024 15:34
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