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 399f5b7df6
Fix docstring formatting issues using DrString (#3032)
Using command:
$ drstring check -i 'Source/**/*.swift' --first-letter lowercase --vertical-align
2020-01-12 11:19:33 -08: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 576e1a5d4d
remove unnecessary .lowercased() calls
now that ViolationSeverity is already lowercase.
2016-12-01 22:29:09 -08:00
Norio Nomura 8bf15f1dba
Migrate to Swift 3.0 2016-10-09 01:09:50 +09:00
JP Simard 512c3c695d rewrite XcodeReporter.generateForSingleViolation to compile 200x faster
before: 6056.5ms
after: 28.2ms
2016-01-18 13:52:37 -08: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 0e9fad37db Fixed compilation error with Travis CI 2015-11-01 22:33:28 +01:00
Gilles Grousset f877af1720 Added rule id on RulesCommand and XcodeReporter 2015-11-01 02:16:34 +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 1bec2bcb23 use XcodeReporter for StyleViolation's description 2015-09-20 00:01:36 +02:00
JP Simard ee79209db8 added custom reporters: xcode (default), json, csv. fixes #42 2015-09-19 17:48:32 +02:00