diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-01-06 15:10:38 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-01-06 17:05:51 +0100 |
commit | 2cd3ef75dce8b978bc96ad3c15c1320c193fdd9d (patch) | |
tree | 41d09470e6203d2460cf61236f1714b5516ecdfe /server/sonar-web/src/main/js | |
parent | 0db566f03c167057da7fc9a3f9f4e06849a57395 (diff) | |
download | sonarqube-2cd3ef75dce8b978bc96ad3c15c1320c193fdd9d.tar.gz sonarqube-2cd3ef75dce8b978bc96ad3c15c1320c193fdd9d.zip |
SONAR-5820 Drop old rules page
Diffstat (limited to 'server/sonar-web/src/main/js')
12 files changed, 0 insertions, 933 deletions
diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec.js b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec.js deleted file mode 100644 index 4c6f2f75adf..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec.js +++ /dev/null @@ -1,194 +0,0 @@ -var lib = require('../lib'), - testName = lib.testName('Coding Rules'); - - -lib.initMessages(); -lib.changeWorkingDirectory('coding-rules-spec'); - - -casper.test.begin(testName('Admin Tests'), function suite(test) { - - var showId = null; - var updateId = null; - - casper.start(lib.buildUrl('coding-rules-old'), function() { - lib.mockRequest('/api/l10n/index', '{}'); - lib.mockRequestFromFile('/api/rules/app', 'app_admin.json'); - lib.mockRequestFromFile('/api/rules/tags', 'tags.json'); - lib.mockRequestFromFile('/api/rules/search', 'search_initial.json'); - showId = lib.mockRequestFromFile('/api/rules/show', 'show_x1.json'); - }); - - - casper.waitWhileSelector("div#coding-rules-page-loader", function checkInitialPageLoad() { - - casper.waitForSelector('.navigator-header', function checkAdminHeader() { - test.assertExist('button#coding-rules-create-rule'); - }); - - - casper.waitForSelector('h3.coding-rules-detail-header', function showFirstRule() { - test.assertSelectorHasText('.coding-rules-detail-description-extra', 'Xoo shall not pass'); - - test.assertExists('button#coding-rules-detail-extend-description'); - }); - - - casper.then(function editNote() { - casper.click('button#coding-rules-detail-extend-description'); - test.assertSelectorHasText('textarea#coding-rules-detail-extend-description-text', 'As per the [Book of Xoo](http://xoo.sonarsource.com/book):\n> Xoo shall not pass!'); - - casper.sendKeys('textarea#coding-rules-detail-extend-description-text', 'Xoo must pass'); - - updateId = lib.mockRequestFromFile('/api/rules/update', 'edit_note_x1.json'); - casper.click('button#coding-rules-detail-extend-description-submit'); - - casper.wait(500, function showUpdatedRule() { - test.assertSelectorHasText('.coding-rules-detail-description-extra', 'Xoo must pass'); - }); - - }); - }); - - casper.run(function() { - test.done(); - }); -}); - - -casper.test.begin(testName('Activation Tests'), function suite(test) { - - var showId = null; - var activateId = null; - - casper.start(lib.buildUrl('coding-rules-old#rule_key=squid-xoo:x1'), function() { - lib.clearRequestMocks(); - lib.mockRequest('/api/l10n/index', '{}'); - lib.mockRequestFromFile('/api/rules/app', 'app_admin.json'); - lib.mockRequestFromFile('/api/rules/tags', 'tags.json'); - lib.mockRequestFromFile('/api/rules/search', 'search_x1.json'); - showId = lib.mockRequestFromFile('/api/rules/show', 'show_x1.json'); - }); - - - casper.waitWhileSelector("div#coding-rules-page-loader", function checkRuleActivation() { - - casper.waitForSelector('div.coding-rules-detail-quality-profiles-section', function showRuleActivation() { - test.assertExists('#coding-rules-detail-quality-profiles'); - - test.assertElementCount('.coding-rules-detail-quality-profile', 1); - - test.assertSelectorHasText('.coding-rules-detail-quality-profile-parameter', 'A nice'); - test.assertSelectorHasText('.coding-rules-detail-quality-profile-parameter', 'true'); - test.assertSelectorHasText('.coding-rules-detail-quality-profile-parameter', '0'); - }); - - - casper.then(function editActiveRule() { - casper.click('button.coding-rules-detail-quality-profile-change'); - - casper.waitForSelector('button#coding-rules-quality-profile-activation-activate', function checkActivationPopup() { - test.assertElementCount('.modal-body .property', 5 /* quality profile, severity, 3 parameters */); - - test.assertSelectorHasText('.modal-body .property textarea[name="textParameter"]', 'A nice\ntext parameter\nwith newlines.'); - test.assertSelectorHasText('.modal-body .property input[name="skipLines"]', ''); - test.assertEval(function checkPlaceHolder() { - return $j('.modal-body .property input[name="skipLines"]').attr('placeholder') === '0' - }); - test.assertEval(function checkTrueIsSelected() { - return $j('.modal-body .property select[name="acceptWhitespace"]').val() === 'true' - }); - }); - }); - - casper.then(function updateParameters() { - casper.sendKeys('textarea[name="textParameter"]', '\nUpdated'); - casper.sendKeys('input[name="skipLines"]', '5'); - casper.evaluate(function selectDefault() { - $j('select[name="acceptWhitespace"]').val('false').change(); - }); - - lib.clearRequestMock(showId); - showId = lib.mockRequestFromFile('/api/rules/show', 'update_parameters_x1.json'); - activateId = lib.mockRequest('/api/qualityprofiles/activate_rule', ''); - - casper.click('button#coding-rules-quality-profile-activation-activate'); - - casper.wait(500, function showUpdatedParameters() { - test.assertSelectorHasText('.coding-rules-detail-quality-profile-parameter', 'A nice'); - test.assertSelectorHasText('.coding-rules-detail-quality-profile-parameter', 'false'); - test.assertSelectorHasText('.coding-rules-detail-quality-profile-parameter', '5'); - }); - - }); - - casper.then(function deactivateRule() { - casper.click('button.coding-rules-detail-quality-profile-deactivate'); - - casper.waitForSelector('button[data-confirm="yes"]', function checkConfirmPopup() { - lib.clearRequestMock(showId); - showId = lib.mockRequestFromFile('/api/rules/show', 'deactivate_x1.json'); - lib.mockRequest('/api/qualityprofiles/deactivate_rule', ''); - - casper.click('button[data-confirm="yes"]'); - }); - - casper.wait(500, function showUpdatedParameters() { - test.assertElementCount('.coding-rules-detail-quality-profile', 0); - }); - }); - - casper.then(function activateRule() { - casper.click('button#coding-rules-quality-profile-activate'); - - casper.waitForSelector('button#coding-rules-quality-profile-activation-activate', function checkActivationPopup() { - - lib.clearRequestMock(showId); - showId = lib.mockRequestFromFile('/api/rules/show', 'show_x1.json'); - lib.clearRequestMock(activateId); - activateId = lib.mockRequest('/api/qualityprofiles/activate_rule', ''); - - casper.click('button#coding-rules-quality-profile-activation-activate'); - - casper.wait(500, function showUpdatedParameters() { - test.assertSelectorHasText('.coding-rules-detail-quality-profile-parameter', 'A nice'); - test.assertSelectorHasText('.coding-rules-detail-quality-profile-parameter', 'true'); - test.assertSelectorHasText('.coding-rules-detail-quality-profile-parameter', '0'); - }); - - }); - - }); - - }); - - - casper.run(function() { - test.done(); - }); -}); - - -casper.test.begin(testName('Tag Navigation Test'), function suite(test) { - - casper.start(lib.buildUrl('coding-rules-old#tags=polop,bug,pilip,unused,palap'), function() { - lib.clearRequestMocks(); - lib.mockRequest('/api/l10n/index', '{}'); - lib.mockRequestFromFile('/api/rules/app', 'app_admin.json'); - lib.mockRequestFromFile('/api/rules/tags', 'tags.json'); - lib.mockRequestFromFile('/api/rules/search', 'search_x1.json'); - lib.mockRequestFromFile('/api/rules/show', 'show_x1.json'); - }); - - - casper.waitWhileSelector("div#coding-rules-page-loader", function checkTagFilterRestored() { - casper.waitForSelector('.navigator-filters', function checkDefaultFilters() { - test.assertElementCount('.navigator-filter-disabled', 11 /* Tag is enabled */); - test.assertSelectorHasText('.navigator-filter[data-property="tags"] .navigator-filter-value', 'bug, unused'); - }); - }); - - casper.run(function() { - test.done(); - }); -}); diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/app.json b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/app.json deleted file mode 100644 index b0cbb0e1c98..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/app.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "canWrite": false, - "qualityprofiles": [ - { - "key": "xoo-sonar-way", - "name": "Sonar way", - "lang": "xoo" - }, - { - "key": "xoo-empty", - "name": "Empty", - "lang": "xoo" - }, - { - "key": "java-sonar-way", - "name": "Sonar way", - "lang": "java" - }, - { - "key": "coffee-sonar-way", - "name": "Sonar way", - "lang": "coffee" - }, - { - "key": "java-sonar-way-with-findbugs", - "name": "Sonar way with Findbugs", - "lang": "java", - "parentKey": "java-sonar-way" - } - ], - "languages": { - "xoo": "Xoo", - "java": "Java", - "coffee": "CoffeeScript" - }, - "repositories": [ - { - "key": "squid", - "name": "SonarQube", - "language": "java" - }, - { - "key": "squid-xoo", - "name": "SonarQube", - "language": "xoo" - }, - { - "key": "squid-coffee", - "name": "SonarQube", - "language": "coffee" - }, - { - "key": "common-coffee", - "name": "Common SonarQube", - "language": "coffee" - }, - { - "key": "common-java", - "name": "Common SonarQube", - "language": "java" - } - ], - "statuses": { - "BETA": "Beta", - "DEPRECATED": "Deprecated", - "READY": "Ready" - }, - "characteristics": { - "UNDERSTANDABILITY": "Maintainability: Understandability", - "MAINTAINABILITY": "Maintainability", - "TIME_ZONE_RELATED_PORTABILITY": "Portability: Time zone related portability", - "READABILITY": "Maintainability: Readability", - "SECURITY_FEATURES": "Security: Security features", - "ARCHITECTURE_RELIABILITY": "Reliability: Architecture related reliability", - "OS_RELATED_PORTABILITY": "Portability: OS related portability", - "EXCEPTION_HANDLING": "Reliability: Exception handling", - "LOGIC_CHANGEABILITY": "Changeability: Logic related changeability", - "SOFTWARE_RELATED_PORTABILITY": "Portability: Software related portability", - "INPUT_VALIDATION_AND_REPRESENTATION": "Security: Input validation and representation", - "LANGUAGE_RELATED_PORTABILITY": "Portability: Language related portability", - "ERRORS": "Security: Errors", - "SECURITY": "Security", - "RELIABILITY": "Reliability", - "PORTABILITY": "Portability", - "HARDWARE_RELATED_PORTABILITY": "Portability: Hardware related portability", - "SYNCHRONIZATION_RELIABILITY": "Reliability: Synchronization related reliability", - "TRANSPORTABILITY": "Reusability: Transportability", - "COMPILER_RELATED_PORTABILITY": "Portability: Compiler related portability", - "RESOURCE_RELIABILITY": "Reliability: Resource", - "CPU_EFFICIENCY": "Efficiency: Processor use", - "EFFICIENCY": "Efficiency", - "CHANGEABILITY": "Changeability", - "DATA_CHANGEABILITY": "Changeability: Data related changeability", - "API_ABUSE": "Security: API abuse", - "ARCHITECTURE_CHANGEABILITY": "Changeability: Architecture related changeability", - "UNIT_TESTS": "Reliability: Unit tests", - "INSTRUCTION_RELIABILITY": "Reliability: Instruction related reliability", - "REUSABILITY": "Reusability", - "MODULARITY": "Reusability: Modularity", - "UNIT_TESTABILITY": "Testability: Unit level testability", - "TESTABILITY": "Testability", - "INTEGRATION_TESTABILITY": "Testability: Integration level testability", - "NETWORK_USE": "Efficiency: Network use", - "MEMORY_EFFICIENCY": "Efficiency: Memory use", - "DATA_RELIABILITY": "Reliability: Data related reliability", - "FAULT_TOLERANCE": "Reliability: Fault tolerance", - "LOGIC_RELIABILITY": "Reliability: Logic related reliability" - } -} diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/app_admin.json b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/app_admin.json deleted file mode 100644 index 1549d75f02f..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/app_admin.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "canWrite": true, - "qualityprofiles": [ - { - "key": "xoo-sonar-way", - "name": "Sonar way", - "lang": "xoo" - }, - { - "key": "xoo-empty", - "name": "Empty", - "lang": "xoo" - }, - { - "key": "java-sonar-way", - "name": "Sonar way", - "lang": "java" - }, - { - "key": "coffee-sonar-way", - "name": "Sonar way", - "lang": "coffee" - }, - { - "key": "java-sonar-way-with-findbugs", - "name": "Sonar way with Findbugs", - "lang": "java", - "parentKey": "java-sonar-way" - } - ], - "languages": { - "xoo": "Xoo", - "java": "Java", - "coffee": "CoffeeScript" - }, - "repositories": [ - { - "key": "squid", - "name": "SonarQube", - "language": "java" - }, - { - "key": "squid-xoo", - "name": "SonarQube", - "language": "xoo" - }, - { - "key": "squid-coffee", - "name": "SonarQube", - "language": "coffee" - }, - { - "key": "common-coffee", - "name": "Common SonarQube", - "language": "coffee" - }, - { - "key": "common-java", - "name": "Common SonarQube", - "language": "java" - } - ], - "statuses": { - "BETA": "Beta", - "DEPRECATED": "Deprecated", - "READY": "Ready" - }, - "characteristics": { - "UNDERSTANDABILITY": "Maintainability: Understandability", - "MAINTAINABILITY": "Maintainability", - "TIME_ZONE_RELATED_PORTABILITY": "Portability: Time zone related portability", - "READABILITY": "Maintainability: Readability", - "SECURITY_FEATURES": "Security: Security features", - "ARCHITECTURE_RELIABILITY": "Reliability: Architecture related reliability", - "OS_RELATED_PORTABILITY": "Portability: OS related portability", - "EXCEPTION_HANDLING": "Reliability: Exception handling", - "LOGIC_CHANGEABILITY": "Changeability: Logic related changeability", - "SOFTWARE_RELATED_PORTABILITY": "Portability: Software related portability", - "INPUT_VALIDATION_AND_REPRESENTATION": "Security: Input validation and representation", - "LANGUAGE_RELATED_PORTABILITY": "Portability: Language related portability", - "ERRORS": "Security: Errors", - "SECURITY": "Security", - "RELIABILITY": "Reliability", - "PORTABILITY": "Portability", - "HARDWARE_RELATED_PORTABILITY": "Portability: Hardware related portability", - "SYNCHRONIZATION_RELIABILITY": "Reliability: Synchronization related reliability", - "TRANSPORTABILITY": "Reusability: Transportability", - "COMPILER_RELATED_PORTABILITY": "Portability: Compiler related portability", - "RESOURCE_RELIABILITY": "Reliability: Resource", - "CPU_EFFICIENCY": "Efficiency: Processor use", - "EFFICIENCY": "Efficiency", - "CHANGEABILITY": "Changeability", - "DATA_CHANGEABILITY": "Changeability: Data related changeability", - "API_ABUSE": "Security: API abuse", - "ARCHITECTURE_CHANGEABILITY": "Changeability: Architecture related changeability", - "UNIT_TESTS": "Reliability: Unit tests", - "INSTRUCTION_RELIABILITY": "Reliability: Instruction related reliability", - "REUSABILITY": "Reusability", - "MODULARITY": "Reusability: Modularity", - "UNIT_TESTABILITY": "Testability: Unit level testability", - "TESTABILITY": "Testability", - "INTEGRATION_TESTABILITY": "Testability: Integration level testability", - "NETWORK_USE": "Efficiency: Network use", - "MEMORY_EFFICIENCY": "Efficiency: Memory use", - "DATA_RELIABILITY": "Reliability: Data related reliability", - "FAULT_TOLERANCE": "Reliability: Fault tolerance", - "LOGIC_RELIABILITY": "Reliability: Logic related reliability" - } -} diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/deactivate_x1.json b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/deactivate_x1.json deleted file mode 100644 index e1d7fcaf4bf..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/deactivate_x1.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - - "rule": { - "key": "squid-xoo:x1", - "repo": "squid-xoo", - "name": "No empty line", - "createdAt": "2014-07-23T11:17:26+0200", - "severity": "MINOR", - "status": "BETA", - "isTemplate": false, - "tags": [ ], - "sysTags": [ - "convention", - "pitfall" - ], - "lang": "xoo", - "langName": "Xoo", - "htmlDesc": "Generate an issue on <em>empty</em> lines of Xoo source files", - "mdDesc": "Generate an issue on *empty* lines of Xoo source files", - "noteLogin": "admin", - "mdNote": "As per the [Book of Xoo](http://xoo.sonarsource.com/book):\n> Xoo shall not pass!", - "htmlNote": "As per the <a href=\"http://xoo.sonarsource.com/book\" target=\"_blank\">Book of Xoo</a>:<br/><blockquote>Xoo shall not pass!<br/></blockquote>", - "defaultDebtChar": "TESTABILITY", - "defaultDebtSubChar": "INTEGRATION_TESTABILITY", - "debtChar": "TESTABILITY", - "debtSubChar": "INTEGRATION_TESTABILITY", - "debtCharName": "Testability", - "debtSubCharName": "Integration level", - "debtRemFnType": "LINEAR_OFFSET", - "debtRemFnCoeff": "1h", - "debtRemFnOffset": "30min", - "defaultDebtRemFnType": "LINEAR_OFFSET", - "defaultDebtRemFnCoeff": "1h", - "defaultDebtRemFnOffset": "30min", - "effortToFixDescription": "Effort to fix issue on one line", - "debtOverloaded": false, - "params": [ - { - "key": "acceptWhitespace", - "htmlDesc": "<h1>Accept whitespace (<code>\\s|\\t</code>) on the line\n</h1>This property is available so that a line containing only whitespace is not considered empty.<br/><h2>Example with property set to ``false``\n</h2><pre lang=\"xoo\"><code> <- One issue here\n<- And one here</code></pre><br/><br/><h2>Example with property set to ``true``\n</h2><pre lang=\"xoo\"><code> <- No issue here\n<- But one here</code></pre><br/>", - "type": "BOOLEAN", - "defaultValue": "false" - }, - { - "key": "textParameter", - "htmlDesc": "This is a parameter of type TEXT", - "type": "TEXT", - "defaultValue": "false" - }, - { - "key": "skipLines", - "htmlDesc": "Skip a number of lines at the beginning of the file", - "type": "INTEGER", - "defaultValue": "0" - } - ] - }, - "actives": [ ] - -} diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/edit_note_x1.json b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/edit_note_x1.json deleted file mode 100644 index a142eb112c7..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/edit_note_x1.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "rule": { - "key": "squid-xoo:x1", - "repo": "squid-xoo", - "name": "No empty line", - "createdAt": "2014-07-23T11:17:26+0200", - "severity": "MINOR", - "status": "BETA", - "isTemplate": false, - "tags": [ ], - "sysTags": [ - "convention", - "pitfall" - ], - "lang": "xoo", - "langName": "Xoo", - "htmlDesc": "Generate an issue on <em>empty</em> lines of Xoo source files", - "mdDesc": "Generate an issue on *empty* lines of Xoo source files", - "noteLogin": "admin", - "mdNote": "As per the [Book of Xoo](http://xoo.sonarsource.com/book):\n> Xoo shall not pass!Xoo must pass", - "htmlNote": "As per the <a href=\"http://xoo.sonarsource.com/book\" target=\"_blank\">Book of Xoo</a>:<br/><blockquote>Xoo shall not pass!Xoo must pass</blockquote>", - "defaultDebtChar": "TESTABILITY", - "defaultDebtSubChar": "INTEGRATION_TESTABILITY", - "debtChar": "TESTABILITY", - "debtSubChar": "INTEGRATION_TESTABILITY", - "debtCharName": "Testability", - "debtSubCharName": "Integration level", - "debtRemFnType": "LINEAR_OFFSET", - "debtRemFnCoeff": "1h", - "debtRemFnOffset": "30min", - "defaultDebtRemFnType": "LINEAR_OFFSET", - "defaultDebtRemFnCoeff": "1h", - "defaultDebtRemFnOffset": "30min", - "effortToFixDescription": "Effort to fix issue on one line", - "debtOverloaded": false, - "params": [ - { - "key": "acceptWhitespace", - "htmlDesc": "<h1>Accept whitespace (<code>\\s|\\t</code>) on the line\n</h1>This property is available so that a line containing only whitespace is not considered empty.<br/><h2>Example with property set to ``false``\n</h2><pre lang=\"xoo\"><code> <- One issue here\n<- And one here</code></pre><br/><br/><h2>Example with property set to ``true``\n</h2><pre lang=\"xoo\"><code> <- No issue here\n<- But one here</code></pre><br/>", - "defaultValue": "false" - } - ] - }, - "actives": [ - { - "qProfile": "xoo-sonar-way", - "inherit": "NONE", - "severity": "MAJOR", - "params": [ - { - "key": "acceptWhitespace", - "value": "true" - } - ] - } - ] - -} diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/search_initial.json b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/search_initial.json deleted file mode 100644 index 19000b26a88..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/search_initial.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - - "total": 10, - "p": 1, - "ps": 25, - "rules": [ - { - "key": "squid-xoo:x1", - "name": "No empty line", - "lang": "xoo", - "status": "BETA" - }, - { - "key": "squid:S0001", - "name": "Deprecated rule", - "lang": "java", - "status": "DEPRECATED" - }, - { - "key": "squid-coffee:S0001", - "name": "First rule of Coffee is: you don't talk about Coffee", - "lang": "coffee", - "status": "READY" - }, - { - "key": "squid-coffee:S0002", - "name": "Second rule of Coffee is: you DO NOT talk about Coffee", - "lang": "coffee", - "status": "READY" - }, - { - "key": "common-coffee:TrailingWhitespace", - "name": "Avoid trailing whitespace on lines", - "lang": "coffee", - "status": "READY" - }, - { - "key": "squid:S0002", - "name": "Deprecating rule", - "lang": "java", - "status": "READY" - }, - { - "key": "squid:S0003", - "name": "Always put a newline at end of file", - "lang": "java", - "status": "READY" - }, - { - "key": "common-java:TrailingWhitespace", - "name": "Avoid trailing whitespace on lines", - "lang": "java", - "status": "READY" - }, - { - "key": "common-java:ConvertSingleMethodInterfacesToLambdas", - "name": "Single method interfaces should be converted to lambdas", - "lang": "java", - "status": "READY" - }, - { - "key": "common-java:LambdaOneStatementBlock", - "name": "Lamdbas containing only one statement should not nest this statement in a block ", - "lang": "java", - "status": "READY" - } - ], - "facets": [ - { - "property": "tags", - "values": [ - { - "val": "java8", - "count": 5 - }, - { - "val": "pitfall", - "count": 4 - }, - { - "val": "convention", - "count": 3 - }, - { - "val": "multithreading", - "count": 1 - } - ] - }, - { - "property": "languages", - "values": [ - { - "val": "java", - "count": 6 - }, - { - "val": "coffee", - "count": 3 - }, - { - "val": "xoo", - "count": 1 - } - ] - }, - { - "property": "repositories", - "values": [ - { - "val": "squid", - "count": 3 - }, - { - "val": "common-java", - "count": 3 - }, - { - "val": "squid-coffee", - "count": 2 - }, - { - "val": "common-coffee", - "count": 1 - }, - { - "val": "squid-xoo", - "count": 1 - } - ] - } - ] -} diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/search_x1.json b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/search_x1.json deleted file mode 100644 index 05ba049ff3a..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/search_x1.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - - "total": 1, - "p": 1, - "ps": 25, - "rules": [ - { - "key": "squid-xoo:x1", - "name": "No empty line", - "lang": "xoo", - "status": "BETA" - } - ], - "facets": [ - { - "property": "tags", - "values": [ - { - "val": "pitfall", - "count": 1 - }, - { - "val": "convention", - "count": 1 - } - ] - }, - { - "property": "languages", - "values": [ - { - "val": "xoo", - "count": 1 - } - ] - }, - { - "property": "repositories", - "values": [ - { - "val": "squid-xoo", - "count": 1 - } - ] - } - ] -} diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/show_deprecated.json b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/show_deprecated.json deleted file mode 100644 index ed4cca4b5cf..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/show_deprecated.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "rule": { - "key": "squid:S0001", - "repo": "squid", - "name": "Deprecated rule", - "createdAt": "2014-07-23T11:17:26+0200", - "severity": "MINOR", - "status": "DEPRECATED", - "isTemplate": false, - "tags": [ - "convention" - ], - "sysTags": [ - "pitfall" - ], - "lang": "java", - "langName": "Java", - "htmlDesc": "Deprecated rule", - "mdDesc": "Deprecated rule", - "defaultDebtChar": "TESTABILITY", - "defaultDebtSubChar": "INTEGRATION_TESTABILITY", - "debtChar": "TESTABILITY", - "debtSubChar": "INTEGRATION_TESTABILITY", - "debtCharName": "Testability", - "debtSubCharName": "Integration level", - "debtRemFnType": "LINEAR_OFFSET", - "debtRemFnCoeff": "1h", - "debtRemFnOffset": "30min", - "defaultDebtRemFnType": "LINEAR_OFFSET", - "defaultDebtRemFnCoeff": "1h", - "defaultDebtRemFnOffset": "30min", - "effortToFixDescription": "Effort to fix issue on one line", - "debtOverloaded": false, - "params": [ ] - }, - "actives": [ ] -} diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/show_x1.json b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/show_x1.json deleted file mode 100644 index 08dfb135df8..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/show_x1.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - - "rule": { - "key": "squid-xoo:x1", - "repo": "squid-xoo", - "name": "No empty line", - "createdAt": "2014-07-23T11:17:26+0200", - "severity": "MINOR", - "status": "BETA", - "isTemplate": false, - "tags": [ ], - "sysTags": [ - "convention", - "pitfall" - ], - "lang": "xoo", - "langName": "Xoo", - "htmlDesc": "Generate an issue on <em>empty</em> lines of Xoo source files", - "mdDesc": "Generate an issue on *empty* lines of Xoo source files", - "noteLogin": "admin", - "mdNote": "As per the [Book of Xoo](http://xoo.sonarsource.com/book):\n> Xoo shall not pass!", - "htmlNote": "As per the <a href=\"http://xoo.sonarsource.com/book\" target=\"_blank\">Book of Xoo</a>:<br/><blockquote>Xoo shall not pass!<br/></blockquote>", - "defaultDebtChar": "TESTABILITY", - "defaultDebtSubChar": "INTEGRATION_TESTABILITY", - "debtChar": "TESTABILITY", - "debtSubChar": "INTEGRATION_TESTABILITY", - "debtCharName": "Testability", - "debtSubCharName": "Integration level", - "debtRemFnType": "LINEAR_OFFSET", - "debtRemFnCoeff": "1h", - "debtRemFnOffset": "30min", - "defaultDebtRemFnType": "LINEAR_OFFSET", - "defaultDebtRemFnCoeff": "1h", - "defaultDebtRemFnOffset": "30min", - "effortToFixDescription": "Effort to fix issue on one line", - "debtOverloaded": false, - "params": [ - { - "key": "acceptWhitespace", - "htmlDesc": "<h1>Accept whitespace (<code>\\s|\\t</code>) on the line\n</h1>This property is available so that a line containing only whitespace is not considered empty.<br/><h2>Example with property set to ``false``\n</h2><pre lang=\"xoo\"><code> <- One issue here\n<- And one here</code></pre><br/><br/><h2>Example with property set to ``true``\n</h2><pre lang=\"xoo\"><code> <- No issue here\n<- But one here</code></pre><br/>", - "type": "BOOLEAN", - "defaultValue": "false" - }, - { - "key": "textParameter", - "htmlDesc": "This is a parameter of type TEXT", - "type": "TEXT", - "defaultValue": "false" - }, - { - "key": "skipLines", - "htmlDesc": "Skip a number of lines at the beginning of the file", - "type": "INTEGER", - "defaultValue": "0" - } - ] - }, - "actives": [ - { - "qProfile": "xoo-sonar-way", - "inherit": "NONE", - "severity": "MAJOR", - "params": [ - { - "key": "acceptWhitespace", - "value": "true" - }, - { - "key": "textParameter", - "value": "A nice\ntext parameter\nwith newlines." - }, - { - "key": "skipLines", - "value": "0" - } - ] - } - ] - -} diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/tags.json b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/tags.json deleted file mode 100644 index 0f9a1c49e96..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/tags.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "tags": [ - "error-handling", - "misra-coffee", - "multithreading", - "performance", - "pitfall", - "bug", - "convention", - "security", - "java8", - "unused", - "brain-overload" - ] -} diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/update_parameters_x1.json b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/update_parameters_x1.json deleted file mode 100644 index c965c4bf2af..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec/update_parameters_x1.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - - "rule": { - "key": "squid-xoo:x1", - "repo": "squid-xoo", - "name": "No empty line", - "createdAt": "2014-07-23T11:17:26+0200", - "severity": "MINOR", - "status": "BETA", - "isTemplate": false, - "tags": [ ], - "sysTags": [ - "convention", - "pitfall" - ], - "lang": "xoo", - "langName": "Xoo", - "htmlDesc": "Generate an issue on <em>empty</em> lines of Xoo source files", - "mdDesc": "Generate an issue on *empty* lines of Xoo source files", - "noteLogin": "admin", - "mdNote": "As per the [Book of Xoo](http://xoo.sonarsource.com/book):\n> Xoo shall not pass!", - "htmlNote": "As per the <a href=\"http://xoo.sonarsource.com/book\" target=\"_blank\">Book of Xoo</a>:<br/><blockquote>Xoo shall not pass!<br/></blockquote>", - "defaultDebtChar": "TESTABILITY", - "defaultDebtSubChar": "INTEGRATION_TESTABILITY", - "debtChar": "TESTABILITY", - "debtSubChar": "INTEGRATION_TESTABILITY", - "debtCharName": "Testability", - "debtSubCharName": "Integration level", - "debtRemFnType": "LINEAR_OFFSET", - "debtRemFnCoeff": "1h", - "debtRemFnOffset": "30min", - "defaultDebtRemFnType": "LINEAR_OFFSET", - "defaultDebtRemFnCoeff": "1h", - "defaultDebtRemFnOffset": "30min", - "effortToFixDescription": "Effort to fix issue on one line", - "debtOverloaded": false, - "params": [ - { - "key": "acceptWhitespace", - "htmlDesc": "<h1>Accept whitespace (<code>\\s|\\t</code>) on the line\n</h1>This property is available so that a line containing only whitespace is not considered empty.<br/><h2>Example with property set to ``false``\n</h2><pre lang=\"xoo\"><code> <- One issue here\n<- And one here</code></pre><br/><br/><h2>Example with property set to ``true``\n</h2><pre lang=\"xoo\"><code> <- No issue here\n<- But one here</code></pre><br/>", - "type": "BOOLEAN", - "defaultValue": "false" - }, - { - "key": "textParameter", - "htmlDesc": "This is a parameter of type TEXT", - "type": "TEXT", - "defaultValue": "false" - }, - { - "key": "skipLines", - "htmlDesc": "Skip a number of lines at the beginning of the file", - "type": "INTEGER", - "defaultValue": "0" - } - ] - }, - "actives": [ - { - "qProfile": "xoo-sonar-way", - "inherit": "NONE", - "severity": "MAJOR", - "params": [ - { - "key": "acceptWhitespace", - "value": "false" - }, - { - "key": "textParameter", - "value": "A nice\ntext parameter\nwith newlines.\nUpdated" - }, - { - "key": "skipLines", - "value": "5" - } - ] - } - ] - -} diff --git a/server/sonar-web/src/main/js/tests/e2e/views/coding-rules-old.jade b/server/sonar-web/src/main/js/tests/e2e/views/coding-rules-old.jade deleted file mode 100644 index cfdb7c9c011..00000000000 --- a/server/sonar-web/src/main/js/tests/e2e/views/coding-rules-old.jade +++ /dev/null @@ -1,11 +0,0 @@ -extends ./layouts/main - -block header - script(src='../js/require.js') - script. - window.waitForMocks('/js/coding-rules-old/app.js'); - -block body - #content - #coding-rules-page-loader.navigator-page-loader - i.spinner |