Skip to content

Commit 9e7cbce

Browse files
committed
Change language key to avoid conflict with SonarSource's plugin
1 parent 3c56c74 commit 9e7cbce

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SonarQube Plugin for Objective-C
1+
# SonarQube Objective-C (Community) Plugin
22

33
This repository hosts the Objective-C plugin for
44
[SonarQube](http://www.sonarqube.org/). This plugin aims to analyze and track

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<version>0.5.0-SNAPSHOT</version>
1414
<packaging>sonar-plugin</packaging>
1515

16-
<name>SonarQube Objective-C Plugin</name>
16+
<name>SonarQube Objective-C (Community) Plugin</name>
1717
<description>Enable analysis and reporting on Objective-C projects.</description>
1818
<url>https://github.com/octo-technology/sonar-objective-c</url>
1919

@@ -97,7 +97,7 @@
9797

9898
<!-- Configuration for sonar-packaging-maven-plugin -->
9999
<sonar.pluginClass>org.sonar.plugins.objectivec.ObjectiveCPlugin</sonar.pluginClass>
100-
<sonar.pluginName>Objective-C</sonar.pluginName>
100+
<sonar.pluginName>Objective-C (Community)</sonar.pluginName>
101101

102102
</properties>
103103

src/main/java/org/sonar/plugins/objectivec/ObjectiveC.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ public class ObjectiveC extends AbstractLanguage {
3232
/**
3333
* Objective-C key
3434
*/
35-
public static final String KEY = "objc";
35+
public static final String KEY = "objectivec";
3636

3737
/**
3838
* Objective-C name
3939
*/
40-
public static final String NAME = "Objective-C";
40+
public static final String NAME = "Objective-C (Community)";
4141

4242
/**
4343
* Key of the file suffix parameter

src/main/resources/org/sonar/plugins/objectivec/profile-clang.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<profile>
22
<name>Clang</name>
3-
<language>objc</language>
3+
<language>objectivec</language>
44
<rules>
55
<rule>
66
<repositoryKey>clang</repositoryKey>
@@ -43,4 +43,4 @@
4343
<key>other</key>
4444
</rule>
4545
</rules>
46-
</profile>
46+
</profile>

src/main/resources/org/sonar/plugins/objectivec/profile-oclint.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<profile>
22
<name>OCLint</name>
3-
<language>objc</language>
3+
<language>objectivec</language>
44
<rules>
55
<rule>
66
<repositoryKey>OCLint</repositoryKey>
@@ -255,4 +255,4 @@
255255
<key>use early exits and continue</key>
256256
</rule>
257257
</rules>
258-
</profile>
258+
</profile>

updateRules.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def writeProfileOCLint() {
102102
MarkupBuilder xml = new MarkupBuilder(new IndentPrinter(writer, " "))
103103
xml.profile() {
104104
name "OCLint"
105-
language "objc"
105+
language "objectivec"
106106
rules {
107107
rulesXml.rule.each { rl ->
108108
rule {

0 commit comments

Comments
 (0)