You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Erlang SNMP allows to map the MIB objects to instrumentation functions through the xxx_MIB.funcs like this:
{myName, {ex1, my_name, []}}.
The MIB compilation step in elixir-snmp should map the camelCase object names to snake_case automatically.
When the instrumentation function names are left in camelCase as in the MIB, mix credo reports readability issues like this:
┃ [R] ↗ Function/macro/guard names should be written in snake_case.
┃ apps/snmp_agent/lib/snmp_agent/snmp/mib/strouter.ex:43:7 #(SnmpAgent.Mib.StRouter.inputsTable)
The text was updated successfully, but these errors were encountered:
The Erlang SNMP allows to map the MIB objects to instrumentation functions through the xxx_MIB.funcs like this:
{myName, {ex1, my_name, []}}.
The MIB compilation step in elixir-snmp should map the camelCase object names to snake_case automatically.
When the instrumentation function names are left in camelCase as in the MIB, mix credo reports readability issues like this:
┃ [R] ↗ Function/macro/guard names should be written in snake_case.
┃ apps/snmp_agent/lib/snmp_agent/snmp/mib/strouter.ex:43:7 #(SnmpAgent.Mib.StRouter.inputsTable)
The text was updated successfully, but these errors were encountered: