Skip to content

Commit

Permalink
Merge pull request #7 from paulo-ferraz-oliveira/feature/modern_times
Browse files Browse the repository at this point in the history
Modern times
  • Loading branch information
g-andrade authored Mar 3, 2021
2 parents 904c03e + de26e8d commit 7985e15
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 89 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
image: erlang:${{matrix.otp_vsn}}
strategy:
matrix:
otp_vsn: [19.3, 20.3, 21.3, 22.3, 23.1]
otp_vsn: [19.3, 20.3, 21.3, 22.3, 23.2]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.rebar3
_build
erl_crash.dump
logs
log
rebar3.crashdump
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ SHELL := bash
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules

version: upgrade clean compile check edoc
version: upgrade clean compile check test edoc
.PHONY: version

upgrade: upgrade-rebar3_lint
@rebar3 do unlock,upgrade
.PHONY: upgrade

upgrade-rebar3_lint:
Expand All @@ -27,17 +28,21 @@ check: xref dialyzer elvis-rock
.PHONY: check

xref:
@rebar3 xref
@rebar3 as test xref
.PHONY: xref

dialyzer:
@rebar3 dialyzer
@rebar3 as test dialyzer
.PHONY: dialyzer

elvis-rock:
@rebar3 lint
.PHONY: elvis-rock

test:
.NOTPARALLEL: test
.PHONY: test

edoc:
@rebar3 edoc
.PHONY: edoc
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Dactyl
# dactyl [![GitHub Actions CI][ci-img]][ci]

![build](https://github.com/miniclip/dactyl/workflows/build/badge.svg)
[![erlang][erlang badge]][erlang downloads]

[erlang badge]: https://img.shields.io/badge/erlang-%3E%3D19.3-lightgrey
[erlang downloads]: http://www.erlang.org/download
[ci]: https://github.com/miniclip/dactyl
[ci-img]: https://github.com/miniclip/dactyl/workflows/build/badge.svg

Dactyl is a simple string templating library for Erlang. It's not especially
fast, but does have quite a bit of power. With Dactyl you can perform basic
Expand Down
45 changes: 33 additions & 12 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,64 @@
{minimum_otp_vsn, "19.3"}.

{erl_opts, [
warnings_as_errors,
debug_info,
warn_export_vars,
warn_unused_import
warn_unused_import,
warnings_as_errors,
{i, "src"}
]}.

%% == Dependencies and plugins ==

{deps, []}.

{project_plugins, [
{rebar3_lint, "0.2.0"}
{rebar3_lint, "0.3.2"}
]}.

%% == Dialyzer ==

{dialyzer, [
{warnings, [
unknown,
unmatched_returns,
error_handling,
underspecs
underspecs,
unknown,
unmatched_returns
]}
]}.

%% == xref ==
%% == Xref ==

{xref_checks, [
deprecated_function_calls,
exports_not_used,
undefined_function_calls,
locals_not_used,
deprecated_function_calls
undefined_function_calls
]}.

%% == Profiles ==

{profiles, [
{test, [
{cover_enabled, true},
{cover_opts, [verbose]},
{erl_opts, [
debug_info,
nowarn_export_all,
nowarn_missing_spec,
nowarn_missing_spec_all,
warn_export_vars,
warn_unused_import,
warnings_as_errors
]},
{extra_src_dirs, [{"test", [{recursive, true}]}]},
{xref_extra_paths, ["test"]}
]}
]}.

%% == edoc ==
%% == EDoc ==

{edoc_opts, [
{preprocess, true},
{includes, ["src"]}
{includes, ["src"]},
{preprocess, true}
]}.
12 changes: 10 additions & 2 deletions src/dactyl.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{application, dactyl, [
{description, "String templating library for Erlang"},
{vsn, git},
{mod, dactyl_app, []},
{applications, [kernel, stdlib]}
{registered, []},

{applications, [
% OTP dependencies
kernel,
stdlib
% External dependencies
]},

{env, []}
]}.
27 changes: 0 additions & 27 deletions src/dactyl_app.erl

This file was deleted.

37 changes: 0 additions & 37 deletions src/dactyl_sup.erl

This file was deleted.

0 comments on commit 7985e15

Please sign in to comment.