Permalink
Browse files

replace tab by spaces; add some comments

  • Loading branch information...
1 parent f5bafc4 commit 975bc7fba4077ae3439dae16df85c3dfbe18941d @jeremi committed Jan 21, 2010
Showing with 53 additions and 51 deletions.
  1. +12 −12 gadget-code-coverage-test-success.xml
  2. +15 −13 gadget-code-overview.xml
  3. +12 −12 gadget-comments-duplications.xml
  4. +14 −14 gadget-rules.xml
@@ -36,10 +36,10 @@
<Content type="html">
<![CDATA[
<link href="http://exogadgets.appspot.com/static/sonar/style.css" media="all" rel="stylesheet" type="text/css" />
- <!-- use the full URL because Jira does not rewrite them -->
- <script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/jquery.js"></script>
+ <!-- use the full URL because Jira does not rewrite them -->
+ <script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/jquery.js"></script>
<script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/sonar.js"></script>
- <script type="text/javascript">
+ <script type="text/javascript">
function update_metrics() {
var metrics = "coverage,line_coverage,branch_coverage,tests,test_execution_time";
metrics += "test_success_density,test_failures,test_errors";
@@ -67,20 +67,20 @@
- $(function() {
- $("#preferences").bind("finish_edit", function(){update_metrics();});
+ $(function() {
+ $("#preferences").bind("finish_edit", function(){update_metrics();});
- var prefs = new gadgets.Prefs();
- $("#edit").click(sonar.EditPreferences);
+ var prefs = new gadgets.Prefs();
+ $("#edit").click(sonar.EditPreferences);
- if (prefs.getString("is_configured") === "0"){
+ if (prefs.getString("is_configured") === "0"){
sonar.EditPreferences();
} else {
update_metrics();
}
});
- </script>
- <div id="container">
+ </script>
+ <div id="container">
<div id="body">
<h1 id="resource_name"></h1>
<span id="resource_description"></span> <a href="#" id="edit">Edit</a>
@@ -133,7 +133,7 @@
</div>
</div>
- </div>
- ]]>
+ </div>
+ ]]>
</Content>
</Module>
View
@@ -36,10 +36,10 @@
<Content type="html">
<![CDATA[
<link href="http://exogadgets.appspot.com/static/sonar/style.css" media="all" rel="stylesheet" type="text/css" />
- <!-- use the full URL because Jira does not rewrite them -->
- <script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/jquery.js"></script>
+ <!-- use the full URL because Jira does not rewrite them -->
+ <script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/jquery.js"></script>
<script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/sonar.js"></script>
- <script type="text/javascript">
+ <script type="text/javascript">
function update_metrics() {
sonar.GetMetrics("ncloc,lines,classes,packages,functions,accessors", function(res) {
var resource = res.data[0];
@@ -64,20 +64,21 @@
- $(function() {
- $("#preferences").bind("finish_edit", function(){update_metrics();});
+ $(function() {
+ $("#preferences").bind("finish_edit", function(){update_metrics();});
- var prefs = new gadgets.Prefs();
- $("#edit").click(sonar.EditPreferences);
-
- if (prefs.getString("is_configured") === "0"){
+ var prefs = new gadgets.Prefs();
+ $("#edit").click(sonar.EditPreferences);
+
+ if (prefs.getString("is_configured") === "0"){
sonar.EditPreferences();
} else {
update_metrics();
}
});
- </script>
- <div id="container">
+ </script>
+ <div id="container">
+ <!-- our template of code -->
<div id="body">
<h1 id="resource_name"></h1>
<span id="resource_description"></span> <a href="#" id="edit">Edit</a>
@@ -111,6 +112,7 @@
</table>
</div>
+ <!-- The template of preferences -->
<div id="preferences" style="display:none;">
<form>
<fieldset>
@@ -127,7 +129,7 @@
<a href="http://www.exoplatform.com" style="float:left;" target="_blank"><img src="http://www.exoplatform.com/portal/favicon.ico" style="margin-right:5px;"/>eXo Platform</a>
</div>
</div>
- </div>
- ]]>
+ </div>
+ ]]>
</Content>
</Module>
@@ -36,10 +36,10 @@
<Content type="html">
<![CDATA[
<link href="http://exogadgets.appspot.com/static/sonar/style.css" media="all" rel="stylesheet" type="text/css" />
- <!-- use the full URL because Jira does not rewrite them -->
- <script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/jquery.js"></script>
+ <!-- use the full URL because Jira does not rewrite them -->
+ <script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/jquery.js"></script>
<script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/sonar.js"></script>
- <script type="text/javascript">
+ <script type="text/javascript">
function update_metrics() {
var metrics = "comment_lines_density,comment_lines,public_documented_api_density,public_undocumented_api";
metrics += ",commented_out_code_lines,duplicated_lines_density,duplicated_lines,duplicated_blocks,duplicated_files";
@@ -67,20 +67,20 @@
- $(function() {
- $("#preferences").bind("finish_edit", function(){update_metrics();});
+ $(function() {
+ $("#preferences").bind("finish_edit", function(){update_metrics();});
- var prefs = new gadgets.Prefs();
- $("#edit").click(sonar.EditPreferences);
+ var prefs = new gadgets.Prefs();
+ $("#edit").click(sonar.EditPreferences);
- if (prefs.getString("is_configured") === "0"){
+ if (prefs.getString("is_configured") === "0"){
sonar.EditPreferences();
} else {
update_metrics();
}
});
- </script>
- <div id="container">
+ </script>
+ <div id="container">
<div id="body">
<h1 id="resource_name"></h1>
<span id="resource_description"></span> <a href="#" id="edit">Edit</a>
@@ -132,7 +132,7 @@
<a href="http://www.exoplatform.com" style="float:left;" target="_blank"><img src="http://www.exoplatform.com/portal/favicon.ico" style="margin-right:5px;"/>eXo Platform</a>
</div>
</div>
- </div>
- ]]>
+ </div>
+ ]]>
</Content>
</Module>
View
@@ -48,11 +48,11 @@
text-decoration:none !important;
}
</style>
-
- <!-- use the full URL because Jira does not rewrite them -->
- <script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/jquery.js"></script>
+
+ <!-- use the full URL because Jira does not rewrite them -->
+ <script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/jquery.js"></script>
<script type="text/javascript" src="http://exogadgets.appspot.com/static/sonar/sonar.js"></script>
- <script type="text/javascript">
+ <script type="text/javascript">
function update_metrics() {
var metrics = "violations_density,efficiency,maintainability,portability,reliability,usability";
metrics += ",violations,blocker_violations,critical_violations,major_violations,minor_violations,info_violations";
@@ -110,24 +110,24 @@
- $(function() {
- $("#preferences").bind("finish_edit", function(){update_metrics();});
+ $(function() {
+ $("#preferences").bind("finish_edit", function(){update_metrics();});
if (!$.support.cssFloat) {
$("a.tip").removeClass("tip");
- }
+ }
- var prefs = new gadgets.Prefs();
- $("#edit").click(sonar.EditPreferences);
+ var prefs = new gadgets.Prefs();
+ $("#edit").click(sonar.EditPreferences);
- if (prefs.getString("is_configured") === "0"){
+ if (prefs.getString("is_configured") === "0"){
sonar.EditPreferences();
} else {
update_metrics();
}
});
- </script>
- <div id="container">
+ </script>
+ <div id="container">
<div id="body">
<h1 id="resource_name"></h1>
<span id="resource_description"></span> <a href="#" id="edit">Edit</a>
@@ -265,7 +265,7 @@
</div>
</div>
- </div>
- ]]>
+ </div>
+ ]]>
</Content>
</Module>

0 comments on commit 975bc7f

Please sign in to comment.