]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5967 Remove the limitation of 3000 lines
authorStas Vilchik <vilchiks@gmail.com>
Tue, 23 Dec 2014 13:35:01 +0000 (14:35 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 23 Dec 2014 13:36:29 +0000 (14:36 +0100)
Conflicts:
server/sonar-web/src/main/coffee/component-viewer/source.coffee

server/sonar-web/src/main/coffee/component-viewer/source.coffee
server/sonar-web/src/main/hbs/component-viewer/cw-source.hbs
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 423a555c3a38de7726e947a762fb4952d597d962..0c43c076d2fa8b33193a7d45ff422155cb890385 100644 (file)
@@ -22,7 +22,6 @@ define [
   $ = jQuery
 
   API_COVERAGE_TESTS = "#{baseUrl}/api/tests/test_cases"
-  LINES_LIMIT = 3000
   ISSUES_LIMIT = 100
 
 
@@ -92,7 +91,6 @@ define [
         $(expand).insertBefore rows.first()
 
       lines = _.size @model.get 'source'
-      lines = Math.min lines, LINES_LIMIT
       lastShown = rows.last().data('line-number')
       if lastShown < lines
         expand = @expandTemplate from: lastShown, to: lines, settings: @options.main.settings.toJSON()
@@ -276,17 +274,16 @@ define [
       source.forEach (sourceLine) =>
         show = false
         line = sourceLine.lineNumber
-        if line <= LINES_LIMIT
-          @showBlocks.forEach (block) ->
-            show = true if block.from <= line && block.to >= line
-          _.extend sourceLine, show: show
+        @showBlocks.forEach (block) ->
+          show = true if block.from <= line && block.to >= line
+        _.extend sourceLine, show: show
       source
 
 
     prepareSource: ->
       source = @model.get 'formattedSource'
       if source?
-        _.first @augmentWithShow(source), LINES_LIMIT
+        @augmentWithShow(source)
 
 
     getStatColumnsCount: ->
@@ -316,5 +313,4 @@ define [
       showZeroLine: @showZeroLine()
       issuesLimit: ISSUES_LIMIT
       issuesLimitReached: @model.get('activeIssues')?.length > ISSUES_LIMIT
-      linesLimit: LINES_LIMIT
-      linesLimitReached: _.size(@model.get 'source') > LINES_LIMIT
+      baseDuplications: @getBaseDuplications()
index 33c9134e6e43d41e8c1c1c22af7c83d4f0ee5056..1ef6c0b6c10c3c4d02297487fe1c72622f4072b5 100644 (file)
@@ -4,10 +4,6 @@
 
 {{else}}
 
-  {{#if linesLimitReached}}
-    <p class="message-alert marginbottom10">{{tp 'component_viewer.lines_limit_reached' linesLimit}}</p>
-  {{/if}}
-
   {{#if issuesLimitReached}}
     <p class="message-alert marginbottom10">{{tp 'component_viewer.issues_limit_reached' issuesLimit}}</p>
   {{/if}}
index 71963578715030a8c0cf893486d76b71435a362d..bd72fe78a4434d8481585685ec61b921fe8d48c5 100644 (file)
@@ -2726,7 +2726,6 @@ component_viewer.more_actions=More Actions
 component_viewer.new_window=Open in New Window
 component_viewer.get_permalink=Get Permalink
 component_viewer.covered_lines=Covered Lines
-component_viewer.lines_limit_reached=For performance reasons, only the {0} first lines will be displayed.
 component_viewer.issues_limit_reached=For usability reasons, only the {0} first issues will be fully displayed. Remaining issues will simply be underlined.
 component_viewer.issues_limit_reached_tooltip={0}\n\nRefine your filter to be able to see the details of this issue.
 component_viewer.cannot_show=We're sorry, but something went wrong. Please try back in a few minutes and contact support if the problem persists.