Skip to content

Commit

Permalink
set defaults to something sane for our use-case (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored Oct 5, 2021
1 parent 617cbdb commit 541de61
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
6 changes: 3 additions & 3 deletions lib/chaps/settings.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule Chaps.Settings do
project has files with long path names.
""",
type: :integer,
default: 40
default: 80
]
]

Expand All @@ -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: """
Expand Down Expand Up @@ -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
]
]

Expand Down

0 comments on commit 541de61

Please sign in to comment.