diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..859ac3df3 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace diff --git a/apps/cf_http/lib/cf_http/devices/device.ex b/apps/cf_http/lib/cf_http/devices/device.ex index 8a188fdf3..d1880e5cd 100644 --- a/apps/cf_http/lib/cf_http/devices/device.ex +++ b/apps/cf_http/lib/cf_http/devices/device.ex @@ -1,6 +1,6 @@ defmodule CfHttp.Devices.Device do @moduledoc """ - Handles Device stuff when it comes to the DB + Yeah baby moduledoc! """ use Ecto.Schema diff --git a/apps/cf_http/mix.exs b/apps/cf_http/mix.exs index f83576add..670a3a71e 100644 --- a/apps/cf_http/mix.exs +++ b/apps/cf_http/mix.exs @@ -48,7 +48,8 @@ defmodule CfHttp.MixProject do {:phoenix_live_reload, "~> 1.2", only: :dev}, {:gettext, "~> 0.11"}, {:jason, "~> 1.0"}, - {:plug_cowboy, "~> 2.1"} + {:plug_cowboy, "~> 2.1"}, + {:credo, "~> 1.4", only: [:dev, :test], runtime: false} ] end diff --git a/apps/cf_vpn/mix.exs b/apps/cf_vpn/mix.exs index 794a8a5b8..230f800cf 100644 --- a/apps/cf_vpn/mix.exs +++ b/apps/cf_vpn/mix.exs @@ -26,6 +26,7 @@ defmodule CfVpn.MixProject do # Run "mix help deps" to learn about dependencies. defp deps do [ + {:credo, "~> 1.4", only: [:dev, :test], runtime: false} # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}, # {:sibling_app_in_umbrella, in_umbrella: true} diff --git a/apps/cf_wall/mix.exs b/apps/cf_wall/mix.exs index f43cb577b..f81663257 100644 --- a/apps/cf_wall/mix.exs +++ b/apps/cf_wall/mix.exs @@ -26,6 +26,7 @@ defmodule CfWall.MixProject do # Run "mix help deps" to learn about dependencies. defp deps do [ + {:credo, "~> 1.4", only: [:dev, :test], runtime: false} # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}, # {:sibling_app_in_umbrella, in_umbrella: true} diff --git a/mix.exs b/mix.exs index 29faca367..28fb21de5 100644 --- a/mix.exs +++ b/mix.exs @@ -1,4 +1,8 @@ defmodule CloudfireUmbrella.MixProject do + @moduledoc """ + Welcome to the CloudFire Elixir Umbrella Project + """ + use Mix.Project def project do