Gaith Hallak fe5f5545d3
Add compiler warnings (#346)
* Add compiler warnings

Add include_type annotation to position

Add warning for unused includes

Add warning for unused stateful annotation

Add warning for unused functions

Add warning for shadowed variables

Add division by zero warning

Add warning for negative spends

Add warning for unused variables

Add warning for unused parameters

Change the ets table type to set for unused vars

Add warning for unused type defs

Move unused variables warning to the top level

Temporarily disable unused functions warnings

Add all kinds of warnings to a single ets table

Enable warnings separately through options

Use when_option instead of enabled_warnings

Turn warnings into type errors with warn_error option

Enable warning package warn_all

Re-enable unused functions warnings

Report warnings as type errors in a separate function

Make unused_function a recognized warning

Report warnings as a result of compilation

Fix tests and error for unknown warnings options

Fix dialyzer warnings

Do not show warning for variables called "_"

Move warnings handling into a separate module

Do not show warning for unused public functions in namespaces

Add src file name to unused include warning

Mark public functions in namespaces as used

Add tests for added warnings

Add warning for unused return value

Add test for turning warnings into type errors

* Update CHANGELOG
2021-11-24 11:46:21 +02:00
..
2019-07-22 13:56:45 +02:00
2019-07-22 13:56:45 +02:00
2020-02-03 12:52:00 +01:00
2019-06-14 10:27:07 +02:00
2020-04-02 15:32:26 +02:00
2019-06-28 09:42:28 +02:00
2019-06-28 09:42:28 +02:00
2019-09-12 21:17:01 +02:00
2019-06-28 09:42:28 +02:00
2019-02-08 14:16:06 +01:00
2018-12-22 01:23:40 +01:00
2019-06-28 09:42:28 +02:00
2019-06-28 09:42:28 +02:00
2021-05-24 14:30:57 +02:00
2019-06-14 10:27:07 +02:00
2019-06-28 09:42:28 +02:00
2019-06-28 09:42:28 +02:00
2019-06-28 09:42:28 +02:00
2019-02-08 14:16:06 +01:00
2019-02-08 14:16:06 +01:00
2019-09-03 16:51:04 +02:00
2018-12-22 01:23:40 +01:00
2019-07-22 13:56:45 +02:00
2019-07-22 13:56:45 +02:00
2019-06-28 09:42:28 +02:00
2019-06-28 09:42:28 +02:00
2019-02-08 14:16:06 +01:00
2019-01-25 16:09:31 +01:00
2019-06-14 10:27:07 +02:00
2019-07-22 13:56:45 +02:00
2019-07-22 13:56:45 +02:00
2019-06-28 09:42:28 +02:00
2020-01-15 09:41:03 +01:00
2019-08-05 14:33:53 +02:00
2020-02-24 15:35:54 +01:00
2019-06-28 09:42:28 +02:00
2019-09-03 16:51:04 +02:00
2019-09-03 16:51:04 +02:00
2021-11-24 11:46:21 +02:00