-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fixing squid: S1192 String literals should not be duplicated #105
Fixing squid: S1192 String literals should not be duplicated #105
Conversation
Please use the i18n standard for coding the string literals. See the rest of the AFC code for examples. |
I wonder why you closed this. I could modify it according to the i18n On Wed, Jun 8, 2016 at 12:33 PM, Stéphane Galland notifications@github.com
|
Could you please give me a few good examples of the files in which I can On Wed, Jun 8, 2016 at 12:51 PM, Stéphane Galland notifications@github.com
|
The string Please configure your Sonar for avoiding to have squid:S1192 when NON-NLS comment is present. |
Ok. I would like to ask before I prepare a PR on an issue, namely squid: On Wed, Jun 8, 2016 at 1:15 PM, Stéphane Galland notifications@github.com
|
Don't remove clones. |
OK. On Wed, Jun 8, 2016 at 1:36 PM, Stéphane Galland notifications@github.com
|
Moving to another rule squid: S1168 "empty arrays and collections should On Wed, Jun 8, 2016 at 1:41 PM, Fevzi Ozgul fevzi.ozgul@devfactory.com
|
I'm almost agree with S1168. If you do, don't create new instances of collections but use the |
Ok. That is What I intended doing... Using the Collections library On Wed, Jun 8, 2016 at 2:16 PM, Stéphane Galland notifications@github.com
|
I have just cloned a fresh version of the project. But I have 6 compiler On Wed, Jun 8, 2016 at 2:19 PM, Fevzi Ozgul fevzi.ozgul@devfactory.com
|
Are you using Maven for compiling? Are you using JDT/ECJ? |
I am using maven. What are the others. Previously I was not getting these On Wed, Jun 8, 2016 at 4:20 PM, Stéphane Galland notifications@github.com
|
JDT/ECJ is the compiler used by IBM/Eclipse. We have change the default compiler used by Maven for moving from javac to ecj. Indeed, ecj is much more better than javac for resolving generic types. If you are using an IDE that is not Eclipse, please ensure that is it using the JDT/ECJ, not javac. See #86 for following the issue related to JDT/ECJ. |
Ok. I have also some issues on my side from the fresh clone. I will fix them asap. |
I am now switching to Eclipse IDE. I am setting the project on my laptop On Wed, Jun 8, 2016 at 4:32 PM, Stéphane Galland notifications@github.com
|
In Eclipse, after import the AFC source code as Maven project, you may have a couple of errors. these errors could be easily solved by installing an Eclipse adapter (by clicking on the automatic problem solving option). Checkstyle has an Eclipse plugin that could be automatically installed in this way. You need to have Internet connexion. |
I have pushed a code that seems to compile successfully on command line. Compilation results by our CI server are available on Travis. |
Ok. I will try again. On Wed, Jun 8, 2016 at 4:48 PM, Stéphane Galland notifications@github.com
|
This pull request is focused on resolving occurrences of Sonar rule
squid:S1192 - “String literals should not be duplicated”.
This PR will reduce 120 min TD.
You can find more information about the issue here:
https://dev.eclipse.org/sonar/rules/show/squid:S1192
Please let me know if you have any questions.
Fevzi Ozgul