Commit Graph

15 Commits

Author SHA1 Message Date
Martin Redington 7dad240ea7
Add a `reporters` subcommand (#4836) 2023-03-31 08:09:01 +02:00
Zev Eisenberg fcf848608e
Add Inline test failure messages (#3040)
* Add Example wrapper in order to display test failures inline when running in Xcode.
* Stop using Swift 5.1-only features so we can compile on Xcode 10.2.
* Wrap strings in Example.
* Add Changelog entry.
* Wrap all examples in Example struct.
* Better and more complete capturing of line numbers.
* Fix broken test.
* Better test traceability.
* Address or disable linting warnings.
* Add documentation comments.
* Disable linter for a few cases.
* Limit mutability and add copy-and-mutate utility functions.
* Limit scope of mutability.
2020-02-02 10:35:37 +02:00
JP Simard 37167a8a35
Add documentation comments to all public declarations (#3027) 2020-01-08 09:47:10 -08:00
JP Simard b83e0991b9
Remove all file headers
The MIT license doesn't require that all files be prepended with this
licensing or copyright information. Realm confirmed that they're ok with this
change. This will enable some companies to contribute to SwiftLint and the
date & authorship information will remain accessible via git source control.
2018-05-04 13:42:02 -07:00
JP Simard 00cd61ab17
update SwiftLintFramework/Reporters to follow Swift 3 API Design Guidelines 2017-01-09 19:31:19 -08:00
JP Simard c82cc6d9f6
fix JSON reporter on Linux and re-enable its unit test
the printed JSON string is slightly different on Linux than it is on
Darwin, but produces equivalent JSON
2016-12-22 10:39:26 -08:00
JP Simard 19fad01b29
make all enum members lowercase to comply with Swift 3 API Guidelines 2016-12-01 22:16:21 -08:00
Norio Nomura 1dc0d6016d
Fix failing `testJSONReporter()` 2016-10-13 22:23:17 +09:00
Norio Nomura fc0d48ab80
Fix crash on JSONReporter 2016-10-13 21:20:12 +09:00
Norio Nomura 8bf15f1dba
Migrate to Swift 3.0 2016-10-09 01:09:50 +09:00
JP Simard 0335f155ab Perform major refactor of rule description, identifiers and examples
Fixes #183.
2015-11-04 12:24:33 -08:00
Gilles Grousset 7feb26ebe2 Refactored Rule reference in StyleViolation
Now uses a String with the rule identifier
2015-11-03 13:31:29 +01:00
Gilles Grousset 7328b41da8 Added rule reference to StyleViolation
- Added rule reference to StyleViolation
- Added rule_id field on JSONReporter and CSVReporter
2015-11-01 02:00:04 +01:00
JP Simard 87cd144b8a Merge stdin/non-stdin code paths, only log reports to stdout, chunk json/csv reports 2015-10-05 11:57:07 -07:00
JP Simard ee79209db8 added custom reporters: xcode (default), json, csv. fixes #42 2015-09-19 17:48:32 +02:00