Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write code analyzer  RSS feed

 
Navin Pillu
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I want to write my own code analyzer. Does anybody have any idea about it? It'll be very helpful if you have any sample program for the same.

Thanks

Regards
Navin
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by a 'code analyzer'? What exactly do you want to analyze? Are you planning on analyzing the .java files or the .class files?

 
Navin Pillu
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fred

Thanks for your reply.

Actually I want to write analyzer which analyze the java code. It should be like findbugs but having my own validations which I can see in day-to-day life of coding. Type of grep you can say in windows.

Regards
Navin
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37507
551
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can write rules for an existing analyzer rather than starting from scratch. I know PMD lets you write your own rules. Not sure about FindBugs.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!