GitXplorerGitXplorer
a

danger-swiftlint

public
1 stars
0 forks
2 issues

Commits

List of commits on branch master.
Unverified
6d526df1bdfac360bf2ca570c338a63b8bb402a2

Fix tests that failed after name change

aadamyanalunas committed 8 years ago
Unverified
35d7fe8f3d71eff57b54e5b0b539ddee9f939dae

Change gem name to swift_lint to avoid existing swiftlint collision

aadamyanalunas committed 8 years ago
Unverified
bcc50b1c14d32c06968aec240cf99c0ae42a2dd0

Merge pull request #1 from adamyanalunas/set_version_0.1.0

aadamyanalunas committed 8 years ago
Unverified
85f92988f5bb5d42120d41c1afdb5452a8bc1883

Change version to 0.1.0

aadamyanalunas committed 8 years ago
Unverified
24dff3864730cf5beeb951c816d9d17aca3972cb

Add Travis text matrix

aadamyanalunas committed 8 years ago
Unverified
e445962ed80ed67b235a72e5aecd914f0a402efb

Initial commit of working gem with tests

aadamyanalunas committed 8 years ago

README

The README file for this repository.

swiftlint

Surface your SwiftLint JSON report in pull requests. If no report exists, one will be created using the existing SwiftLint install. Results are displayed in a markdown table.

Run report
# Runs SwiftLint if necessary and processes the report using the default settings
swiftlint.report
Run a report with a specific report file
# Assumes your path starts in the present directory
swiftlint.report 'path/to/report.json'
Run a report, ignoring warnings
swiftlint.enabled_types = [:error]
swiftlint.report
Run a report, defining custom warning emoji
swiftlint.issue_emoji[:warning] = '❓'
swiftlint.report

Attributes

enabled_types - Allows you to set which issue types are displayed. Defaults to [:warning", :error]

issue_emoji - Allows configuration of which emoji is shown for an issue type. Defaults to {:warning: '⚠', :error: '❌'}

Methods

report - Lint an existing report or have one generated. Will fail if swiftlint is not installed. Generates a markdown list of warnings and errors from the JSON report, linking to each issue's line in the PR. Does nothing when there are no valid issues to raise.

swiftlint_installed? - Determine if swiftlint is currently installed in the system paths.