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
extern declarations cause "Bad usage of failwith:" warning
Repro steps
Run linter against code:
[<DllImport("LogitechLedEnginesWrapper", CallingConvention=CallingConvention.Cdecl)>]
extern bool LogiLedInit()
[<DllImport("LogitechLedEnginesWrapper", CallingConvention=CallingConvention.Cdecl)>]
extern bool LogiLedSetLighting(int redPercenatge, int greenPercenatge, int bluePercenatge)
Note: must be at least 2 extern declarations
Expected behavior
No errors or warnigns.
Actual behavior
The following warning is issued:
Bad usage of failwith: consider using unique error messages as parameters.
Error on line 5 starting at column 0
extern bool LogiLedSetLighting(int redPercenatge, int greenPercenatge, int bluePercenatge)
^
The text was updated successfully, but these errors were encountered:
Description
extern
declarations cause "Bad usage of failwith:" warningRepro steps
Run linter against code:
Note: must be at least 2
extern
declarationsExpected behavior
No errors or warnigns.
Actual behavior
The following warning is issued:
The text was updated successfully, but these errors were encountered: