Credo.Check.Consistency.TabsOrSpaces (Credo v1.5.0) View Source

This check has a base priority of high and works with any version of Elixir.

Explanation

Tabs should be used consistently.

NOTE: This check does not verify the indentation depth, but checks whether or not soft/hard tabs are used consistently across all source files.

It is very common to use 2 spaces wide soft-tabs, but that is not a strict requirement and you can use hard-tabs if you like that better.

While this is not necessarily a concern for the correctness of your code, you should use a consistent style throughout your codebase.

Configuration parameters

There are no specific parameters for this check.

Like with all checks, general params can be applied.

Parameters can be configured via the .credo.exs config file.