+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

feat(rome_analyze): use serde to deserialize rule settings #3347

Merged
merged 2 commits into from
Oct 10, 2022

Conversation

ematipico
Copy link
Contributor

Summary

Closes #3343
Closes #3344
Closes #3345

The function rule_options has been renamed rule_settings and it's been lifted inside the AnalyzerContext. The AnalyzerContext now accepts a RuleKey, which is needed to retrieve and deserialize the JSON string coming from the configuration.

serde is not optional anymore (I thought the entity of the change was bigger).

The handling of the error has been left out on purpose for the time being, and it will be handled in a different PR

Test Plan

The current CI should work

@netlify
Copy link

netlify bot commented Oct 5, 2022

Deploy Preview for rometools ready!

Name Link
🔨 Latest commit 2f8980e
🔍 Latest deploy log https://app.netlify.com/sites/rometools/deploys/634044645c30af0009aca13e
😎 Deploy Preview https://deploy-preview-3347--rometools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ematipico ematipico temporarily deployed to netlify-playground October 6, 2022 09:04 Inactive
@github-actions
Copy link

github-actions bot commented Oct 6, 2022

@ematipico ematipico force-pushed the feature/rule-with-self branch from 4812017 to bb271aa Compare October 6, 2022 09:18
@ematipico ematipico temporarily deployed to netlify-playground October 6, 2022 09:18 Inactive
@ematipico ematipico requested a review from leops October 6, 2022 09:18
@ematipico ematipico added the A-Linter Area: linter label Oct 6, 2022
@ematipico ematipico requested a review from xunilrj October 7, 2022 15:22
@ematipico ematipico force-pushed the feature/rule-with-self branch from bb271aa to 2f8980e Compare October 7, 2022 15:23
@ematipico ematipico temporarily deployed to netlify-playground October 7, 2022 15:23 Inactive
@ematipico ematipico merged commit 148a539 into main Oct 10, 2022
@ematipico ematipico deleted the feature/rule-with-self branch October 10, 2022 07:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Linter Area: linter
Projects
None yet
3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载