Skip to content

chore(lints): deny unused qualifications - #1053

Merged
CppCXY merged 1 commit into
EmmyLuaLs:mainfrom
lewis6991:lint/unused-qualifications
Apr 30, 2026
Merged

CppCXY merged 1 commit into
EmmyLuaLs:mainfrom
lewis6991:lint/unused-qualifications

Conversation

@lewis6991

Copy link
Copy Markdown
Collaborator

Summary

  • Enable the Rust unused_qualifications lint across the workspace.
  • Remove existing redundant path qualifiers so the lint runs cleanly.
  • Normalize one formatter temp-path assertion so tests pass on macOS.

Test

  • cargo fmt --all
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo test --workspace --all-features --no-fail-fast

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request enables the "unused_qualifications" lint across the workspace and removes redundant path qualifications in numerous files to comply with the new rule. It also updates a test assertion in "emmylua_formatter" to use canonicalized paths. A review comment suggests further refining this test assertion to ensure cross-platform compatibility, specifically addressing how "fs::canonicalize" handles UNC paths on Windows.

@lewis6991
lewis6991 force-pushed the lint/unused-qualifications branch from 2a1499e to a9ff504 Compare April 29, 2026 09:21
Enable the Rust unused_qualifications lint across the workspace.
@lewis6991
lewis6991 force-pushed the lint/unused-qualifications branch from a9ff504 to e495d6d Compare April 29, 2026 12:39
@CppCXY
CppCXY merged commit 4ec26a1 into EmmyLuaLs:main Apr 30, 2026
16 checks passed
@lewis6991
lewis6991 deleted the lint/unused-qualifications branch April 30, 2026 07:29
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