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
Allow user to download custom combination of analyzers and refactorings #47
Comments
Wouldn't be simpler to include some sort of configuration file? a la ".gitignore" or "packages.config"? |
For compilation time, is it possible create a NuGet Package that install all analyzers packages, but at Editor time (VSIX). I don't know how to to this. |
I just remembered that we can use the code analysis infrastructure. Instead of generating a whole new assembly, we could just generate the rule set and deliver the same assembly. Or maybe they use the default rule set editor. The .ruleset file is an xml that looks like this: <?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Code Cracker Rules" Description="Whatever." ToolsVersion="14.0">
<Rules AnalyzerId="CodeCracker" RuleNamespace="CodeCracker">
<Rule Id="CodeCracker.CatchEmptyAnalyzer" Action="None" />
<Rule Id="CodeCracker.EmptyCatchBlockAnalyzer" Action="None" />
</Rules>
</RuleSet> |
Yes, developer can do this and configure your environment. But this work with build servers ? |
I believe it will, if you commit the .ruleset file. I would have to check how the .csproj/.kroj/project.json uses it. |
+1 on config file. You can still provide something like the JQuery UI download Builder to help out generating the config file, but I would definitely try to avoid generating different nuget packages for this as generating unique package ids would end up being ugly. |
I just verified that the .ruleset is added to csproj: This is what is added: <CodeAnalysisRuleSet>newrules.ruleset</CodeAnalysisRuleSet> So we could maybe have a download page that prepared the nuget installation ( |
Cool! |
We decided that this is not the time to work on this item, it is too early. We will leave it on the backlog and up for grabs. We have decided that the focus should be on analyzers and code fixes at the moment. If you want to work on this item just comment here and we will discuss with you an implementation. |
@code-cracker/owners It has become really simple in Visual Studio 2015 to decide what diagnostics you want. I will close this issue because of that, if you want we can discuss it later. |
This is a low priority issue, if you want to work on it please read the comments
CodeCracker is bringing together tens of different analyzers and refactorings and very soon it will gather hundreds. Not everyone will want to use all of them. This issue focuses on allowing the user to choose whatever combination of analyzers and refactorings they want and generate a custom package. A plus would be to publish that to nuget so they can use that directly on their project without the need to download, and if a combination already exists point them to an existing package.
We could build something like the Jquery UI download builder.
We don't have any idea on how to do that yet, so we need to discuss it. We could probably work with
csc
ormsbuild
directly to build an exact package combination. We would also need to work on the isolation of the analyzers and refactorings, so they can be used without depending on each others. And this all needs to be testable.This issue is made harder by the fact that we do not yet have a build server.
Ideas are welcome and needed. This issue is first an invitation to discussion, and, after we decide on a strategy, it will become the actual implementation of the chosen strategy. So, please, brainstorm!
The text was updated successfully, but these errors were encountered: