Commit Graph

27 Commits

Author SHA1 Message Date
JP Simard 75ba96b2ad Fix testEmojiReporter on Linux with Swift 4.2 (#2375) 2018-09-01 12:44:52 -07:00
Yusuke Ohashi a941b2f242 added SonarQube reporter. 2018-08-16 15:02:47 +09: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
Zach Jaquish 89ec542599 Fix failed linting of ReporterTests.swift 2018-02-20 15:51:31 -08:00
Marcelo Fabri fd231b607d Fix existing violations 2017-06-13 16:12:58 +02:00
JP Simard 25a92c4e03 automatically generate LinuxMain.swift using Sourcery
This adds 6 tests that were accidentally not being run on Linux:

* LineLengthConfigurationTests.testLineLengthConfigurationInitialiserSetsIgnoresComments
* LineLengthConfigurationTests.testLineLengthConfigurationInitialiserSetsIgnoresFunctionDeclarations
* LineLengthConfigurationTests.testLineLengthConfigurationThrowsOnBadConfigValues
* LineLengthRuleTests.testLineLengthWithIgnoreCommentsEnabled
* LineLengthRuleTests.testLineLengthWithIgnoreFunctionDeclarationsEnabled
* RegionTests.testSeveralRegionsFromSeveralCommands
2017-06-02 14:28:37 -07:00
JP Simard 66c060ddc3 remove some unnecessary force try's in tests 2017-05-24 15:42:12 -07:00
Norio Nomura 45049e8cdf Apply workaround for https://bugs.swift.org/browse/SR-530 2017-04-14 20:03:12 +09:00
Marcelo Fabri 35e6474f0c Refactoring and make rule enabled by default 2017-03-19 17:52:55 +01:00
JP Simard 9e7cdc3282 update SwiftLintFramework/Protocols to follow Swift 3 API Design Guidelines 2017-01-09 19:19:25 -08:00
JP Simard e663cd0453 disable force try rule in ReporterTests 2016-12-22 11:08:07 -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
Marcelo Fabri 01e73e2820 Updating tests 2016-12-22 00:09:28 -02:00
JP Simard 7d097e1058 simplify stringFromFile(_:) 2016-12-13 12:33:05 -08:00
JP Simard 6aeac7199c replace explicit NSString casts with bridge() to compile on Linux 2016-12-13 12:33:05 -08:00
Fabian Ehrentraud c88a5d0371 moved expected html reporter result for tests to external file too 2016-12-13 12:33:05 -08:00
Fabian Ehrentraud f8e74137fb moved all expected reporter results for tests to external files - except html reporter output, as that includes parametrized stuff 2016-12-13 12:33:05 -08:00
Fabian Ehrentraud 7cb81527ee added failing unit tests for empty location 2016-12-13 12:33:05 -08:00
Fabian Ehrentraud 100bd9bb70 added failing unit tests for syntactic sugar rule, as the message contains characters '<' and '>' which are not allowed in xml or html 2016-12-13 12:32:32 -08:00
JP Simard 97e798dc70 add LinuxMain.swift and allTests extensions
to run all unit tests on Linux
2016-12-11 14:04:49 -08:00
JP Simard 35290a1935 add missing imports
to help compile on Linux later
2016-12-11 14:04:49 -08:00
Michał Kałużny d97632e52d Add human readable reporter that’s also funny because emoji. 2016-12-07 23:13:59 -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 f8beeb7cde Fix crash in ReporterTests.testHTMLReporter() on swift test 2016-12-02 10:01:20 +09:00
Norio Nomura 363bcf5c73 Merge branch 'master' into swift3.0
* master:
  add empty changelog section
  update Releasing.md with `brew bump-formula-pr`
  0.13.1: Heavy Cycle
  remove unused function dictFromKeyValuePairs
  add tests for reporterFromString(_:)
  small refactoring of SwitchCaseOnNewlineRule.swift

# Conflicts:
#	Source/SwiftLintFramework/Extensions/File+Cache.swift
#	Source/SwiftLintFramework/Rules/SwitchCaseOnNewlineRule.swift
2016-11-30 22:33:16 +09:00
Norio Nomura 7593deff3f Merge commit 'b591ec71085572825616e9ac0ed15450198b52bb' into swift3.0
* commit 'b591ec71085572825616e9ac0ed15450198b52bb':
  minor Tests comment formatting
  ValidIBInspectableRule formatting
  fix typo in OverriddenSuperCallRule file name

# Conflicts:
#	Source/SwiftLintFramework/Rules/ValidIBInspectableRule.swift
2016-11-30 17:14:40 +09:00
Norio Nomura 121d19b941 Support Swift Package Manager on macOS 2016-11-08 20:35:30 +09:00