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,81 +37,80 @@ 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.3
50
+
####0.3.3
51
51
- Updated run-sonar-swift.sh to support -usesonarscanner (for sonar-scanner instead of sonar-runner).
52
52
53
-
####0.3.2
53
+
####0.3.2
54
54
- SwiftLint 0.16.1 (75 rules now).
55
55
- Fixed [Metric 'test_data' should not be computed by a Sensor](https://github.com/Backelite/sonar-swift/issues/61) with SonarQube 6.2
56
56
- Fastlane documentation update by [mammuth](https://github.com/mammuth). See [PR 62](https://github.com/Backelite/sonar-swift/pull/62)
57
57
- run-sonar-swift.sh fix by [TheSkwiggs](https://github.com/mammuth). See [PR 64](https://github.com/Backelite/sonar-swift/pull/64)
58
58
59
-
####0.3.1
59
+
####0.3.1
60
60
- 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))
61
61
- 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))
62
62
- 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))
63
63
64
64
65
-
####0.3.0
65
+
####0.3.0
66
66
- SonarQube 6 support. Important : will work with SonarQube 5.x and above only. Will not work anymore with SonarQube 4.5.x anymore.
67
67
- SwiftLint 0.13.1 support (49 rules now).
68
68
- Desactivation of unit tests and coverage is now allowed. Use **run-sonar-swift.sh -nounittests** to do it.
69
69
70
-
####0.2.4
70
+
####0.2.4
71
71
- Analysis does not fail anymore when an unkwown issue is reported by SwiftLint. See [issue 35](https://github.com/Backelite/sonar-swift/issues/35)
72
72
- Fastlane documentation (thanks to [viteinfinite](https://github.com/viteinfinite)). See [PR 33](https://github.com/Backelite/sonar-swift/pull/33)
73
73
- Fixed Fastlane JUnit report support
74
74
- SwiftLint 0.11.1 support
75
75
- Better return code suppot for run-sonar-swift.sh
76
76
77
-
####0.2.3
77
+
####0.2.3
78
78
- Fixed Lizard Sensor wrong file path
79
79
80
-
####0.2.2
80
+
####0.2.2
81
81
- Added support for .xcodeproj only projects (thanks to [delannoyk](https://github.com/delannoyk))
82
82
- Fix for Lizard Sensor to find indexed files (thanks to [gretzki](https://github.com/gretzki))
83
83
- Got rid of confusion with commercial plugin in the update center
84
84
85
-
####0.2.1
85
+
####0.2.1
86
86
- SwiftLint 0.8 support (new rules added).
87
87
88
-
####0.2.0
88
+
####0.2.0
89
89
- Lizard complexity report support (thanks to [akshaysyaduvanshi](https://github.com/akshaysyaduvanshi))
90
90
91
-
####0.1.2
91
+
####0.1.2
92
92
- SwiftLint 0.5.1 support (new rules added).
93
93
- Added *sonar.swift.simulator* key in *sonar-project.properties* to select destination simulator for running tests
94
94
- SwiftLint scans source directories only
95
95
96
-
####0.1.1
96
+
####0.1.1
97
97
- SwiftLint 0.4.0 support (new rules added).
98
98
99
-
####0.1.0
99
+
####0.1.0
100
100
- Initial release.
101
101
102
102
103
-
104
-
###Prerequisites
103
+
### Prerequisites
105
104
106
105
- a Mac with Xcode 7 or +
107
-
-[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```)
106
+
-[SonarQube](https://docs.sonarqube.org/display/SONAR/Setup+and+Upgrade) and [SonarQube Scanner](https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner)
108
107
-[xcpretty](https://github.com/supermarin/xcpretty) (see instructions below)
109
108
-[SwiftLint](https://github.com/realm/SwiftLint) ([HomeBrew](http://brew.sh) installed and ```brew install swiftlint```). Version 0.3.0 or above.
110
109
-[Tailor](https://github.com/sleekbyte/tailor) ([HomeBrew](http://brew.sh) installed and ```brew install tailor```). Version 0.11.1 or above.
111
110
-[slather](https://github.com/SlatherOrg/slather) (```gem install slather```). Version 2.1.0 or above.
112
111
-[lizard](https://github.com/terryyin/lizard) ([PIP](https://pip.pypa.io/en/stable/installing/) installed and ```sudo pip install lizard```)
113
112
114
-
###Installation of xcpretty with JUnit reports fix
113
+
###Installation of xcpretty with JUnit reports fix
115
114
116
115
At the time, xcpretty needs to be fixed to work with SonarQube.
117
116
@@ -123,29 +122,29 @@ To install the fixed version, follow those steps :
123
122
gem build xcpretty.gemspec
124
123
sudo gem install --both xcpretty-0.2.2.gem
125
124
126
-
###Installation (once for all your Swift projects)
125
+
###Installation (once for all your Swift projects)
127
126
- Download the plugin binary into the $SONARQUBE_HOME/extensions/plugins directory
128
127
- Copy [run-sonar-swift.sh](https://rawgithub.com/Backelite/sonar-swift/master/src/main/shell/run-sonar-swift.sh) somewhere in your PATH
129
128
- Restart the SonarQube server.
130
129
131
-
###Configuration (once per project)
130
+
###Configuration (once per project)
132
131
- 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)
133
132
- Edit the ```sonar-project.properties``` file to match your Xcode iOS/MacOS project
134
133
135
134
**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.
136
135
137
-
###Update (once per plugin update)
136
+
###Update (once per plugin update)
138
137
- Install the lastest plugin version
139
138
- Copy ```run-sonar-swift.sh``` somewhere in your PATH
140
139
141
140
If you still have *run-sonar-swift.sh* file in each of your project (not recommended), you will need to update all those files.
142
141
143
-
###Contributing
142
+
###Contributing
144
143
145
144
Feel free to contribute to this plugin by issuing pull requests to this repository.
146
145
147
146
When creating a pull request: always create it for the *develop* branch.
148
147
149
-
###License
148
+
###License
150
149
151
150
SonarQube Plugin for Swift is released under the [GNU LGPL 3 license](http://www.gnu.org/licenses/lgpl.txt).
0 commit comments