Skip to content

Commit 883c7a5

Browse files
Update licences to 2022
1 parent 7970a1a commit 883c7a5

File tree

329 files changed

+343
-343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

329 files changed

+343
-343
lines changed

its/plugin/src/test/java/org/sonarsource/slang/DuplicationsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* SonarSource SLang
3-
* Copyright (C) 2018-2021 SonarSource SA
2+
* SonarSource Kotlin
3+
* Copyright (C) 2018-2022 SonarSource SA
44
* mailto:info AT sonarsource DOT com
55
*
66
* This program is free software; you can redistribute it and/or

its/plugin/src/test/java/org/sonarsource/slang/ExternalReportTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* SonarSource SLang
3-
* Copyright (C) 2018-2021 SonarSource SA
2+
* SonarSource Kotlin
3+
* Copyright (C) 2018-2022 SonarSource SA
44
* mailto:info AT sonarsource DOT com
55
*
66
* This program is free software; you can redistribute it and/or
@@ -46,7 +46,7 @@ public void detekt() {
4646
ORCHESTRATOR.executeBuild(sonarScanner);
4747
List<Issue> issues = getExternalIssues(projectKey);
4848
assertThat(issues).hasSize(2);
49-
49+
5050
Issue first = issues.stream().filter(issue -> issue.getRule().equals("external_detekt:ForEachOnRange")).findFirst().orElse(null);
5151
assertThat(first.getComponent()).isEqualTo(projectKey + ":main.kt");
5252
assertThat(first.getLine()).isEqualTo(2);
@@ -76,7 +76,7 @@ public void android_lint() {
7676
assertThat(first.getMessage()).isEqualTo("A newer version of com.android.support:recyclerview-v7 than 26.0.0 is available: 27.1.1");
7777
assertThat(first.getSeverity().name()).isEqualTo("MINOR");
7878
assertThat(first.getDebt()).isEqualTo("5min");
79-
79+
8080
Issue secondIssue = issues.stream().filter(issue -> issue.getRule().equals("external_android-lint:UnusedAttribute")).findFirst().orElse(null);
8181
assertThat(secondIssue.getLine()).isEqualTo(2);
8282
assertThat(secondIssue.getMessage()).isEqualTo("Attribute `required` is only used in API level 5 and higher (current min is 1)");

its/plugin/src/test/java/org/sonarsource/slang/MeasuresTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* SonarSource SLang
3-
* Copyright (C) 2018-2021 SonarSource SA
2+
* SonarSource Kotlin
3+
* Copyright (C) 2018-2022 SonarSource SA
44
* mailto:info AT sonarsource DOT com
55
*
66
* This program is free software; you can redistribute it and/or

its/plugin/src/test/java/org/sonarsource/slang/SonarLintTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* SonarSource SLang
3-
* Copyright (C) 2018-2021 SonarSource SA
2+
* SonarSource Kotlin
3+
* Copyright (C) 2018-2022 SonarSource SA
44
* mailto:info AT sonarsource DOT com
55
*
66
* This program is free software; you can redistribute it and/or

its/plugin/src/test/java/org/sonarsource/slang/SuppressWarningsTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* SonarSource SLang
3-
* Copyright (C) 2018-2021 SonarSource SA
2+
* SonarSource Kotlin
3+
* Copyright (C) 2018-2022 SonarSource SA
44
* mailto:info AT sonarsource DOT com
55
*
66
* This program is free software; you can redistribute it and/or
@@ -31,7 +31,7 @@ public class SuppressWarningsTest extends TestBase {
3131
private static final String COGNITIVE_COMPLEXITY_RULE_KEY = "S3776";
3232
private static final String PROJECT_KEY = "issueSuppression";
3333
private static final String LANGUAGE = "kotlin";
34-
34+
3535

3636
@Test
3737
public void test_kotlin_issue_suppression() {

its/plugin/src/test/java/org/sonarsource/slang/SurefireTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* SonarSource SLang
3-
* Copyright (C) 2018-2021 SonarSource SA
2+
* SonarSource Kotlin
3+
* Copyright (C) 2018-2022 SonarSource SA
44
* mailto:info AT sonarsource DOT com
55
*
66
* This program is free software; you can redistribute it and/or
@@ -46,7 +46,7 @@ public void tests_without_main_code() {
4646
.setPom(new File(BASE_DIRECTORY.toFile(), "tests-without-main-code/pom.xml"))
4747
.setGoals("clean test-compile surefire:test", "sonar:sonar");
4848
ORCHESTRATOR.executeBuild(build);
49-
49+
5050
Map<String, Measures.Measure> measures = getMeasures("org.sonarsource.it.projects:tests-without-main-code",
5151
"tests", "test_errors", "test_failures", "skipped_tests", "test_execution_time", "test_success_density");
5252

@@ -56,7 +56,7 @@ public void tests_without_main_code() {
5656
assertThat(parseInt(measures.get("skipped_tests").getValue())).isEqualTo(1);
5757
assertThat(parseInt(measures.get("test_execution_time").getValue())).isPositive();
5858
assertThat(parseDouble(measures.get("test_success_density").getValue())).isEqualTo(100.0);
59-
59+
6060
}
6161

6262
@Test

its/plugin/src/test/java/org/sonarsource/slang/TestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* SonarSource SLang
3-
* Copyright (C) 2018-2021 SonarSource SA
2+
* SonarSource Kotlin
3+
* Copyright (C) 2018-2022 SonarSource SA
44
* mailto:info AT sonarsource DOT com
55
*
66
* This program is free software; you can redistribute it and/or

its/plugin/src/test/java/org/sonarsource/slang/Tests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* SonarSource SLang
3-
* Copyright (C) 2018-2021 SonarSource SA
2+
* SonarSource Kotlin
3+
* Copyright (C) 2018-2022 SonarSource SA
44
* mailto:info AT sonarsource DOT com
55
*
66
* This program is free software; you can redistribute it and/or

its/ruling/src/test/java/org/sonarsource/slang/SlangRulingTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* SonarSource SLang
3-
* Copyright (C) 2018-2021 SonarSource SA
2+
* SonarSource Kotlin
3+
* Copyright (C) 2018-2022 SonarSource SA
44
* mailto:info AT sonarsource DOT com
55
*
66
* This program is free software; you can redistribute it and/or

sonar-kotlin-plugin/src/main/java/org/sonarsource/kotlin/api/AbstractCheck.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* SonarSource Kotlin
3-
* Copyright (C) 2018-2021 SonarSource SA
3+
* Copyright (C) 2018-2022 SonarSource SA
44
* mailto:info AT sonarsource DOT com
55
*
66
* This program is free software; you can redistribute it and/or

0 commit comments

Comments
 (0)