-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Have you tried to resolve this issue yourself first?
- I confirm I have gone through the above steps and still have an issue to report.
Bug Description
I have installed sf code analyzer in gitlab pipeline. I have checked the plugin after installation. Ver 5.8 is there. I run sf code-analyzer help command. It lists put all commands with details. BUT, even basic versions of all three commands - config, rules and run are getting failed with same error.
TypeError: The "path" argument must be of type string. Received undefined
Code: ERR_INVALID_ARG_TYPE
But same command works perfectly in VS Code
Output / Logs
(node:140) Warning: Closing file descriptor 23 on garbage collection
(Use `node --trace-warnings ...` to show where the warning was created)
TypeError: The "path" argument must be of type string. Received undefined
Code: ERR_INVALID_ARG_TYPE
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1Steps To Reproduce
Just run:
sf code-analyzer run
Expected Behavior
The specified files or files under specified folder/workspace should be scanned
Operating System
Linux (GitLab)
Salesforce CLI Version
2.118.20
Code Analyzer Plugin (code-analyzer) Version
5.8.0
Node Version
20.0
Java Version
jdk 11
Python Version
No response
Additional Context (Screenshots, Files, etc)
No response
Workaround
I have tried all possible combinations of all commands
Urgency
High
Metadata
Metadata
Assignees
Labels
No labels