Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rework of rules properties #61

Merged
merged 3 commits into from
Jun 20, 2019
Merged

Rework of rules properties #61

merged 3 commits into from
Jun 20, 2019

Conversation

milbrandt
Copy link
Collaborator

@milbrandt milbrandt commented Jun 16, 2019

Open Points:

  • In org.sonar.plugins.fsharp.FSharpSonarRulesDefinition there are 16 additional rules which are not activated in FSharpSonarWayProfile. Some of them should IMHO included, eg RulesRedundantNewKeyword Why are These rules not included? Any history behind it? These rules are unchanged for now.
  • RuleProperty - Constructor and getters or a pure bean with getters and setters.
  • Missing HtmlDesicription of the rules are in sonar-fsharp-plugin\src\main\resources\org\sonar\l10n\fsharp\rules?
  • why set priority in org.sonar.plugins.fsharp.FSharpSonarWayProfile.activateRule as it is already set in FSharpSonarRulesDefinition while creating the rules?

@jmecosta Feel free to commit to this branch on any of the above open points

@milbrandt milbrandt self-assigned this Jun 16, 2019
@milbrandt milbrandt changed the title Rework rules properties 57 Rework of rules properties Jun 16, 2019
@milbrandt
Copy link
Collaborator Author

@jmecosta Any comments on my questions in the initial PR? Especially question 1, 3, 4 I don't know the background.

@jmecosta
Copy link
Owner

The asnwer is pretty much the same, the rules have not ever been stabilized and i supose after of both sonar and fsharp lint those have just become outdated. My sughestion is we take what fsharp lint provides now and go with it. Hrmldescriptiosn i have no idea what to put there, i would rather just not have everything

@milbrandt
Copy link
Collaborator Author

I would like to merge this PR and have created a new issue to sync rules between FshapLint and this plugin.

rules.put("RulesHintRefactor", new RuleProperty(Severity.MAJOR, "Hint Refactor", "<p></p>"));
rules.put("RulesHintSuggestion", new RuleProperty(Severity.MAJOR, "Hint Suggestion", "<p></p>"));

rules.put("RulesXmlDocumentationExceptionError", new RuleProperty(Severity.INFO, "deprecated rule", "<p></p>"));
Copy link
Owner

Choose a reason for hiding this comment

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

they can go, Fsharp.Lint doest produce those anymore and users cant use another version of fsharplint

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As this branch still uses id="FSharpLint.Core" version="0.7.6" I was not sure. In net472 branch definitely.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All Xml-Rules are gone in current FSharpLint 0.12.1, the Hint-Rules are still in IMHO.

Copy link
Owner

@jmecosta jmecosta Jun 20, 2019

Choose a reason for hiding this comment

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

As this branch still uses id="FSharpLint.Core" version="0.7.6" I was not sure. In net472 branch definitely.

the current master imo is still WIP, only after we have net472 in place i think we can stabilize the version. At least i wouldnt do any major release of the current master

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would like to release 1.0.6 officially with net45, removed deprecated API and hopefully my repoting issue (I haven't started looking on it yet). Then the current master would be good for SonarQube 8.
All other stuff only in net472 branch, Accord.

@milbrandt milbrandt merged commit 668d3d2 into master Jun 20, 2019
@jmecosta
Copy link
Owner

jmecosta commented Jun 20, 2019 via email

@milbrandt milbrandt deleted the reworkRulesProperties_57 branch June 20, 2019 18:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants