Skip to content

CHANGE: @W-16092798@ Update workspace to be optional and add testtools #36

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

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

stephen-carter-at-sf
Copy link
Collaborator

No description provided.

@stephen-carter-at-sf stephen-carter-at-sf changed the title @W-16092798@ Update workspace to be optional and add testtools CHANGE: @W-16092798@ Update workspace to be optional and add testtools Jun 28, 2024
@@ -133,7 +132,7 @@ export class CodeAnalyzer {
this.eventEmitter.on(eventType, callback);
}

private async getAllRules(workspace: Workspace): Promise<RuleImpl[]> {
private async getAllRules(workspace: Workspace | undefined): Promise<RuleImpl[]> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why declare it this way instead of as workspace?: Workspace?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah good point. will fix.

import {LogLevel, RuleType, SeverityLevel} from "../src";
import * as engApi from "@salesforce/code-analyzer-engine-api";

describe('Misc tests', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Categorizing tests as "misc" tends to bug me, but I don't have a better name in mind. Maybe "interoperability"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fair point... will update.

@stephen-carter-at-sf stephen-carter-at-sf merged commit 39d669d into dev Jun 28, 2024
5 checks passed
@stephen-carter-at-sf stephen-carter-at-sf deleted the sf/W-16092798 branch June 28, 2024 15:43
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