I have to measure how many code lines in a project and a release (made between two labels). I can do that and there's no problem with that for me.
My question is about the weight I have to "attach" to the files which consist the project. I have to weigh the files in a relative way so we finally get a weighted mark. For instance: If I have CPP project, I believe i have to give a different weight to cpp file; h files and text files since the time invested in each file type is quite different.
Furthermore, I may consider to provide a different mark for added lines, removed and changed lines, since sometimes it takes more time to change an existing line (rather than add a new one). However I'm not sure yet about that.
Do you know where can I find good reading material about that? My question is quite generic - I'd like to read also about Java, C# and any code language.
Thank you