This is a migrated thread and some comments may be shown as answers.

Where is the "Ignore This Error/Warning" stored?

3 Answers 107 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris May
Top achievements
Rank 1
Chris May asked on 04 Jun 2012, 10:10 PM
After ignoring a bunch of stuff from an existing solution I reviewed, I noticed that there were no new files created in my source controlled solution, so I'm assuming that if someone else were to check out the project that they would be presented with the same list of warnings that I already went through and ignored.  Is that correct? 

I'm also thinking of a situation where I get a new computer, or I pull code into a different location on my computer, and wondering how Just Code would react.  How does it store the list of things I've told it to ignore?

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivan
Telerik team
answered on 05 Jun 2012, 11:42 AM
Hello,

Thank you for your feedback. Since version 2012-04-19 of JustCode the ignored warnings and errors are stored inside a folder in your solution folder called .JustCode. It should not be picked by your source control system and thus will not be shared among all team members.
Before that they were stored in %appdata%/JustCode/userConfiguration.xml and were again not picked by the source control system.
At the moment the errors and warnings are stored with the full path of the file they are in. That means if you move the file to another location - they will be shown again.
We will definitely consider a better way to do it(i.e. taking a path relative to the solution) so you can reuse the ignored warnings and errors on every machine you have. That is why we have moved them to another file.
If you have any more questions or remarks, please do not hesitate to contact us again!

All the best,
Ivan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Steven
Top achievements
Rank 1
answered on 29 May 2014, 11:18 PM
Hi, have there been any further updates on this issue? I've seen it has been some time since this post was last dealt with.

I can see that the ignored warnings/errors are being stored in the .JustCode folder where the solution file is. However, we are to understand not to store this file in source control. So when it comes to another guy in the team to pick up the project they will have to re-ignore all the warnings. If I happen to want to get a clean checkout then I will also have to re-ignore all warnings. Seems like a bit of a pain.

We would like to see the ignored warnings stored in a file which can be source controlled.

Thanks
0
Ivan
Telerik team
answered on 31 May 2014, 02:07 PM
Hi,

You can add the generated file in the .JustCode folder to your repository. Then everyone who gets the repository locally should not see any of the ignored errors or warnings.
A possible downside is that the generated file is a xml one and it is could be tricky to resolve conflicts when there are any.
Please note that it is possible for an ignored error or warning to be shown again without explicitly unignoring it. JustCode remembers the type of the warning and the content of the line where it is stored. So if you change the content of the line without fixing the warning it will be shown again.
If you have any questions or remarks, please do not hesitate to contact us again!

Regards,
Ivan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Code Analysis
Asked by
Chris May
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Steven
Top achievements
Rank 1
Share this question
or