Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Mar 25, 2021
0 parents commit 253f2d2
Show file tree
Hide file tree
Showing 23 changed files with 1,724 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .credo.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
%{
configs: [
%{
name: "default",
strict: true,
files: %{
included: [
"{mix,.formatter,.credo}.exs",
"config/*.exs",
"apps/*/{mix,.formatter,.credo}.exs",
"apps/*/lib/",
"apps/*/src/",
"apps/*/test/",
"apps/*/web/",
"apps/*/priv/repo/"
],
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/"]
},
checks: [
{Credo.Check.Design.TagTODO, exit_status: 0},
{Credo.Check.Design.TagFIXME, exit_status: 0},
{Credo.Check.Readability.StrictModuleLayout, []},
{Credo.Check.Consistency.MultiAliasImportRequireUse, []},
{Credo.Check.Consistency.UnusedVariableNames, []},
{Credo.Check.Design.DuplicatedCode, []},
{Credo.Check.Readability.AliasAs, false},
{Credo.Check.Readability.MultiAlias, []},
{Credo.Check.Readability.Specs, []},
{Credo.Check.Readability.SinglePipe, []},
{Credo.Check.Readability.WithCustomTaggedTuple, []},
{Credo.Check.Refactor.ABCSize, max_size: 100},
{Credo.Check.Refactor.AppendSingleItem, false},
{Credo.Check.Refactor.DoubleBooleanNegation, []},
{Credo.Check.Refactor.ModuleDependencies, false},
{Credo.Check.Refactor.NegatedIsNil, []},
{Credo.Check.Refactor.PipeChainStart, []},
{Credo.Check.Refactor.VariableRebinding, false},
{Credo.Check.Warning.LeakyEnvironment, []},
{Credo.Check.Warning.MapGetUnsafePass, []},
{Credo.Check.Warning.UnsafeToAtom, []},
{Credo.Check.Refactor.Nesting, max_nesting: 3}
]
}
]
}
4 changes: 4 additions & 0 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# The directory Mix will write compiled artifacts to.
/_build/

# If you run "mix test --cover", coverage assets end up here.
/cover/

# The directory Mix downloads your dependencies sources to.
/deps/

# Where third-party dependencies like ExDoc output generated docs.
/doc/

# Ignore .fetch files in case you like to edit your project deps locally.
/.fetch

# If the VM crashes, it generates a dump, let's ignore it too.
erl_crash.dump

# Also ignore archive artifacts (built via "mix archive.build").
*.ez

# Ignore package tarball (built via "mix hex.build").
sedex-*.tar


# Temporary files for e.g. tests
/tmp

# Ignore Mix Lock since this is a lib
/mix.lock

# Dialyzer
/priv/plts/*.plt
/priv/plts/*.plt.hash

## Sedex Test Data / Schema HRL
/priv/schema/*.hrl
/priv/test/sedex/*
3 changes: 3 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodejs 14.16.0
erlang 23.3
elixir 1.11.4
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

All notable changes to this project will be documented in this file.

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).

<!-- Do not link the versions in the title since this is not compatible with ExDoc. -->

## Unreleased

Initial Commit
8 changes: 8 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The MIT License (MIT)
Copyright (c) 2021, JOSHMARTIN GmbH, Jonatan Männchen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Sedex Integration

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/jshmrtn/sedex/master/LICENSE)
![.github/workflows/elixir.yml](https://github.com/jshmrtn/sedex/workflows/.github/workflows/elixir.yml/badge.svg)
[![Hex.pm Version](https://img.shields.io/hexpm/v/sedex.svg?style=flat)](https://hex.pm/packages/sedex)
[![Coverage Status](https://coveralls.io/repos/github/jshmrtn/sedex/badge.svg?branch=master)](https://coveralls.io/github/jshmrtn/sedex?branch=master)

Elixir Library to work with [sedex](https://www.bfs.admin.ch/bfs/en/home/registers/population-register/sedex.html).

This is for example needed when exchaning data with the Swiss [Federal Office of Public Health (FOPH)](https://www.bag.admin.ch/bag/en/home.html).

## Installation

1. Add `sedex` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:sedex, "~> 1.0"}]
end
```

## Usage

Please look into the [Documentation](https://hexdocs.pm/sedex/) for usage examples.
Loading

0 comments on commit 253f2d2

Please sign in to comment.