Skip to content

Conversation

@StephanyBatista
Copy link

The Analyzer will alert when have more than two concatenation in initialization
Test: (in) var teste = "A" + "B" + "C"; (out) var teste = new StringBuilder().Append("A").Append("B").Append("C").ToString();

To implement was need to create the files: UseStringBuilderToConcatenationAnalyzer.cs, UseStringBuilderToConcatenationCodeFixProvider.cs and the file of test UseStringBuilderToConcatenationTests.cs than contains the cases

The Analyzer will alert when have more than two concatenation in initialization
Test: (in) var teste = "A" + "B" + "C"; (out) var teste = new StringBuilder().Append("A").Append("B").Append("C").ToString();
@giggio
Copy link
Owner

giggio commented Nov 23, 2014

@StephanyBatista you have to issue a PR against the code cracker repository, this is my personal one.

giggio pushed a commit that referenced this pull request Mar 11, 2017
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.

2 participants