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

New fixer and fixtures in tests #17

Merged
merged 3 commits into from
May 17, 2023
Merged

New fixer and fixtures in tests #17

merged 3 commits into from
May 17, 2023

Conversation

przemyslaw-zan
Copy link
Member

Feature (eslint-plugin-ckeditor5-rules): Added fixer for the license-header rule. Closes ckeditor/ckeditor5#11473.

Tests (eslint-plugin-ckeditor5-rules): Added support for using fixtures in tests. Currently only implemented in the license-header rule tests. Closes ckeditor/ckeditor5#11473.

@pomek pomek requested a review from martnpaneq May 15, 2023 07:06
Copy link
Contributor

@martnpaneq martnpaneq left a comment

Choose a reason for hiding this comment

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

The code works as expected.
I really like that you refactored the code and removed nested if statements 👍
Left just two small comments.

@przemyslaw-zan
Copy link
Member Author

I've removed the broken test. The case it is testing works when when actually using fixer with the new rule, both with our regular eslint config, as well as when the license-header rule is the only rule used. There seems to be a bug with the RuleTester implementation that makes it different than the actual eslint implementation.

@pomek pomek merged commit 2873ecc into master May 17, 2023
@pomek pomek deleted the ck/11473 branch May 17, 2023 10:08
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.

Create a fixer for the "ckeditor5-rules/license-header" rule
3 participants