Git Product home page Git Product logo

spellchecker's Introduction

SpellChecker for Xcode

GitHub Actions LICENSE Tag

screenshot

Recommended environment

  • Swift 5.1
  • Xcode 11.2.1
  • macOS 10.15

Install

Mint

mint install fromkk/[email protected] SpellChecker

Manual

git clone [email protected]:fromkk/SpellChecker.git
cd ./SpellChecker
make install

Usage

Write to your Run script like a below code.

if ! [ -f /usr/local/bin/SpellChecker ]; then
    echo "SpellChecker not installed"
    exit 0
fi

git_path=/usr/local/bin/git
files=$($git_path diff --diff-filter=d --name-only -- "*.swift" "*.h" "*.m")
if (test -z $files) || (test ${#files[@]} -eq 0); then
  echo "no files changed."
  exit 0
fi

options=""
for file in $files
do
  options="$options $SRCROOT/$file"
done

/usr/local/bin/SpellChecker -- $options

Whitelist

If you want ignore some warnings, make YAML file to your directory.
For example:

whiteList:
  - kazuya
  - ueoka
  - fromkk

And set --yml options.

/usr/local/bin/SpellChecker --yml $SRCROOT/swift-keywords.yaml -- $options

spellchecker's People

Contributors

fromkk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spellchecker's Issues

Add Mint support

Package.swiftproducts を追加することで、Mintに対応できます。
参考: Add mint support · mac-cain13/R.swift@3158a81

let package = Package(
    name: "SpellChecker",
+   products: [
+       .executable(name: "SpellChecker", targets: ["SpellChecker"])
+   ],
    dependencies: [

上記の対応により、Mintで使えるようになることを確認できました。
しかし、Mintを経由すると -yml オプションで指定したパスが取得できなくなります。

+       let ymlPath = Commands.value(of: "yml")
+       print("ymlPath: \(String(describing: ymlPath))")
+       if let ymlPath = ymlPath {
-       if let ymlPath = Commands.value(of: "yml") {
$ mint run uhooi/[email protected] SpellChecker -yml {YAMLファイル} -- {対象ファイル}
…
ymlPath: nil

少し調査しただけでは解決できなかったので、PRでなくIssueとして報告します。
GitHub上のOSSにIssueを記載したことがないため、暗黙的なルールに反していたらご指摘いただけると嬉しいです。
よろしくお願いします。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.