Commit Graph

52 Commits

Author SHA1 Message Date
JP Simard 7d09c6b627 Improve Danger comment when CI jobs are canceled (#5285)
This often happens when pushing a new commit to a PR while the Danger
job for a previous commit is still running.
2023-10-17 15:41:04 -04:00
JP Simard 7fe7bb28d9 Update rules_xcodeproj to 1.4.0 (#4885)
https://github.com/MobileNativeFoundation/rules_xcodeproj/releases/tag/1.4.0
2023-04-13 15:25:17 +00:00
JP Simard ca0813c605 Update Bazel to 5.3.2 (#4536)
Latest stable release: https://github.com/bazelbuild/bazel/releases/tag/5.3.2
Run OSSCheck if `.bazelversion` changes
2022-11-09 10:47:55 -05:00
Marcelo Fabri def404259f Add more repos to oss-check (#4453) 2022-10-23 14:21:02 -07:00
Marcelo Fabri c087e79437 [oss-check] Add DuckDuckGo and Signal (#4275) 2022-10-05 19:00:37 -04:00
JP Simard d2c638b5e4 [bazel] Enable WMO in release configuration (#4252)
Enabling WMO can make SwiftLint up to 90% faster in my testing, and
matches what SwiftPM does when building with `swift buid -c release`.
2022-09-27 21:56:17 -04:00
JP Simard ea41b9fd09 Rename default branch from master to main (#4116) 2022-09-01 07:09:46 -04:00
JP Simard fc3b143973 Rename script directory to tools (#4141)
And move the Danger bazel config there
2022-08-29 01:16:20 -04:00
JP Simard dd4aefd23a Danger: Clarify that changelog entries are for user-facing changes only 2022-08-10 17:30:47 -04:00
JP Simard 9e485266be Run OSSCheck when bazel files change (#4046) 2022-07-26 14:49:02 -04:00
JP Simard 24bf129268 Run OSSCheck when Package.swift changes (#3909) 2022-03-18 17:13:21 -04:00
JP Simard d2643db495 [Docs] Build docs using jazzy (#3016)
* Add `.jazzy.yaml` configuration file
* Update `swiftlint generate-docs` to write docs to a directory rather than a single file
* Add jazzy to the Gemfile
* Run `bundle update`
* Add CI job to run jazzy automatically and publish to GitHub Pages

![swiftlint-jazzy](https://user-images.githubusercontent.com/474794/71799038-fcf4e180-3008-11ea-81fa-3eb9cf296506.gif)
2020-01-07 20:31:29 -08:00
JP Simard 660ea7c9b6 Remove Danger's 'Rules.md' check
since that's now covered by a unit test.
2017-09-09 15:16:06 -07:00
Marcelo Fabri b635d1ffa8 Escape HTML tags in oss-check 2017-08-27 18:15:17 -03:00
JP Simard 11b3765956 Remove debugging 'puts'
now that the issue it was trying to debug has been addressed.
2017-08-21 13:59:26 -07:00
JP Simard 53db881f81 Silence git warning in Danger
Fixes #1784.
2017-08-21 13:49:48 -07:00
JP Simard 0e1a636809 Fix typo in Dangerfile comment 2017-08-21 13:22:49 -07:00
Marcelo Fabri 491693fb4f Add Danger check against merge commits
Fix #1766
2017-08-14 11:39:46 +02:00
JP Simard a81b15feed print oss-check output to logs when running Danger
to debug https://github.com/danger/danger/issues/873
2017-08-07 12:52:07 -07:00
JP Simard 6a2e7ef0a3 refactor Dangerfile
no functional changes
2017-08-02 11:21:40 -07:00
JP Simard 8249062e3a run OSSCheck in verbose mode in Dangerfile 2017-07-13 13:32:45 -07:00
Marcelo Fabri 686279c1cf Fix Danger check for updated rules documentation 2017-07-13 02:42:29 +02:00
Marcelo Fabri 704352d71c Add danger check 2017-07-03 00:38:02 +02:00
JP Simard f23bdc00e0 warn not fail in Danger when changelog entry missing 2017-06-01 17:01:34 -07:00
JP Simard 14407ec3b9 don't report 'RSA host key' warning to Danger
as seen in https://github.com/realm/SwiftLint/pull/1556
2017-05-23 10:54:42 -07:00
JP Simard a09e98790f run danger when Gemfile or build-related files are updated 2017-05-19 09:50:13 -07:00
Marcelo Fabri b7cad580a1 Fix deadlock when stderr fills up OS buffer
See https://medium.com/zendesk-engineering/running-a-child-process-in-ruby-properly-febd0a2b6ec8#.p5a2j1d9l
2017-02-03 12:27:00 -08:00
JP Simard da7712b2b1 small Danger/oss-check improvements 2017-02-03 12:14:10 -08:00
Marcelo Fabri d692a783f3 Run script with a clean env 2017-02-02 22:21:22 -02:00
Marcelo Fabri 5ce8ed7cd0 Use stderr 2017-02-02 22:21:22 -02:00
Marcelo Fabri f5370c7b36 Make Danger use the script 2017-02-02 22:21:22 -02:00
Marcelo Fabri 35209910b7 Make lint duration respect repos order 2017-01-22 19:26:21 -02:00
Marcelo Fabri fd27ef8b4a Add more projects to OSS Check 2017-01-22 16:07:00 -02:00
JP Simard 4689e8891c add Swift stdlib to OSSCheck 2017-01-10 16:44:35 -08:00
JP Simard 5702ef336a disable caching, handle errors & retry if can't build for OSSCheck
fail the build if it couldn't be built even after retrying
2017-01-10 16:29:07 -08:00
JP Simard 4a9806f4c7 disable caching when running OSSCheck 2017-01-10 15:21:42 -08:00
JP Simard 27563e7963 build SwiftLint in release mode when running benchmarks
this should give us a better idea of the true performance impact
2017-01-10 12:46:27 -08:00
JP Simard 807e889b0f report lint durations in Danger when running osscheck 2017-01-06 23:02:45 -08:00
JP Simard b77343cece improve log output when running osscheck 2017-01-06 23:02:28 -08:00
JP Simard 3613cf8edd add Alamofire to osscheck 2017-01-06 23:02:18 -08:00
JP Simard 4287369914 fix a ruby style issue 2017-01-06 23:02:17 -08:00
JP Simard e5f1f32581 Danger: don't update submodules when switching branches
since `swift build` will clone them automatically if necessary.
2017-01-06 23:02:17 -08:00
JP Simard 8c985971f7 run Danger on Circle CI instead of Travis 2017-01-06 23:02:17 -08:00
JP Simard 71fae7b394 Merge pull request #1094 from realm/jp-danger-improvements
Danger improvements
2016-12-30 19:04:58 -08:00
JP Simard 68d37b834c add period after pr_title in Danger comment about changelog entries
since most PRs don't have a period at the end
2016-12-30 18:41:52 -08:00
JP Simard 2a64f0377b link to GitHub when reporting violations in Danger 2016-12-30 12:08:58 -08:00
JP Simard 29aa8e4f65 make function to extract non-empty lines 2016-12-30 12:08:09 -08:00
JP Simard 5e1686042a add more sectional comments to osscheck code 2016-12-30 12:06:49 -08:00
JP Simard ec15a6706f add Moya and Aerial to osscheck 2016-12-30 12:06:10 -08:00
JP Simard d4b4b007b9 perform OSSCheck in Dangerfile 2016-12-24 15:11:16 -08:00