Skip to content

Conversation

@stephen-carter-at-sf
Copy link
Contributor

No description provided.

@stephen-carter-at-sf
Copy link
Contributor Author

fixes: #1795

# command.summary

Display the current state of configuration for Code Analyzer.
Output the current state of configuration for Code Analyzer.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the command is for either displaying to the terminal or writing to a file. I think the world "Output" makes more sense here.


// ==== ASSERTIONS ====
expect(output).toContain('rules: {} # Remove this empty object {} when you are ready to specify your first rule override');
expect(output).toContain('rules: {} # Empty object used because rule selection returned no rules');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed this case to be more explicit as to what happened.

Copy link
Contributor

@randi274 randi274 left a comment

Choose a reason for hiding this comment

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

Looks good! Some of the constructors are starting to get a little long with their parameter lists, but I don't know that that immediately needs refactoring.

@stephen-carter-at-sf stephen-carter-at-sf merged commit fd5900c into dev May 20, 2025
10 checks passed
@stephen-carter-at-sf
Copy link
Contributor Author

I agree. We should refactor the config command soon. I created W-18573046.

@stephen-carter-at-sf stephen-carter-at-sf deleted the sc/W-18541853 branch May 20, 2025 14:47
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.

[EXPERIENCE BUG][code-analyzer] Code Analyzer does not detect custom ruleset even after specifying in code-analyzer.yml

3 participants