• Stars
    star
    341
  • Rank 123,998 (Top 3 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GitHub Action for SwiftLint

GitHub Action for SwiftLint

This Action executes SwiftLint and generates annotations from SwiftLint Violations.

Usage

An example workflow(.github/workflows/swiftlint.yml) to executing SwiftLint follows:

name: SwiftLint

on:
  pull_request:
    paths:
      - '.github/workflows/swiftlint.yml'
      - '.swiftlint.yml'
      - '**/*.swift'

jobs:
  SwiftLint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: GitHub Action for SwiftLint
        uses: norio-nomura/[email protected]
      - name: GitHub Action for SwiftLint with --strict
        uses: norio-nomura/[email protected]
        with:
          args: --strict
      - name: GitHub Action for SwiftLint (Only files changed in the PR)
        uses: norio-nomura/[email protected]
        env:
          DIFF_BASE: ${{ github.base_ref }}
      - name: GitHub Action for SwiftLint (Different working directory)
        uses: norio-nomura/[email protected]
        env:
          WORKING_DIRECTORY: Source

Secrets

  • Specifying GITHUB_TOKEN to secrets is required to using Check Run APIs for generating annotations from SwiftLint Violations.
  • Since 3.0.0, GITHUB_TOKEN is no longer needed.

Example

Here is an example that actually works. screenshot

Author

Norio Nomura

License

MIT

More Repositories

1

EasySIMBL

EasySIMBL is modified "SIMBL" for OS X 10.7, 10.8, 10.9 or 10.10 supporting sandbox, resume. No installer.
Objective-C
820
star
2

SwiftLintForXcode

a sample of Xcode Extension that runs `swiftlint autocorrect`
Swift
185
star
3

ObjectEncoder

Swift Encoders implementation using `[String: Any]`, `[Any]` or `Any` as payload.
Swift
54
star
4

XCTAssertCrash

Asserts that an expression crashes by using Mach Exception Handler or POSIX Signal Handler.
Swift
49
star
5

iphonetest

Objective-C
49
star
6

Base32

Base32 for Swift
Swift
47
star
7

usernotification

Demonstrate how to post NSUserNotification from CLI(without Application Bundle).
Objective-C
44
star
8

qlplayground

`qlplayground` is a QuickLook plugin for Swift files.
CSS
33
star
9

iphone-filesystembrowser

File System Browser for iPhone
Objective-C
32
star
10

iphone-cameraflow

combine iPhone Camera with Flow
Objective-C
26
star
11

iphone-classbrowser

Class Browser for iPhone Developer
Objective-C
25
star
12

ExtraBuildPhase

ExtraBuildPhase is a plugin for Xcode that was created to run SwiftLint, but is customizable by shell script.
Objective-C
22
star
13

LinuxSupportForXcode

LinuxSupport for Xcode is an Xcode Extension
Swift
21
star
14

iphone-kaleidoscope

a study of iPhone OS 3.0 CALayer.mask
Objective-C
20
star
15

docker-swift

Docker image of Swift for Linux on Ubuntu 16.04
Dockerfile
20
star
16

SimblPluginsForTwitter

*SimblPluginsForTwitter* is bundle of SIMBL plugins for *Twitter for Mac*
Objective-C
19
star
17

OctotreeForSafari

OctotreeForSafari packages buunguyen/octotree into Safari App Extension
JavaScript
18
star
18

docker-sourcekit-builder

Docker image of Swift Toolchain with SourceKit
Shell
17
star
19

SwiftBacktrace

Stack traces for Swift on Mac and Linux using `libunwind`.
Swift
15
star
20

CopyLatLngOnMaps

*CopyLatLngOnMaps* is Share Extension for WebPage detecting Latitude/Longitude from URL and copy it to Clipboard.
Swift
14
star
21

DisplayLinkPlayer

AVPlayerItemVideoOutput+CADisplayLink+AVSampleBufferDisplayLayer
Swift
13
star
22

docker-swiftlint

Docker image of SwiftLint on ubuntu
Dockerfile
12
star
23

PlayNow

Add "Execute in Playground" to Services menu
Swift
11
star
24

PlaygroundMDImporter

A Spotlight Importer for Xcode Playground.
C
11
star
25

SendToAirFlick

Send url to AirFlick
JavaScript
10
star
26

SimblPluginsForEchofon

SIMBL Plugins for Echofon
Objective-C
9
star
27

iphone-tableviewdatasources

iPhone TableViewDatasource
Objective-C
9
star
28

SwiftBenchmark-indexOf

Swift
8
star
29

twttr.media.types.instagram

This project has been merged into twttr.mediaTypes
JavaScript
8
star
30

DisableTwitterEmoji

Safari Extension for replacing Twitter's emoji with native ones.
JavaScript
8
star
31

Unburst

Objective-C
7
star
32

SwiftCompilerDiscordappBot

Swift Compiler Discordapp Bot
Swift
6
star
33

TweetMarkerForEchofon

TweetMarker SIMBL Plugin for Echofon
Objective-C
6
star
34

HMAC

CommonCrypto HMAC wrapper for Swift on OS X and iOS
Swift
6
star
35

restore-windows

Restore windows on launching Atom.
CoffeeScript
6
star
36

SyncTwitterClient

*SyncTwitterClient* is SIMBL plugin which sync timeline positions between *Twitter for Mac* and *Tweetbot for Mac*.
Objective-C
4
star
37

cli_discord_bot

CLI Discord Bot
TypeScript
4
star
38

swift-dev

Managing Swift Repositories
4
star
39

twttr.media.types.dribbble

This project has been merged into twttr.mediaTypes
JavaScript
3
star
40

EchofonByIntent

TweetButton calls Echofon
JavaScript
3
star
41

SpringboardSearchInRomanOnly

*SpringboardSearchInRomanOnly* is SIMBL Plugin which switching input method to Roman when activating *Launchpad* on *Mavericks*.
Objective-C
3
star
42

translation-window

This is discontinued project.
JavaScript
3
star
43

twttr.mediaTypes

Show preview image from some sites on #NewTwitter.
JavaScript
3
star
44

linter-sourcekitten-syntax

Provide syntax information to Swift files using sourcekitten
CoffeeScript
3
star
45

docker-jazzy

Docker image of jazzy on ubuntu 16.04
Dockerfile
3
star
46

swift_discord_bot

Swift Compiler Discord Bot
Dockerfile
2
star
47

SendUstreamToAirFlick

Send Ustream to AirFlick
JavaScript
2
star
48

AbsoluteTimeStringForEchofon

A SIMBL Plugin which change Echofon for Mac display absolute times
Objective-C
2
star
49

UnescapeHTMLSpecialChars

Library to unescape HTML special characters in Swift.
Swift
2
star
50

twttr.media.types.movapic

This project has been merged into twttr.mediaTypes
JavaScript
2
star
51

gh-query-tags

GitHub CLI extension to query the GitHub repository and print out the tags.
Shell
2
star
52

MyTrendsForEchofon

A SIMBL Plugin which change Echofon for Mac trends location as set on twitter.com.
Objective-C
2
star
53

twttr.streams.Stream.highlightItem

This project has been merged into twttr.mediaTypes
JavaScript
1
star
54

TWTR.Widget.translator

Google Translate wrapper for TWTR.Widget
JavaScript
1
star
55

DLSQLite

Use `dlopen()`ed `libsqlite3` in Swift
Swift
1
star
56

norio-nomura.github.io

My GitHub Page
Ruby
1
star
57

twttr.media.types.nicovideo

This project has been merged into twttr.mediaTypes
JavaScript
1
star
58

like.everywhere

facebook's Like everywhere
JavaScript
1
star
59

DeliberateGumroad

Deliberate Gumroad one minute before 'I want this!'. Gumroad での衝動買いを防ぐブラウザエクステンションです。1分間ボタンを非表示にします。
1
star
60

enlarge-flickr-image-on-google-reader

Enlarge Flickr™'s rss feed images on Google Reader™
JavaScript
1
star
61

TweetbotByIntent

Browser Extension TweetButton calls Tweetbot.
JavaScript
1
star
62

embed-youtube-in-google-reader

Embed YouTube™'s rss feed videos in Google Reader™
JavaScript
1
star