You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -37,78 +37,85 @@ In SonarQube under Quality Profiles the used Linter can be specified by selectin
37
37
| Code coverage |YES | Uses [slather](https://github.com/venmo/slather)| Not Supported|
38
38
39
39
40
-
###Download
40
+
###Download
41
41
42
42
Checkout the [Releases](https://github.com/Backelite/sonar-swift/releases) page.
43
43
44
-
###Launching an analysis
44
+
###Launching an analysis
45
45
If you use [Fastlane](https://fastlane.tools), please read [our Fastlane integration doc](docs/sonarqube-fastlane.md).
46
46
Otherwise, run the ```run-sonar-swift.sh``` script from your Xcode project root folder
47
47
48
-
###Release history
48
+
###Release history
49
49
50
-
####0.3.2
50
+
#### 0.3.4
51
+
- SwiftLint 0.18.1 (add 8 more rules)
52
+
- Fix README headers
53
+
- Update README URLs to SonarQube
54
+
55
+
#### 0.3.3
56
+
- Updated run-sonar-swift.sh to support -usesonarscanner (for sonar-scanner instead of sonar-runner).
57
+
58
+
#### 0.3.2
51
59
- SwiftLint 0.16.1 (75 rules now).
52
60
- Fixed [Metric 'test_data' should not be computed by a Sensor](https://github.com/Backelite/sonar-swift/issues/61) with SonarQube 6.2
53
61
- Fastlane documentation update by [mammuth](https://github.com/mammuth). See [PR 62](https://github.com/Backelite/sonar-swift/pull/62)
54
62
- run-sonar-swift.sh fix by [TheSkwiggs](https://github.com/mammuth). See [PR 64](https://github.com/Backelite/sonar-swift/pull/64)
55
63
56
-
####0.3.1
64
+
####0.3.1
57
65
- Now falls back to sonar-scanner if sonar-runner is not installed (thanks to [MaikoHermans](https://github.com/MaikoHermans). See [PR 59](https://github.com/Backelite/sonar-swift/pull/59))
58
66
- Ability to set *sonar.swift.appName*. Useful when basename is different from targeted scheme, or when slather fails with 'No product binary found' (thanks to [MaikoHermans](https://github.com/MaikoHermans). See [PR 58](https://github.com/Backelite/sonar-swift/pull/58))
59
67
- Added a second linter: Tailor. Enables analysis of Swift code on linux. (thanks to [tzwickl](https://github.com/tzwickl) for the hard work. See [PR 51](https://github.com/Backelite/sonar-swift/pull/51))
60
68
61
69
62
-
####0.3.0
70
+
####0.3.0
63
71
- SonarQube 6 support. Important : will work with SonarQube 5.x and above only. Will not work anymore with SonarQube 4.5.x anymore.
64
72
- SwiftLint 0.13.1 support (49 rules now).
65
73
- Desactivation of unit tests and coverage is now allowed. Use **run-sonar-swift.sh -nounittests** to do it.
66
74
67
-
####0.2.4
75
+
####0.2.4
68
76
- Analysis does not fail anymore when an unkwown issue is reported by SwiftLint. See [issue 35](https://github.com/Backelite/sonar-swift/issues/35)
69
77
- Fastlane documentation (thanks to [viteinfinite](https://github.com/viteinfinite)). See [PR 33](https://github.com/Backelite/sonar-swift/pull/33)
70
78
- Fixed Fastlane JUnit report support
71
79
- SwiftLint 0.11.1 support
72
80
- Better return code suppot for run-sonar-swift.sh
73
81
74
-
####0.2.3
82
+
####0.2.3
75
83
- Fixed Lizard Sensor wrong file path
76
84
77
-
####0.2.2
85
+
####0.2.2
78
86
- Added support for .xcodeproj only projects (thanks to [delannoyk](https://github.com/delannoyk))
79
87
- Fix for Lizard Sensor to find indexed files (thanks to [gretzki](https://github.com/gretzki))
80
88
- Got rid of confusion with commercial plugin in the update center
81
89
82
-
####0.2.1
90
+
####0.2.1
83
91
- SwiftLint 0.8 support (new rules added).
84
92
85
-
####0.2.0
93
+
####0.2.0
86
94
- Lizard complexity report support (thanks to [akshaysyaduvanshi](https://github.com/akshaysyaduvanshi))
87
95
88
-
####0.1.2
96
+
####0.1.2
89
97
- SwiftLint 0.5.1 support (new rules added).
90
98
- Added *sonar.swift.simulator* key in *sonar-project.properties* to select destination simulator for running tests
91
99
- SwiftLint scans source directories only
92
100
93
-
####0.1.1
101
+
####0.1.1
94
102
- SwiftLint 0.4.0 support (new rules added).
95
103
96
-
####0.1.0
104
+
####0.1.0
97
105
- Initial release.
98
106
99
107
100
-
101
-
###Prerequisites
108
+
### Prerequisites
102
109
103
110
- a Mac with Xcode 7 or +
104
-
-[SonarQube](http://docs.codehaus.org/display/SONAR/Setup+and+Upgrade) and [SonarQube Runner](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+SonarQube+Runner) installed ([HomeBrew](http://brew.sh) installed and ```brew install sonar-runner```)
111
+
-[SonarQube](https://docs.sonarqube.org/display/SONAR/Setup+and+Upgrade) and [SonarQube Scanner](https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner)
105
112
-[xcpretty](https://github.com/supermarin/xcpretty) (see instructions below)
106
113
-[SwiftLint](https://github.com/realm/SwiftLint) ([HomeBrew](http://brew.sh) installed and ```brew install swiftlint```). Version 0.3.0 or above.
107
114
-[Tailor](https://github.com/sleekbyte/tailor) ([HomeBrew](http://brew.sh) installed and ```brew install tailor```). Version 0.11.1 or above.
108
115
-[slather](https://github.com/SlatherOrg/slather) (```gem install slather```). Version 2.1.0 or above.
109
116
-[lizard](https://github.com/terryyin/lizard) ([PIP](https://pip.pypa.io/en/stable/installing/) installed and ```sudo pip install lizard```)
110
117
111
-
###Installation of xcpretty with JUnit reports fix
118
+
###Installation of xcpretty with JUnit reports fix
112
119
113
120
At the time, xcpretty needs to be fixed to work with SonarQube.
114
121
@@ -120,29 +127,29 @@ To install the fixed version, follow those steps :
120
127
gem build xcpretty.gemspec
121
128
sudo gem install --both xcpretty-0.2.2.gem
122
129
123
-
###Installation (once for all your Swift projects)
130
+
###Installation (once for all your Swift projects)
124
131
- Download the plugin binary into the $SONARQUBE_HOME/extensions/plugins directory
125
132
- Copy [run-sonar-swift.sh](https://rawgithub.com/Backelite/sonar-swift/master/src/main/shell/run-sonar-swift.sh) somewhere in your PATH
126
133
- Restart the SonarQube server.
127
134
128
-
###Configuration (once per project)
135
+
###Configuration (once per project)
129
136
- Copy [sonar-project.properties](https://raw.githubusercontent.com/Backelite/sonar-swift/master/sonar-project.properties) in your Xcode project root folder (along your .xcodeproj file)
130
137
- Edit the ```sonar-project.properties``` file to match your Xcode iOS/MacOS project
131
138
132
139
**The good news is that you don't have to modify your Xcode project to enable SonarQube!**. Ok, there might be one needed modification if you don't have a specific scheme for your test target, but that's all.
133
140
134
-
###Update (once per plugin update)
141
+
###Update (once per plugin update)
135
142
- Install the lastest plugin version
136
143
- Copy ```run-sonar-swift.sh``` somewhere in your PATH
137
144
138
145
If you still have *run-sonar-swift.sh* file in each of your project (not recommended), you will need to update all those files.
139
146
140
-
###Contributing
147
+
###Contributing
141
148
142
149
Feel free to contribute to this plugin by issuing pull requests to this repository.
143
150
144
151
When creating a pull request: always create it for the *develop* branch.
145
152
146
-
###License
153
+
###License
147
154
148
155
SonarQube Plugin for Swift is released under the [GNU LGPL 3 license](http://www.gnu.org/licenses/lgpl.txt).
0 commit comments