Commit Graph

393 Commits

Author SHA1 Message Date
Julien Lancelot
49c4ddbfef SONAR-12962 Compute new Security Review measures on Projects 2020-02-11 20:46:10 +01:00
Duarte Meneses
5cb5deb5e5 SONAR-12802 SONAR-12927 Fix moved file detection for cobol and when calculating new lines 2020-02-07 20:46:16 +01:00
Duarte Meneses
6ac9d2618e SONAR-12689 change WS to use ProjectDto 2020-01-31 20:46:09 +01:00
Michal Duda
1ad6b11311 SONAR-12689 migrated tags, updated test framework 2020-01-31 20:46:09 +01:00
Duarte Meneses
ace9a50d55 SONAR-12689 Separate storage of projects/apps from their components and branches 2020-01-31 20:46:09 +01:00
Sébastien Lesaint
ac4ed3112b SONAR-12723 default status of Hotspot is TO_REVIEW even when external 2020-01-13 20:46:34 +01:00
Jacek
97fd4b10e7 SONAR-12723 Filter hotspots in api/issues/bulk_change 2020-01-13 20:46:34 +01:00
Jacek
ec1f6fbe74 SONAR-12745 Adjust changes on my issue email notification for Security Hotspots 2020-01-13 20:46:28 +01:00
Jacek
114efaae21 SONAR-12725 drop manual vulnerabilities
* drop manual vulnerabilities
* remove issues `from_hotspot` column usage
2020-01-13 20:46:26 +01:00
Wouter Admiraal
3f6f549627 Format all headers for 2020 2020-01-07 20:46:09 +01:00
Duarte Meneses
4bba4b305c SONAR-12788 New code period is badly set when there's only one version 2019-12-11 20:46:08 +01:00
Duarte Meneses
d1fd889554 Fix code quality issues and reduce dependency on Guava 2019-12-10 20:46:09 +01:00
Duarte Meneses
f86a109458 SONAR-12690 Detection of changed lines between branches without SCM not working with Cobol 2019-12-09 20:46:19 +01:00
Duarte Meneses
ebdae1d5b7 SONAR-12673 Fix issue management 2019-12-09 20:46:17 +01:00
Michal Duda
39f7a38219 SONAR-12636 set excludeFromPurge on branch creation based on global settings 2019-12-09 20:46:15 +01:00
Duarte Meneses
4244d2ea76 SONAR-12679 Use single branch type 2019-12-09 20:46:15 +01:00
Duarte Meneses
a30ba90a56 SONAR-12627 Issues are 'new' if they involve a location on a new line 2019-12-09 20:46:15 +01:00
Duarte Meneses
63c9fb57a0 SONAR-12626 remove references to SLB 2019-12-09 20:46:15 +01:00
Duarte Meneses
0a6525b3f6 SONAR-12668 Drop 'sonar.branch.target' 2019-12-09 20:46:15 +01:00
Duarte Meneses
1b7c2ba7e1 SONAR-12626 CE and Web no longer support SLBs 2019-12-09 20:46:14 +01:00
Sébastien Lesaint
b5725e190b SONAR-12701 upgrade H2 from 1.3 to 1.4 2019-11-18 20:21:08 +01:00
Jacek
1a260e18bb SONAR-12383 Test libraries update
* org.awaitility:awaitility:3.1.6 -> 4.0.1
* org.assertj:assertj-core:3.12.2 -> 3.13.2
* org.jsoup:jsoup:1.11.3 -> 1.12.1
* org.mockito:mockito-core:2.22.0 - > 3.1.0
* org.xmlunit:xmlunit-core:2.5.1 -> 2.6.3
* org.xmlunit:xmlunit-matchers:2.5.1 -> 2.6.3
* org.tmatesoft.svnkit:svnkit:1.9.0 -> 1.10.1
2019-11-12 20:21:06 +01:00
Jacek
9e5e816c69 SONAR-12383 Libraries with security fixes
* io.jsonwebtoken:jjwt-api:0.10.5 -> 0.10.7
* com.auth0:java-jwt:3.3.0 -> 3.8.3
* org.bouncycastle:bcpkix-jdk15on:1.59 ->1.64
2019-11-12 20:21:06 +01:00
Jacek
fc3085b6cb SONAR-12383 Selenide update to 5.2.3 and Guava update to 28.1-jre 2019-11-12 20:21:06 +01:00
Duarte Meneses
3e23d75c7c minor fixes 2019-10-21 20:21:09 +02:00
Sébastien Lesaint
ab6fd46a1f fix missing class constructor (mostly GSon serialized classes) 2019-10-14 20:21:05 +02:00
Sébastien Lesaint
140e84fbdf fix some quality flaws on the new code period 2019-10-09 20:21:06 +02:00
Jacek
1c6c03d9ed Fixing SonarQube analysis issues (#2084) 2019-09-24 20:21:18 +02:00
Duarte Meneses
d53977760b Improve code quality and test coverage 2019-09-24 20:21:15 +02:00
Jacek
dd1fcb2103 SONAR-12406 - remove 'sonar.leak.period' property 2019-09-24 20:21:14 +02:00
Duarte Meneses
d650e5eeb4 Feature/dm/migrate new code period (#2017)
* SONAR-12396 List new code periods for all branches with effective current values

* SONAR-12347 Migrate old definitions of leak period
2019-09-24 20:21:14 +02:00
Duarte Meneses
7eaf366fa7 SONAR-12394 Load analysis new code period based on hierarchy of New Code Period settings 2019-09-24 20:21:13 +02:00
Duarte Meneses
14bd90f47e SONAR-12364 Fix update of values 2019-09-24 20:21:13 +02:00
Jacek
545d742d5d SONAR-12364 - remove manual baseline column from usage 2019-09-24 20:21:12 +02:00
Jacek
ba41dbfdf3 SONAR-12364 - switch from manual baseline to New Code Period concept 2019-09-24 20:21:12 +02:00
Duarte Meneses
53293c67e5 Simplify MeasureRepository interface 2019-09-04 20:21:05 +02:00
Duarte Meneses
a16d96bc36 Use Trove for memory efficient Map 2019-09-04 20:21:05 +02:00
Duarte Meneses
f0f1986388 Create memory efficient implementations of Measures 2019-09-04 20:21:05 +02:00
Duarte Meneses
a50c809ab9 Cache measures for ratings 2019-09-04 20:21:05 +02:00
Duarte Meneses
55a5f78579 Use arrays insted of set for Duplicates 2019-09-04 20:21:04 +02:00
Duarte Meneses
2ffcee0a05 Fix tests 2019-09-04 20:21:04 +02:00
Duarte Meneses
3c809addb8 Simplify keys of measure repository 2019-09-04 20:21:04 +02:00
Duarte Meneses
bc3f8a1cb0 Use CompactMap instead of HashMap for Measures 2019-09-04 20:21:04 +02:00
Duarte Meneses
1d02b47100 Use arrays instead of Map for SCM info 2019-09-04 20:21:04 +02:00
Duarte Meneses
013bb7998a Cache common Doubles in Measures 2019-09-04 20:21:04 +02:00
Duarte Meneses
29c935c7fd Intern strings in Components and Changesets 2019-09-04 20:21:03 +02:00
Sébastien Lesaint
7a1b1d1728 use testFixtures instead of test configuration of ce-task-projectanalysis 2019-09-02 20:21:05 +02:00
Sébastien Lesaint
b9f3ad2e06 use testFixtures instead of test configuration of ce-task 2019-09-02 20:21:05 +02:00
Sébastien Lesaint
4d38fa7629 use testFixtures instead of test configuration of server-common 2019-09-02 20:21:04 +02:00
Sébastien Lesaint
08cfcdeffd drop now useless module sonar-db-testing 2019-09-02 20:21:04 +02:00
Sébastien Lesaint
2b029d9b12 use testFixtures instead of test configuration of db-dao 2019-09-02 20:21:04 +02:00
Sébastien Lesaint
b789401479 use testFixtures instead of test configuration of db-core 2019-09-02 20:21:04 +02:00
Sébastien Lesaint
1e175c1f25 SONAR-12423 fix misleading naming in notification stat classes 2019-08-30 20:21:02 +02:00
Sébastien Lesaint
b4694fd3ae remove need to add H2 dependency when depending on sonar-db-testing 2019-08-14 20:21:15 +02:00
Sébastien Lesaint
c980b1b86b remove all other dependencies onto sonar-server
was causing funky dependency tree for tests (almost loop)
dependency was sometimes added for transitive dependencies
module was super large yet hardly a couple classes were used
2019-08-14 20:21:15 +02:00
Sébastien Lesaint
5334895ce0 remove dependency from sonar-webserver-webapi to sonar-server 2019-08-14 20:21:15 +02:00
Sébastien Lesaint
028b9c7723 move WrapInSingleElementArray to the single module where it's used 2019-08-14 20:21:15 +02:00
Michal Duda
05c8a2e004 SONAR-12197 completely drop "sonar.branch" code 2019-08-12 20:21:13 +02:00
Sébastien Lesaint
a5c7558400 remove DBUnit 2019-08-09 20:21:24 +02:00
Sébastien Lesaint
2ad2359c06 SONAR-9882 column should be named ANALYSIS_PROPERTIES.ANALYSIS_UUID 2019-07-31 20:21:14 +02:00
Jacek
eb9b158713 SONAR-8115 storing project quality gate in table (#1919)
* migrate properties to project_qgate table

* use project_qgates table instead of property

* change usage of project quality gate in CE
2019-07-31 20:21:14 +02:00
Sébastien Lesaint
8d54befbab SONAR-11722 webhook posttask adds log statistics 2019-07-30 20:24:28 +02:00
Sébastien Lesaint
c310acf604 SONAR-11722 add ability for Post tasks to add log statistics 2019-07-30 20:24:27 +02:00
Sébastien Lesaint
ef1f71f3de SONAR-17722 add post tag logs 2019-07-30 20:24:27 +02:00
Duarte Meneses
e4c5ada51d Clean deps 2019-07-17 20:21:13 +02:00
Duarte Meneses
6ce2c8689b Extract implementation from plugin API and create new module sonar-plugin-api-impl 2019-07-12 20:21:15 +02:00
Duarte Meneses
93dc977090 Extract implementation from plugin API and create new module sonar-plugin-api-impl 2019-07-12 20:21:14 +02:00
Michal Duda
97a815175c Merge pull request #1789 from SonarSource/fix/md/SONAR-11845-project-import-should-handle-external-issues
SONAR-11845 project import should handle external issues
2019-06-28 08:45:58 +02:00
Sébastien Lesaint
83b21b6117 SONAR-12081 fail CE processing if branch/pr on Community Edition 2019-06-28 08:45:57 +02:00
Duarte Meneses
9576499703 SONAR-11458 Log analysis warning when cross-project duplication detection is used 2019-06-28 08:45:45 +02:00
Evgeny Mandrikov
aec38c1235 Remove accidentally committed temporary files 2019-06-28 08:45:39 +02:00
Julien Lancelot
a02e8181bf SONAR-12131 Compute Security Review Rating measures on portfolios and applications 2019-06-14 20:21:11 +02:00
Julien Lancelot
f6028da201 SONAR-12131 Compute Security Review Rating measures on projects
* Compute Security Review Rating measures on projects
* Live update Security Review Rating measures
2019-06-14 20:21:10 +02:00
Duarte Meneses
9155f18ee4 SONAR-12188 Density of duplications is calculated with number of lines of test files 2019-06-13 20:21:14 +02:00
Sébastien Lesaint
b64932e6d0 SONAR-11745 deletion of disable component's child tables is resilient 2019-06-13 20:21:13 +02:00
Evgeny Mandrikov
e7788ee7ea Remove useless declarations of resource filters from build 2019-05-29 20:21:14 +02:00
Julien Lancelot
8a6f82e514 SONAR-9898 Deprecate org.sonar.api.i18n.I18n 2019-05-29 20:21:13 +02:00
Duarte Meneses
31b6a958fb SONAR_11996 Fallback to line comparison to detect new lines in Short Lived Branches and Pull Requests 2019-05-24 20:21:09 +02:00
Simon Brandhof
2ea053692e SONAR-11950 do not accept empty string for revision in CE 2019-05-22 20:21:19 +02:00
Michal Duda
2410133d00 SONAR-11950 copy revisions migration 2019-05-22 20:21:17 +02:00
Michal Duda
8f699a85b3 SONAR-11950 add scm revision scanner parameter 2019-05-22 20:21:17 +02:00
Simon Brandhof
ad48aec871 SONAR-11950 add revision to webhooks 2019-05-22 20:21:17 +02:00
Simon Brandhof
edbce3b7a4 Fix Quality flaws 2019-05-22 20:21:16 +02:00
Julien Lancelot
7a547418b7 SONAR-12026 Security Hotspots are created with resolution "To Review" 2019-05-22 20:21:13 +02:00
Benoît Gianinetti
a9cb1fca0c SONAR-11966 Add security hotspot to Github Checks 2019-05-06 11:01:14 +02:00
Duarte Meneses
67bbf94270 Upgrade assertj-core to 3.12.2 and assertj-guava to 3.2.1 for compatibility with Java 11 2019-04-30 20:21:07 +02:00
Julien HENRY
7beb7085f0 Clean old remains of dev cockpit 2019-04-25 20:21:05 +02:00
Julien Lancelot
77c27da687 SONAR-11885 Fix computation of security_hotspots measures
* SONAR-11892 Reorganize ITs
* SONAR-11892 Do not include resolved security hotspots in measure
* SONAR-11892 Update security_hotspots measures in live
2019-04-23 20:21:11 +02:00
Julien Lancelot
d4f5c337dc SONAR-11892 Compute Security Hotspot measures 2019-04-23 20:21:10 +02:00
Julien Lancelot
66bab766d8 SONAR-11925 Includes hotspots by default in the response of api/issues/search 2019-04-23 20:21:10 +02:00
Julien HENRY
10be2d0810 SONAR-11858 Make a UT more reliable 2019-04-23 20:21:08 +02:00
Julien HENRY
0d17e454b4 SONAR-11859 Fix issue changelog 2019-04-23 20:21:08 +02:00
Duarte Meneses
2a87f9a8ef SONAR-11858 Fix quality issues 2019-04-23 20:21:08 +02:00
Julien HENRY
bec219de08 SONAR-11859, SONAR-11879 Track issues with the target branch 2019-04-23 20:21:07 +02:00
Duarte Meneses
81638702d6 SONAR-11856 Store the "true" target branch in the scanner report to display it properly 2019-04-23 20:21:07 +02:00
Julien HENRY
afe312e4cb SONAR-11858 Apply light issue tracking with siblings for all branches 2019-04-23 20:21:07 +02:00
Sébastien Lesaint
58bb4b37da SONAR-11757 single notification for FPs and changes on my issues 2019-04-23 10:37:57 +02:00
Sébastien Lesaint
523573e08f SONAR-11753 EmailNotificationChannel ignore empty recipient requests 2019-04-23 10:37:56 +02:00
Sébastien Lesaint
7fc90932dc SONAR-11929 do not send issue notifications on PRs and short branches 2019-04-23 10:37:56 +02:00
Simon Brandhof
0a0784cbb6 SONAR-11916 replace class EmailTemplate by interface 2019-04-23 10:37:56 +02:00
Simon Brandhof
592c6dbcca SONAR-11916 Drop unused Java API EmailTemplate 2019-04-23 10:37:55 +02:00
Simon Brandhof
09a93fb520 SONAR-11930 notifs on branches/PR are ignored if subscribed on project 2019-04-23 10:37:55 +02:00
Sébastien Lesaint
dfae66e019 SONAR-11753 factor code in email NotificationHandler implementations 2019-04-23 10:37:54 +02:00
Sébastien Lesaint
41c0731011 SONAR-11753 move "failed analysis" notification to email specific algo 2019-04-23 10:37:54 +02:00
Sébastien Lesaint
7aa67c7696 SONAR-11753 move "QP change" notification to email specific algo 2019-04-23 10:37:54 +02:00
Sébastien Lesaint
bab362aa98 SONAR-11753 move issue change notifications to email specific algo 2019-04-23 10:37:53 +02:00
Sébastien Lesaint
50957cdd8a SONAR-11753 NewIssuesNotification must not do SQL requests
for data which is either already retrieved by SendIssueNotificationStep (assignees) or available in the CE task's container
2019-04-23 10:37:53 +02:00
Sébastien Lesaint
5a4caef0bc SONAR-11753 NewIssuesNotificationFactory is not used in Web 2019-04-23 10:37:52 +02:00
Sébastien Lesaint
5317ebf32d SONAR-11753 move "New Issues" notification to email specific algo 2019-04-23 10:37:52 +02:00
Sébastien Lesaint
d39e02878c SONAR-11753 move "My new issues" notification to email specific algo 2019-04-23 10:37:38 +02:00
Simon Brandhof
c4d959d2bc SONAR-10462 Postgres deadlock when updating last used date of Q profile 2019-04-10 20:22:48 +02:00
Simon Brandhof
251688c711 SONAR-11873 Memory leak when Compute Engine persists file duplications 2019-03-29 20:21:42 +01:00
Janos Gyerik
f1c3675ebc SONAR-11631 Replace codePeriodVersion with buildString 2019-03-19 20:21:27 +01:00
Janos Gyerik
f922056110 SONAR-11631 Persist sonar.buildString in database 2019-03-19 20:21:27 +01:00
Sébastien Lesaint
a8f011b7f5 SONAR-11791 use single type ES indices 2019-03-19 20:21:19 +01:00
Duarte Meneses
4329c670ce SONAR-11549 Remove code that load old scanner reports with modules (MMF-365) 2019-03-15 20:20:55 +01:00
Duarte Meneses
08570ac268 SONAR-11664 Remove metric 'directories' 2019-03-15 20:20:55 +01:00
Julien Lancelot
11321c3805 SONAR-10722 Clean code by removing portfolios in NewCoverageMeasuresStep 2019-03-14 20:21:40 +01:00
Simon Brandhof
52596cea90 SONAR-11814 speed-up upsert of live measures on PostgreSQL 2019-03-13 20:21:23 +01:00
Duarte Meneses
4b841d5086 SONAR-11776 Quality Gate failure conditions should be sorted 2019-03-11 20:21:04 +01:00
Duarte Meneses
6d364c3266 SONAR-11776 Quality Gate failure conditions should be sorted 2019-03-11 20:21:04 +01:00
Duarte Meneses
579871c522 Minor fixes 2019-03-11 20:21:03 +01:00
Janos Gyerik
0cc9db4a00 SONAR-11706 Add metrics to PrAnalysisData and PrChangedData 2019-03-11 20:21:03 +01:00
Duarte Meneses
b0eda21c27 SONAR-11707 Create new metrics for issue count and fix ITs 2019-03-11 20:21:02 +01:00
Duarte Meneses
1634f0473b SONAR-11707 Replace hardcoded QG with project's QG for SLB/PRs 2019-03-11 20:21:02 +01:00
Julien HENRY
f6b2a269c4 SONAR-11795 Drop persistit and move coverage measures computation to CE side 2019-03-08 20:20:55 +01:00
Julien Lancelot
ee23b84886 SONAR-11747 Fix portfolio computation when some projects are in warning 2019-03-08 20:20:55 +01:00
Julien HENRY
9e05ef0fb0 SONAR-11794 Remove old deprecated metrics 2019-03-06 11:30:44 +01:00
Duarte Meneses
f02eeba4ef SONAR-11561 Allow more special characters in branch names 2019-03-06 11:30:44 +01:00
Julien HENRY
694f338829 SONAR-11677 Simple issue reporting on PR/SLB with no reference analysis
Only keep issues having at least a location on a changed line
2019-02-18 20:20:55 +01:00
Janos Gyerik
0f580cd4d1 SONAR-11683 Do not resolve version for SLB and PR 2019-02-13 20:20:54 +01:00
Janos Gyerik
cd8bcac346 SONAR-11653 Use the manual baseline in analysis when defined
and populates the period fields of the analysis when baseline is manual
2019-02-11 09:11:49 +01:00
Sébastien Lesaint
171e241f14 SONAR-11631 rename constants to codePeriodVersion in notifications 2019-02-11 09:11:47 +01:00
Sébastien Lesaint
9d3e3846a8 SONAR-11631 read and persist codePeriodVersion from report 2019-02-11 09:11:47 +01:00
Sébastien Lesaint
c0594dbcdf SONAR-11631 add SnapshotDto.projectVersion 2019-02-11 09:11:47 +01:00
Sébastien Lesaint
18297ee25c SONAR-11631 rename snapshot's version to codePeriodVersion 2019-02-11 09:11:47 +01:00
Sébastien Lesaint
47ebff25c3 SONAR-11631 replace Component.version by Metadata.projectVersion
in scanner report
2019-02-11 09:11:46 +01:00
Janos Gyerik
3373e5778a Drop unused method 2019-02-11 09:11:46 +01:00
Duarte Meneses
01f2c2e66d SONAR-11439 Analysis of long branch doesn't trigger purge of dependent short branches and pull requests 2019-02-11 09:11:45 +01:00
Benoît Gianinetti
abb6aa64f9 SONAR-11515 Drop support for old reports 2019-02-11 09:11:42 +01:00
Sébastien Lesaint
59ca17e515 SONAR-11514 drop support for old reports 2019-02-11 09:11:42 +01:00
Jean-Baptiste Lièvremont
c173166cd3 SONARCLOUD-312 Use key instead of UUID to send downgrade feedback (#1140) 2019-01-18 20:21:03 +01:00
Michal Duda
829f3ccf0c replace Protobuf.setNullable with Optional.ofNullable 2019-01-18 20:21:02 +01:00
Julien Lancelot
b5cc291883 SONAR-11632 Remove api/tests WS
- Drop api/tests WS
- Drop persistance of tests and coverage details from compute engine
- Drop tests and coverage details from scanner report
2019-01-17 20:21:00 +01:00
Julien Lancelot
b289aefd1a Fix wrong import of StringUtils 2019-01-16 09:43:13 +01:00
Julien HENRY
e4debe10e4 SONAR-11463 Fix directories metric computation 2019-01-16 09:43:12 +01:00
Stas Vilchik
bd541850bc change year in file headers 2019-01-16 09:43:11 +01:00
Julien HENRY
4db8bd9ecf SONAR-11463 Change FileMoveDetection to use uuids instead of keys 2019-01-16 09:43:10 +01:00
Julien HENRY
0e834f9196 SONAR-11463 Update scope of migrated components 2019-01-16 09:43:10 +01:00
Julien HENRY
c79da6a527 SONAR-11463 Prefers existing DB key to migrated ones 2019-01-16 09:43:09 +01:00