From 541de61e9ec48c4d5703b98b3539fd2315a3d9ae Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 5 Oct 2021 13:22:41 -0500 Subject: [PATCH] set defaults to something sane for our use-case (#1) --- CHANGELOG.md | 9 +++++++++ config/config.exs | 5 +++++ lib/chaps/settings.ex | 6 +++--- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a11f002b..1db11a21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.16.0 - 2021-10-04 + +### Changed + +- Changed out three default setting values + - `file_column_width` increased to 80 columns from 40 + - `treat_no_relevant_lines_as_covered` set to true from false + - `html_filter_fully_covered` set to true from false + ## 0.15.2 - 2021-10-04 ### Added diff --git a/config/config.exs b/config/config.exs index 1ea50a04..9c16bdd5 100644 --- a/config/config.exs +++ b/config/config.exs @@ -2,6 +2,11 @@ use Mix.Config config :chaps, coverage_options: [ + treat_no_relevant_lines_as_covered: false, + html_filter_fully_covered: false, minimum_coverage: 0.0, template_path: "lib/templates/html/htmlcov/" + ], + terminal_options: [ + file_column_width: 40 ] diff --git a/lib/chaps/settings.ex b/lib/chaps/settings.ex index 8dce4b12..00aa40dc 100644 --- a/lib/chaps/settings.ex +++ b/lib/chaps/settings.ex @@ -28,7 +28,7 @@ defmodule Chaps.Settings do project has files with long path names. """, type: :integer, - default: 40 + default: 80 ] ] @@ -39,7 +39,7 @@ defmodule Chaps.Settings do as covered (`true`) at 100% or or not covered (`false`) at 0%. """, type: :boolean, - default: false + default: true ], output_dir: [ doc: """ @@ -77,7 +77,7 @@ defmodule Chaps.Settings do Wether or not to filter fully covered modules from the HTML source. """, type: :boolean, - default: false + default: true ] ]