Comments (10)
@ajsait can you please give a bit more detail in what you're asking for?
from swiftlint.
We want to use the SwiftLint in our Jenkins CI server. Currently it just generates something like this.
Finding Swift files in current directory...
/Users/Shared/Jenkins/.jenkins/workspace/iOS-v3-Build/Foo/AppDelegate.swift:20: warning: Length Violation (Low Severity): Line should be 100 characters or less: currently 125 characters
/Users/Shared/Jenkins/.jenkins/workspace/iOS-v3-Build/Foo/AppDelegate.swift:21: warning: Length Violation (Very Low Severity): Line should be 100 characters or less: currently 117 characters
/Users/Shared/Jenkins/.jenkins/workspace/iOS-v3-Build/Foo/AppDelegate.swift:27: error: Length Violation (Very High Severity): Line should be 100 characters or less: currently 281 characters
/Users/Shared/Jenkins/.jenkins/workspace/iOS-v3-Build/Foo/AppDelegate.swift:28: warning: Length Violation (Medium Severity): Line should be 100 characters or less: currently 151 characters
/Users/Shared/Jenkins/.jenkins/workspace/iOS-v3-Build/Foo/AppDelegate.swift:32: error: Length Violation (High Severity): Line should be 100 characters or less: currently 214 characters
/Users/Shared/Jenkins/.jenkins/workspace/iOS-v3-Build/Foo/AppDelegate.swift:33: warning: Length Violation (Low Severity): Line should be 100 characters or less: currently 137 characters
/Users/Shared/Jenkins/.jenkins/workspace/iOS-v3-Build/Foo/AppDelegate.swift:37: warning: Length Violation (Medium Severity): Line should be 100 characters or less: currently 153 characters
It would be nice to have a much better report for SwiftLint, something like the one in Sonar.
from swiftlint.
I think this boils down to supporting structured output - json, csv, etc.
from swiftlint.
Indeed, supporting custom reporters would be great!
from swiftlint.
A PMD XML report file output would also be ideal.
from swiftlint.
Would be perfect if sonar could be supported
from swiftlint.
Could those of you who have requested support for custom report formats point to official documentation for the formats you need? I'll need a full spec of what "PMD XML" and "Sonar" output should look like.
from swiftlint.
I've added the infrastructure necessary for this, along with new JSON and CSV reporters in #133.
I encourage those of you who have requested this feature to take a look at how it's done and let me know if it's on the right track.
from swiftlint.
I would certainly add XML reporting to the mix, primarily because TeamCity, for example, can handle a lot of XML-based formats, but, unfortunately, neither CSV nor JSON.
You can check out this page for more information: https://confluence.jetbrains.com/display/TCD9/XML+Report+Processing
from swiftlint.
Thanks for the suggestion @dmytrol, I've created #277 to track that.
from swiftlint.
Related Issues (20)
- `private_over_fileprivate` produces a false positive when using actor
- Brew repo is not hosting the last version of swiftlint HOT 3
- each variable should have comment HOT 2
- Glob.resolveGlob() is veeeery sloooow HOT 6
- [Swift] Error when importing swiftlint report HOT 5
- Privacy Manifest HOT 1
- Custom rule using lookbehind becomes Invalid configuration HOT 1
- Rule Request: Line break in between case statements HOT 4
- SwiftLint not work with platform=linux/amd64
- SwiftLintPlugin does not honor `included` configuration. Issue? Or expected? HOT 4
- swiftlint analyze appears to stop collecting after 12 files with Swift 5.10 HOT 6
- `unused_import` not taking into account `@_exported import`
- Have a custom rule where if we have a call to a method, we should expect another one HOT 3
- Time for a new release? HOT 2
- Conflict with other macro package HOT 1
- Rule Request: Alphabetise struct property let / vars.
- [unused_declaration] Unused class/struct is not detected if it conforms to a protocol in extension
- Feature request: Add an (opt in) update check to SwiftLint HOT 2
- Dogfood Baselines internally HOT 5
- ShorthandOptionalBinding Rule not working? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftlint.