-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
486 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "doc/**" | ||
- "**.rst" | ||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: shiguredo/erlang:otp-26.0-rc3-openssl-3.1.0-ubuntu-22.04-x86_64 | ||
env: | ||
ERL_FLAGS: -enable-feature maybe_expr | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: make | ||
- name: Slack Notification | ||
if: failure() | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
SLACK_CHANNEL: ${{ secrets.SLACK_INTERNAL_CHANNEL }} | ||
SLACK_COLOR: danger | ||
SLACK_TITLE: Failure test | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[ | ||
{ | ||
elvis, | ||
[ | ||
{config, | ||
[#{dirs => ["src"], | ||
filter => "*.erl", | ||
ruleset => erl_files, | ||
rules => [{elvis_text_style, line_length, #{limit => 120, skip_comments => whole_line}}, | ||
%% Ranch 利用のため Transport:send/2 的なのが必要なので ... | ||
{elvis_style, invalid_dynamic_call, disable}, | ||
%% snake_case じゃない場合は本来 '' で囲うべき | ||
{elvis_style, atom_naming_convention, #{regex => "^([a-z][a-zA-Z0-9_]*_?)*(_SUITE)?$", enclosed_atoms => ".*"}}, | ||
{elvis_style, module_naming_convention, #{regex => "^([a-z][a-z0-9]*)(_[a-z0-9]+)*(_SUITE)?$"}}, | ||
{elvis_style, variable_naming_convention, #{regex => "^(_?[A-Z][0-9a-zA-Z_]*)$"}}, | ||
|
||
{elvis_style, nesting_level, disable}, | ||
{elvis_style, god_modules, disable}, | ||
{elvis_style, state_record_and_type, disable}, | ||
{elvis_style, no_block_expressions, disable}, | ||
{elvis_style, export_used_types, disable}, | ||
{elvis_style, private_data_types, disable}, | ||
%% 要検討 | ||
{elvis_style, no_single_clause_case, disable}, | ||
%% 要検討 | ||
{elvis_style, max_function_arity, disable}, | ||
%% 要検討 | ||
{elvis_style, operator_spaces, disable}, | ||
%% 要検討 | ||
{elvis_style, no_spec_with_records, disable}, | ||
%% 要検討 | ||
{elvis_style, dont_repeat_yourself, disable}] | ||
}, | ||
#{dirs => ["."], | ||
filter => "rebar.config", | ||
ruleset => rebar_config, | ||
rules => [{elvis_project, protocol_for_deps}] | ||
}, | ||
#{dirs => ["."], | ||
filter => "elvis.config", | ||
ruleset => elvis_config | ||
} | ||
] | ||
} | ||
] | ||
} | ||
]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,36 @@ | ||
{minimum_otp_vsn, "24.1"}. | ||
{minimum_otp_vsn, "26.0"}. | ||
|
||
{erl_opts, [{i, "src"}, | ||
warnings_as_errors, | ||
warn_export_all, | ||
warn_unused_import]}. | ||
|
||
{xref_checks, [undefined_function_calls, undefined_functions, | ||
{xref_checks, [undefined_function_calls, | ||
undefined_functions, | ||
locals_not_used, | ||
deprecated_function_calls, deprecated_functions]}. | ||
deprecated_function_calls, | ||
deprecated_functions]}. | ||
|
||
%% https://rebar3.org/docs/configuration/configuration/#dialyzer | ||
{dialyzer, [{warnings, [extra_return, | ||
missing_return, | ||
no_unknown | ||
%% overspecs | ||
%% underspecs, | ||
%% specdiffs | ||
%% error_handling | ||
]}, | ||
incremental, | ||
{plt_apps, top_level_deps}, | ||
%% {plt_apps, all_apps}, | ||
{plt_location, local}, | ||
{base_plt_location, global}]}. | ||
|
||
{cover_enabled, true}. | ||
|
||
{validate_app_modules, true}. | ||
|
||
{project_plugins, [rebar3_efmt, rebar3_lint]}. | ||
{elvis_output_format, colors}. | ||
|
||
{plugins, [rebar3_hex]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
{application, base32, | ||
[{description, "Clockwork Base32"}, | ||
{pkg_name, base32_clockwork}, | ||
{vsn, "2021.3.0"}, | ||
{vsn, "2023.1.0"}, | ||
{registered, []}, | ||
{applications, | ||
[ | ||
kernel, | ||
stdlib | ||
]}, | ||
{env,[]}, | ||
[kernel, | ||
stdlib]}, | ||
{env, []}, | ||
{modules, []}, | ||
{licenses, ["Apache License, Version 2.0"]}, | ||
{links, [{"GitHub", "https://github.com/shiguredo/base32_clockwork"}]} | ||
]}. | ||
{licenses, ["Apache-2.0"]}, | ||
{links, [{"GitHub", "https://github.com/shiguredo/base32_clockwork"}]}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.