Trending

World technology news

→
Highlighted source code on a developer’s screen. Archive photograph.
crates.ioIn-depth report

Deslopfy 0.1.0 publishes a syntax-based Rust software linter

The new package documents checks that run without type analysis, exit codes for findings and a baseline for existing code.

·crates.io
Reading progress0%

What the first release adds

Deslopfy 0.1.0 reached crates.io on November 29 and Docs.rs completed the Linux documentation build. Its rules inspect Rust syntax and resolve some names through imports. The tool has no compiler type analysis. That sets a clear limit on what its results can imply. A warning can show a suspicious code shape, while determining which concrete value or method a program uses may require another layer of analysis. The independent documentation build confirms one release target and supplies no comparative false-positive rate across applications.

A call seen in context

A rule can flag a recognizable blocking call inside an asynchronous function. That observation can lead a reviewer to check how the application schedules work and whether the call delays another task. The syntax finding alone does not measure the delay. A small fixture should include a case where the same name belongs to another module or appears in synchronous code. This gives maintainers an example they can run after changing a rule or its configuration. The source of the name matters when results depend on imports rather than types.

Distinguish findings from configuration failures

The documented command exits with zero for a clean run, one for findings or a stale baseline, and two for usage or configuration errors. An automation can present those outcomes separately. An unknown rule name prevents an intended check from running. A reported source line gives reviewers a location to investigate. Keeping the configured rule set alongside the run result makes it easier to explain a change in warning counts after updating the tool or introducing it to another project.

Use a baseline to make progress visible

Documented baseline support records the existing count when a project adopts the tool. A team can use that state to decide which new findings it will investigate while working through older code separately. There is still a difference between a finding disappearing because the code improved and a finding disappearing because a file or rule stopped being checked. Review updates to the baseline in the same context as a change in scope. Preserve enough detail to reproduce a warning without assuming the overall count explains it.

Set up a focused acceptance check

Start with a fixture that should trigger a rule and a similar file that should pass. A useful candidate is a call in two different function contexts. Record the exit status and where the rule reported the result. Then compare what the project’s existing compiler and linter already cover. This test helps establish whether the new tool adds an observable signal on the project’s source. The documentation build does not run that application-specific acceptance check.

Archive photo · Martin Vorel / Wikimedia Commons ↗ · CC BY-SA 4.0

Sources and verification
Be the first reader ✎ Write a comment

Reader discussion

Discussion prompt

Which alternative architecture would you try for the same problem?

No comments yet. Be the first to contribute.

Write a comment

Comments are real visitor contributions. Repeated, link-heavy or abusive submissions may be limited.