Skip to content

Commit

Permalink
qf-style: fix indentation
Browse files Browse the repository at this point in the history
qf-style: fix Dialyzer warning

warn_contract_types           kapps_controller.erl:202: Invalid type specification for function kapps_controller:maybe_start_from_env/0. The success typing is () -> 'false' | [nonempty_string()]

qf-style: also fmt app.src files

qf-style: fmt app.src files
  • Loading branch information
fenollp authored and jamesaimonetti committed Jul 8, 2016
1 parent d7b1513 commit fd36619
Show file tree
Hide file tree
Showing 26 changed files with 318 additions and 320 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,6 @@ bump-copyright:
$(FMT):
wget 'https://codeload.github.com/fenollp/erlang-formatter/tar.gz/master' -O - | tar xvz -C $(ROOT)/make/

fmt: TO_FMT ?= $(shell find applications core -iname '*.erl' -or -iname '*.hrl')
fmt: TO_FMT ?= $(shell find applications core -iname '*.erl' -or -iname '*.hrl' -or -iname '*.app.src')
fmt: $(FMT)
@$(FMT) $(TO_FMT)
30 changes: 15 additions & 15 deletions applications/callflow/src/callflow.app.src
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{application, callflow,
[
{description, "Callflow - traversing through the tree..."}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [callflow_cache, cf_event_handler_sup, callflow_sup, cf_exe_sup]}
,{applications, [ kernel
, stdlib
, crypto
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [callflow_cache, cf_event_handler_sup, callflow_sup, cf_exe_sup]}
,{applications, [ kernel
, stdlib
, crypto

, kazoo_apps
, kazoo_amqp
, kazoo_data
, kazoo_endpoint
, kazoo_token_buckets
, kazoo_voicemail
, kazoo_apps
, kazoo_amqp
, kazoo_data
, kazoo_endpoint
, kazoo_token_buckets
, kazoo_voicemail

, lager
]}
,{mod, {callflow_app, []}}
, lager
]}
,{mod, {callflow_app, []}}
]}.
28 changes: 14 additions & 14 deletions applications/camper/src/camper.app.src
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{application, camper,
[
{description, "Camper - wait for the right moment"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [camper_sup, camper_offnet_sup, camper_onnet_handler]}
,{applications, [ kernel
, stdlib
, crypto
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [camper_sup, camper_offnet_sup, camper_onnet_handler]}
,{applications, [ kernel
, stdlib
, crypto

, kazoo
, kazoo_amqp
, kazoo_data
, kazoo_apps
, callflow
, kazoo
, kazoo_amqp
, kazoo_data
, kazoo_apps
, callflow

, lager
]}
,{mod, {camper_app, []}}
, lager
]}
,{mod, {camper_app, []}}
]}.
24 changes: 12 additions & 12 deletions applications/cdr/src/cdr.app.src
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{application, cdr,
[
{description, "Listen and record CDR events into CouchDB"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [cdr_sup]}
,{applications, [ kernel
, stdlib
, crypto
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [cdr_sup]}
,{applications, [ kernel
, stdlib
, crypto

, kazoo_apps
, kazoo_amqp
, kazoo_data
, kazoo_apps
, kazoo_amqp
, kazoo_data

, lager
]}
,{mod, {cdr_app, []}}
, lager
]}
,{mod, {cdr_app, []}}
]}.
32 changes: 16 additions & 16 deletions applications/crossbar/src/crossbar.app.src
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{application, crossbar,
[
{description, "Crossbar - REST Interface to the stars"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [crossbar_cache, cb_jobs_listener, crossbar_sup, crossbar_cleanup, crossbar_module_sup]}
,{applications, [ kernel
, stdlib
, crypto
, public_key
, ssl
, inets
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [crossbar_cache, cb_jobs_listener, crossbar_sup, crossbar_cleanup, crossbar_module_sup]}
,{applications, [ kernel
, stdlib
, crypto
, public_key
, ssl
, inets

, kazoo_apps
, kazoo_apps

, lager
, ranch
, cowlib
, cowboy
]}
,{mod, {crossbar_app, []}}
, lager
, ranch
, cowlib
, cowboy
]}
,{mod, {crossbar_app, []}}
]}.
8 changes: 4 additions & 4 deletions applications/crossbar/src/modules/cb_conferences.erl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ normalize_view_result(JObj) ->
,{<<"duration">>, run_time(ConferenceDetails)}
,{<<"is_locked">>, kz_json:get_value(<<"Locked">>, ConferenceDetails, 'false')}
]
,JObj
,JObj
).

%%--------------------------------------------------------------------
Expand Down Expand Up @@ -344,7 +344,7 @@ enrich_participants(ConferenceId, Context) ->
),
crossbar_util:response(
[kz_json:normalize_jobj(JObj) || JObj <- request_call_details(Participants)]
,Context
,Context
).

-spec enrich_conference(ne_binary(), cb_context:context()) -> cb_context:context().
Expand All @@ -369,8 +369,8 @@ request_conference_details(ConferenceId) ->
],
case kapps_util:amqp_pool_collect(
Req
,fun kapi_conference:publish_search_req/1
,{'ecallmgr', 'true'})
,fun kapi_conference:publish_search_req/1
,{'ecallmgr', 'true'})
of
{'error', _E} ->
lager:debug("unable to lookup conference details: ~p", [_E]),
Expand Down
28 changes: 14 additions & 14 deletions applications/dth/src/dth.app.src
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{application, dth,
[
{description, "DTH - Integration with DTH Billing System"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [dth_cache, dth_sup]}
,{applications, [ kernel
, stdlib
, crypto
, inets
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [dth_cache, dth_sup]}
,{applications, [ kernel
, stdlib
, crypto
, inets

, kazoo_apps
, kazoo_amqp
, kazoo_data
, kazoo_apps
, kazoo_amqp
, kazoo_data

, lager
, detergent
]}
,{mod, {dth_app, []}}
, lager
, detergent
]}
,{mod, {dth_app, []}}
]}.
24 changes: 12 additions & 12 deletions applications/hotornot/src/hotornot.app.src
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{application, hotornot,
[
{description, "HotOrNot - Rate calls based on prefix"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [hotornot_sup]}
,{applications, [ kernel
, stdlib
, crypto
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [hotornot_sup]}
,{applications, [ kernel
, stdlib
, crypto

, kazoo_apps
, kazoo_amqp
, kazoo_data
, kazoo_apps
, kazoo_amqp
, kazoo_data

, lager
]}
,{mod, {hotornot_app, []}}
, lager
]}
,{mod, {hotornot_app, []}}
]}.
28 changes: 14 additions & 14 deletions applications/media_mgr/src/media_mgr.app.src
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{application, media_mgr,
[
{description, "Media Manager - Stream media via Shout from Couch"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [media_mgr_sup]}
,{applications, [ kernel
, stdlib
, crypto
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [media_mgr_sup]}
,{applications, [ kernel
, stdlib
, crypto

, kazoo_apps
, kazoo_amqp
, kazoo_data
, kazoo_apps
, kazoo_amqp
, kazoo_data

, lager
, cowlib
, cowboy
]}
,{mod, {media_mgr_app, []}}
, lager
, cowlib
, cowboy
]}
,{mod, {media_mgr_app, []}}
]}.
32 changes: 16 additions & 16 deletions applications/trunkstore/src/trunkstore.app.src
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
application
,trunkstore
,[
{description, "Trunk Store Backend - Authentication and Routing"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [trunkstore_cache, ts_offnet_sup, trunkstore_sup, ts_onnet_sup]}
,{applications, [ kernel
, stdlib
, crypto
,trunkstore
,[
{description, "Trunk Store Backend - Authentication and Routing"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [trunkstore_cache, ts_offnet_sup, trunkstore_sup, ts_onnet_sup]}
,{applications, [ kernel
, stdlib
, crypto

, kazoo_apps
, kazoo_amqp
, kazoo_data
, kazoo_apps
, kazoo_amqp
, kazoo_data

, lager
]}
,{mod, {trunkstore_app, []}}
]
, lager
]}
,{mod, {trunkstore_app, []}}
]
}.
22 changes: 11 additions & 11 deletions core/gcm/src/gcm.app.src
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{application, gcm, [
{description, "An Erlang client for Google Cloud Messaging (GCM)"},
{vsn, "1.0.0"},
{modules, []},
{registered, [gcm_sup]},
{applications, [ kernel
, stdlib
, inets
, ssl
{description, "An Erlang client for Google Cloud Messaging (GCM)"},
{vsn, "1.0.0"},
{modules, []},
{registered, [gcm_sup]},
{applications, [ kernel
, stdlib
, inets
, ssl

]},
{mod, {gcm_app, []}}
]}.
]},
{mod, {gcm_app, []}}
]}.
22 changes: 11 additions & 11 deletions core/kazoo/src/kazoo.app.src
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{application, kazoo
,[
{description, "Kazoo Helpers"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [ ]}
,{applications, [ kernel
, stdlib
, crypto
,[
{description, "Kazoo Helpers"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [ ]}
,{applications, [ kernel
, stdlib
, crypto

, lager
]}
]}.
, lager
]}
]}.
24 changes: 12 additions & 12 deletions core/kazoo_amqp/src/kazoo_amqp.app.src
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{application, kazoo_amqp,
[
{description, "AMQP client helpers for interacting with a AMQP server"}
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [kz_amqp_connections, kz_amqp_assignments, kz_amqp_sup, kz_amqp_connection_sup, kz_amqp_history, kz_amqp_bootstrap]}
,{applications, [ kernel
, stdlib
,{vsn, "4.0.0"}
,{modules, []}
,{registered, [kz_amqp_connections, kz_amqp_assignments, kz_amqp_sup, kz_amqp_connection_sup, kz_amqp_history, kz_amqp_bootstrap]}
,{applications, [ kernel
, stdlib

, kazoo
, kazoo_config
, kazoo
, kazoo_config

, amqp_client
, lager
, poolboy
]}
,{mod, {kazoo_amqp_app, []}}
, amqp_client
, lager
, poolboy
]}
,{mod, {kazoo_amqp_app, []}}
]}.
Loading

0 comments on commit fd36619

Please sign in to comment.