-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add Swift rules from ecocode-ios #224
Add Swift rules from ecocode-ios #224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your point of view @jycr ???
Hi @gaelfoppolo, |
This PR has been automatically marked as stale because it has no activity for 30 days. |
It seems #209 was merged. Can someone re-review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only one thing to approve this PR : add a CHANGELOG.md modification to explain this PR, please
@zippy1978, after checking th main branch, no, these rules don't exist already in "ecocode-rules-specifications" directory. Thus, for me, this PR must be merged, once my modification request done. |
"ecocode" | ||
], | ||
"defaultSeverity": "Major", | ||
"compatibleLanguages": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's useful to set this property.
Additionally, JSON in rule folder level is supposed to be language agnostic.
For language specificities, it would be necessary to be able to manage a JSON override with a JSON file placed in the corresponding subfolder language directory.
The ability to overload JSON metadata is currently not implemented (but could be if necessary).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, leave it like that.
We improve metadata in future commits if needed
I double-checked and here the matching I've got (also with some inconsistencies):
|
Done! |
@gaelfoppolo thank you for these observations, good job. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jycr ... your recent point of view ?
Kudos, SonarCloud Quality Gate passed! |
Summary
This PR adds the Swift rules implemented in ecoCode-iOS repository.