Skip to content

[BUG] just without arguments runs lint instead of listing recipes #254

Closed

Description

@c-vigo

Description

Running just without arguments should display the list of available recipes (via the default recipe), but instead it runs the lint recipe (uv run ruff check .).

Steps to Reproduce

  1. Run just with no arguments in the project root

Expected Behavior

just displays the list of available recipes (equivalent to just --list --unsorted), as defined by the default recipe in the justfile.

Actual Behavior

just runs the lint recipe (uv run ruff check .) because lint is the first recipe in the file and just uses the first recipe as its default.

Environment

  • OS: Linux 6.17.0-14-generic
  • just: system-installed

Additional Context

The default recipe exists at line 37 of the justfile, but the lint recipe at line 11 comes first. In just, the first recipe in the file is the one that runs when invoked without arguments. The lint / format / precommit quality recipes were likely added above default at some point, breaking this behavior.

Possible Solution

Move the default recipe (and optionally the entire "INFO" section) above the "CODE QUALITY" section so it becomes the first recipe in the file.

Changelog Category

Fixed

  • TDD compliance (see .cursor/rules/tdd.mdc)

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions