Skip to content

StrictLayout not honoring guard rules #1205

@eksperimental

Description

@eksperimental

Credo is not emitting any suggestion

.credo.exs

          {Credo.Check.Readability.StrictModuleLayout,
           order: [
             :moduledoc,
             :public_guard,
             :private_guard
           ]}

module

  defguardp is_foo(term) when term == :foo

  defguard is_bar(term) when term == :bar

I have used Credo v1.7 and master.

A sample repo that reproduces this can be found here: https://github.com/eksperimental-debug/credo_debug/tree/strict-layout-guards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions