protofire / solhint

Solhint is an open-source project to provide a linting utility for Solidity code.
https://protofire.github.io/solhint/
MIT License
1.04k stars 161 forks source link

Solhint Conflicting Naming Convention for Event Names #600

Open soroush-khoshnoudi opened 2 months ago

soroush-khoshnoudi commented 2 months ago

When developing smart contracts in Solidity, it is a common convention to write event names in CapWord style (also known as PascalCase), such as BeforeTransfer, AfterTransfer, etc., as per Solidity documentation and best practices. However, when I run Solhint to lint my code, I encounter an error stating that "event name should be camel case." This creates a conflict between Solhint's linting rules and the recommended Solidity naming conventions.

solidity event name style guide

HarutProtofire commented 1 day ago

Hello @soroush-khoshnoudi, we apologize for the delay in addressing this. Could you please provide the code causing the issue so we can review it?