Skip to content

Warns on modules with use #72

@pbrudnick

Description

@pbrudnick

Bug Description

Phoenix defines routes which are dispatched to controller:functions.
In these modules, it sets use MyAppWeb, :controller
The functions expect 2 arguments:

def get(conn, params) do

This rule warns when ignoring the second:

def counters(conn, _params) do

To Reproduce

Ignore the second argument in a controller function in a Phoenix app.

Expected Behavior

Or ignore those or clarify if those should be manually ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions