Skip to content

Commit 24c7c3f

Browse files
committed
Specifies the name of the profile for Android platform
1 parent d0cbb39 commit 24c7c3f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

android-plugin/src/main/java/io/ecocode/java/Java.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
public interface Java { //NOSONAR - we use the interface for constant without inheriting it
2323
String REPOSITORY_NAME = "ecoCode (Android)";
24-
String PROFILE_NAME = "ecoCode";
2524
String KEY = "java";
2625
String REPOSITORY_KEY = "ecocode-android-java";
2726
String RULES_SPECIFICATIONS_JAVA_PATH = "/io/ecocode/rules/java"; //NOSONAR - this URI is the same everywhere
28-
String PROFILE_PATH = "org/sonar/l10n/java/rules/squid/ecocode_java_profile.json";
27+
String PROFILE_NAME = "ecoCode (Android)";
28+
String PROFILE_PATH = "io/ecocode/android/java/ecocode_java_profile.json";
2929
}

android-plugin/src/main/java/io/ecocode/xml/Xml.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
public interface Xml { //NOSONAR - we use the interface for constant without inheriting it
2323
String REPOSITORY_NAME = "ecoCode (Android)";
24-
String PROFILE_NAME = "ecoCode";
2524
String KEY = "xml";
2625
String REPOSITORY_KEY = "ecocode-android-xml";
2726
String RULES_SPECIFICATIONS_XML_PATH = "io/ecocode/rules/xml";
28-
String PROFILE_PATH = "io/ecocode/xml/rules/ecocode_xml_profile.json";
27+
String PROFILE_NAME = "ecoCode (Android)";
28+
String PROFILE_PATH = "io/ecocode/android/xml/ecocode_xml_profile.json";
2929
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ecoCode",
2+
"name": "ecoCode Android",
33
"ruleKeys": [
44
"EC500",
55
"EC501",
@@ -35,4 +35,4 @@
3535
"EC531",
3636
"EC532"
3737
]
38-
}
38+
}

android-plugin/src/main/resources/io/ecocode/xml/rules/ecocode_xml_profile.json renamed to android-plugin/src/main/resources/io/ecocode/android/xml/ecocode_xml_profile.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ecoCode",
2+
"name": "ecoCode Android",
33
"ruleKeys": [
44
"EC540",
55
"EC541",

0 commit comments

Comments
 (0)