计算代码行 [英] counting lines of code

查看:74
本文介绍了计算代码行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天!我想检查一个开源工具的缺陷密度。此工具可用于创建连续构建过程。大多数软件都是用java编写的,其中包含许多用html,css,html,javascript,xslt,jsp编写的附加文件。此工具还具有Web界面,供用户查看其工作。


我的问题是:

1.是否有可能在其他文件中出现错误,如html,css等?

2.我是否需要计算这些文件的代码行数?


请随时发表评论。谢谢。

解决方案

当你说臭虫时你指的是渲染问题或问题可能会妨碍你测试工具/功能的工具吗?


我不清楚你为什么需要计算代码行数HTML / CSS。


请你更好地解释你的问题。


- 凯文


我在想,错误也可能包含在html / css文件中。让我们说用户报告一些问题/错误,为了解决它,开发人员必须对java代码进行更改,也许对javascript,html,css等进行更改。这就是为什么我感到困惑,我有没有只计算java文件的代码行数或所有文件?你不这么认为......


我应该采用哪些文件来计算开源工具的代码行数,让我们来源于SourceForge.net(通常配置附带xml配置文件,css文件等)。谢谢。


对于更多的一般性答案,我想说如果你知道哪一行代码导致了问题,那么是计算行到达正确的行来进行修复。如果您只知道HTML或CSS文件没有按预期方式呈现,那么我不会看到计算代码行的重要性。


移动到Misc论坛这不是一个HTML / CSS问题,而是一个更普遍的问题。


--Kevin

good day! I wanna check defect density of an open source tool. This tool can be used for creating a continuous build process. Most of the software is written in java, with a number of additional files written in html, css, html, javascript, xslt, jsp. This tool also has a web interface for users to view their work.

My questions are:
1. Are there possibilities of getting bugs in those additional files such as html, css etc?
2. Do I have to count lines of code of those files?

please feel free to give any comments. thank you.

解决方案

When you say "Bugs" are you referring to rendering issues or issues that might hinder the way the tool you are testing works / functions?

I am not clear as to why you would need to count lines of code for HTML/CSS.

Would you please explain your questions better.

--Kevin


I was thinking that, bugs may contain in html/css files as well. Let us say that users report some issues/bugs, and in order to fix it, developers have to do changes to the java code and maybe to the javascript, html, css etc. That''s why I was confused, do i have to count lines of code of the java files only or all files too? Don''t you think so....

Which files should I take to count lines of code of an open source tool, let''s say from the SourceForge.net (usually the distribution comes with xml config files, css files, etc). Thank you.


For more a general answer, I would say that if you know which line of code is causing issues then yes count the lines to get to the proper line to make the fix. If you only know that the HTML or CSS file is not rendering the way you expected, then I would not see where counting the lines of code would matter.

Moving to the Misc forum is this is not an HTML/CSS question, but rather more of a general question.

--Kevin


这篇关于计算代码行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆