Преглед изворни кода

style: ensure newline at EOF for all files

Zaiming Shi пре 4 година
родитељ
комит
56e2a9741f

+ 1 - 1
CONTRIBUTING.md

@@ -79,4 +79,4 @@ Just as in the **subject**, use the imperative, present tense: "change" not "cha
 
 The footer should contain any information about **Breaking Changes** and is also the place to reference GitHub issues that this commit **Closes**.
 
-**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
+**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.

+ 3 - 3
apps/emqx/test/emqx_broker_helper_SUITE.erl

@@ -41,7 +41,7 @@ t_lookup_subpid(_) ->
     emqx_broker_helper:register_sub(self(), <<"clientid">>),
     ct:sleep(10),
     ?assertEqual(self(), emqx_broker_helper:lookup_subpid(<<"clientid">>)).
-    
+
 t_register_sub(_) ->
     ok = emqx_broker_helper:register_sub(self(), <<"clientid">>),
     ct:sleep(10),
@@ -62,7 +62,7 @@ t_shard_seq(_) ->
 
 t_shards_num(_) ->
     ?assertEqual(emqx_vm:schedulers() * 32, emqx_broker_helper:shards_num()).
-    
+
 t_get_sub_shard(_) ->
     ?assertEqual(0, emqx_broker_helper:get_sub_shard(self(), <<"topic">>)).
 
@@ -72,4 +72,4 @@ t_terminate(_) ->
 t_uncovered_func(_) ->
     gen_server:call(emqx_broker_helper, test),
     gen_server:cast(emqx_broker_helper, test),
-    emqx_broker_helper ! test.
+    emqx_broker_helper ! test.

+ 1 - 1
apps/emqx/test/emqx_pqueue_SUITE.erl

@@ -174,4 +174,4 @@ t_filter(_) ->
 t_highest(_) ->
     empty = ?PQ:highest(?PQ:new()),
     0 = ?PQ:highest(?PQ:from_list([{0, a}, {0, b}])),
-    2 = ?PQ:highest(?PQ:from_list([{0, a}, {0, b}, {1, c}, {2, d}, {2, e}])).
+    2 = ?PQ:highest(?PQ:from_list([{0, a}, {0, b}, {1, c}, {2, d}, {2, e}])).

+ 1 - 1
apps/emqx/test/emqx_sup_SUITE.erl

@@ -36,4 +36,4 @@ t_child(_) ->
     ?assertMatch({error, not_found}, emqx_sup:stop_child(undef)),
     ?assertMatch({error, _}, emqx_sup:start_child(emqx_broker_sup, supervisor)),
     ?assertEqual(ok, emqx_sup:stop_child(emqx_broker_sup)),
-    ?assertMatch({ok, _}, emqx_sup:start_child(emqx_broker_sup, supervisor)).
+    ?assertMatch({ok, _}, emqx_sup:start_child(emqx_broker_sup, supervisor)).

+ 1 - 1
apps/emqx_authn/test/emqx_authn_SUITE.erl

@@ -19,4 +19,4 @@
 -compile(export_all).
 -compile(nowarn_export_all).
 
-all() -> emqx_common_test_helpers:all(?MODULE).
+all() -> emqx_common_test_helpers:all(?MODULE).

+ 1 - 1
apps/emqx_connector/src/emqx_connector_redis.erl

@@ -182,4 +182,4 @@ to_server(Server) ->
     case string:tokens(Server, ":") of
         [Host, Port] -> {ok, {Host, list_to_integer(Port)}};
         _ -> {error, Server}
-    end.
+    end.

+ 1 - 1
apps/emqx_limiter/etc/emqx_limiter.conf

@@ -47,4 +47,4 @@ emqx_limiter {
       per_client = "100/10s,10"
     }
   }
-}
+}

+ 1 - 1
apps/emqx_prometheus/grafana_template/EMQ.json

@@ -2099,4 +2099,4 @@
   "title": "EMQ",
   "uid": "tjRlQw6Zk",
   "version": 29
-}
+}

+ 1 - 1
apps/emqx_prometheus/grafana_template/EMQ_Dashboard.json

@@ -630,4 +630,4 @@
   "title": "EMQ Dashboard",
   "uid": "5sreUw6Wz",
   "version": 11
-}
+}

+ 1 - 1
apps/emqx_prometheus/grafana_template/ErlangVM.json

@@ -1471,4 +1471,4 @@
   "title": "ErlangVM",
   "uid": "stprQQ6Zk",
   "version": 13
-}
+}

+ 1 - 1
apps/emqx_resource/examples/log_tracer.conf

@@ -8,4 +8,4 @@
         "bulk": "10KB"
         "chars_limit": 1024
     }
-}
+}

+ 1 - 1
apps/emqx_resource/src/emqx_resource_sup.erl

@@ -55,4 +55,4 @@ ensure_pool_worker(Pool, Name, Slot) ->
     try gproc_pool:add_worker(Pool, Name, Slot)
     catch
         error:exists -> ok
-    end.
+    end.

+ 1 - 1
apps/emqx_resource/src/emqx_resource_uitils.erl

@@ -13,4 +13,4 @@
 %% See the License for the specific language governing permissions and
 %% limitations under the License.
 %%--------------------------------------------------------------------
--module(emqx_resource_uitils).
+-module(emqx_resource_uitils).

+ 1 - 1
apps/emqx_retainer/.gitignore

@@ -23,4 +23,4 @@ logs/
 rebar.lock
 test/ct.cover.spec
 etc/emqx_retainer.conf.rendered
-.rebar3/
+.rebar3/

+ 1 - 1
apps/emqx_rule_engine/src/emqx_rule_maps.erl

@@ -206,4 +206,4 @@ unsafe_atom_key_map(BinKeyMap) when is_map(BinKeyMap) ->
         end, #{}, BinKeyMap);
 unsafe_atom_key_map(ListV) when is_list(ListV) ->
     [unsafe_atom_key_map(V) || V <- ListV];
-unsafe_atom_key_map(Val) -> Val.
+unsafe_atom_key_map(Val) -> Val.

+ 1 - 1
deploy/charts/emqx/templates/ingress.yaml

@@ -95,4 +95,4 @@ spec:
     {{- toYaml .Values.ingress.mgmt.tls | nindent 4 }}
   {{- end }}
 ---
-{{- end }}
+{{- end }}

+ 3 - 3
deploy/charts/emqx/templates/rbac.yaml

@@ -17,8 +17,8 @@ rules:
 - apiGroups:
   - ""
   resources:
-  - endpoints 
-  verbs: 
+  - endpoints
+  verbs:
   - get
   - watch
   - list
@@ -39,4 +39,4 @@ subjects:
 roleRef:
   kind: Role
   name: {{ include "emqx.fullname" . }}
-  apiGroup: rbac.authorization.k8s.io
+  apiGroup: rbac.authorization.k8s.io