Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@W-14689505@: Action Implementation (Part 1 of 2) - all except results analysis #2

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

stephen-carter-at-sf
Copy link
Contributor

No description provided.

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@stephen-carter-at-sf stephen-carter-at-sf changed the title Action Implementation (Part 1 of 2) - all except results analysis @W-14689505@: Action Implementation (Part 1 of 2) - all except results analysis Jan 9, 2024
@stephen-carter-at-sf stephen-carter-at-sf force-pushed the d/W-14689505 branch 3 times, most recently from 81c43c6 to 5a04a2d Compare January 9, 2024 16:48
"moduleResolution": "NodeNext",
"baseUrl": "./",
"sourceMap": true,
"outDir": "./dist_local",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the npm run package command uses ncc to compile the index.ts and all its dependencies into a single index.js file inside of the dist folder. In fact there is a github action to confirm that we don't accidentally submit anything else from dist. To make things neat and organized for local development, i have chosen to have the compile to compile to dist_local instead which is on the .gitignore list now. Also note that this ncc really helps us not have to worry about accidentally shipping the tests - so I was able to make the root directory "." and include the tests in the main build and linting.

Comment on lines +18 to +21
// TODO: NICE TO HAVES:
// * Verify that Salesforce CLI "sf" is installed
// * Verify that sfdx-scanner plugin is installed (and if not, then install it as a separate step)
// * Echo version of sfdx-scanner in use
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope to do these along with the output analysis in the next work item. And I might break it up into 2 separate PRs to make things easy.

})

it('Test trailing -o', async () => {
const outfile1 = extractOutfileFromRunArguments('--normalize-severity -o ')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When this command actually tries to run, they'll get an error because the flag expects a value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand. This is just an extra added level of protection.

@stephen-carter-at-sf stephen-carter-at-sf merged commit 1f5687a into main Jan 11, 2024
6 checks passed
@stephen-carter-at-sf stephen-carter-at-sf deleted the d/W-14689505 branch January 11, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants