Rubberduck
Rubberduck copied to clipboard
Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
Functionality exists for 'Find all references...', just not ToDo items.
RD should identify short-circuit opportunities: ``` IIf condition, funcB, funcC ``` becomes inline `If` ``` If condition Then funcB Else funcC ``` or, `If`-block ``` If condition Then funcB Else...
`CDec` is defined as: ```text [helpcontext(0x0010645a)] HRESULT _stdcall CDec( [in] VARIANT* Expression, [out, retval] VARIANT* pvar ); ``` Rubberduck currently reads the declaration as having 2 parameters, `Expression` and `pvar`,...
The default value for an optional argument must be a "constant expression", but that constant expression can be anything that *results* in a constant expression, including operators, and certain built-in...
VBA allows interface implementation signatures to differ with regard to whether the arguments are passed ByVal or ByRef. That can lead to an access violation and a crash of the...
From linked parent issue; implement a simple version of the inspection to catch the obvious cases.
How about making dumb string comparison more explicit? ` If = ` becomes ` If Strcomp(, , vbTextCompare)=0 ` or maybe use whatever Option Compare setting is instead of vbTextCompare,...
Consider this code: ```vb For i = 0 To 20 On Error GoTo Handler Debug.Print 42/0 Handler: Next ``` The happy path overlaps the error-handling path, resulting in unexpected execution...
**Justification** Users may like to have the groupings of an explorer to be a specific one that is not the one that an explorer first opens with. **Description** 1) The...
**Rubberduck version information** Version 2.5.9.6316 OS: Microsoft Windows NT 10.0.19045.0, x64 Host Product: Microsoft Office x86 Host Version: 16.0.18129.20116 Host Executable: EXCEL.EXE **Description** Perhaps a rather minor issue, but within...