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
{{ message }}
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
Rule key: bool-param-default
Provide a default value for 'devMode' so that the logic of the function is more evident when this parameter is missing. Consider defining another function if providing default value is not possible.
Reproducer
// Rules fires due to devMode?: booleanconstconfigure: (config: FrameworkConfiguration,devMode?: boolean)=>FrameworkConfiguration=(config: FrameworkConfiguration,devMode: boolean=false): FrameworkConfiguration=>// function logic
Expected behavior
Rule should not throw error for type declaration if function sets a default value.
The text was updated successfully, but these errors were encountered:
I want to report a bug.
SonarTS version: 1.9.0
Node.js version: v10.15.1
TypeScript version: 3.4.5
SonarQube version: N/A
SonarLint version and used IDE: No, vscode
TSLint version: 5.16.0
Rule key:
bool-param-default
Provide a default value for 'devMode' so that the logic of the function is more evident when this parameter is missing. Consider defining another function if providing default value is not possible.
Reproducer
Expected behavior
Rule should not throw error for type declaration if function sets a default value.
The text was updated successfully, but these errors were encountered: