• Post Reply Bookmark Topic Watch Topic
  • New Topic

Check For Strings  RSS feed

 
Giri moh'kar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I Searched in the Check Style site and also looked api's but iam looking for hardcoded strings,i didnt find.can you please help in this regard..
[ June 14, 2007: Message edited by: Giirdhar Mohareer ]
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess this is a continuation of this thread, correct? In general it's better if you reply to your previous thread using rather than . That way, your post will appear directly underneath the previous post, and people will have easy access to all the information you've provided.

It looks like CheckStyle does not have the check you want, so you will have to write your own. Have you read their writing checks documentation? That's probably the first thing to do. After that I would probably download all the source code, and find the code they use to implement the MultipleStringLiterals check. Because that sounds similar to what you're doing. You want to detect any string literal, which is simpler than what they're doing. Find their code, make a copy, and modify it to do what you want. Good luck!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!