zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
169 stars 91 forks source link

Implicit return values in numerous functions #2850

Open traeok opened 5 months ago

traeok commented 5 months ago

Describe the issue

I noticed that noImplicitReturns is commented out in the TypeScript config. When enabled, there are 48 compilation errors. Here's a screenshot with most of the errors that show when noImplicitReturns is set to true:

Proposed solution

Enable the noImplicitReturns property in tsconfig.json where possible (ZE, ZE API, FTP extension) and resolve build errors. Explicit return values minimize the chance of errors or undefined behaviors, and often adds clarity to the logic.