Skip to main content

A tool that runs lint focusing only on the latest changes in Git.

Project description

BracketDot

What is this ?

A tool that runs lint focusing only on the latest changes in Git.

The supported lint is as follows.

  • Swift
    • Spell checker
    • Static analytics by SwiftLint
  • Objective-C
    • Warnings by xcodebuild
    • Static analytics by OCLint

How to start ?

Requires Python 3.6 or higher

Install by using pip.

pip install bracketdot

Check Swift codes

Install SwiftLint.

brew install swiftlint

Move directory to your swift project which you want to analyze and run the following command.

cd ${Swift Project Directory}
difflint-swift --last

You can get analytics results in ./difflint_report.json.

Check Objective-C codes

Install Command Line Tools from Apple Developer site.

Install OCLint and xcpretty.

brew tap oclint/formulae
brew install oclint
gem install xcpretty

Move directory to your Objective-C project which you want to analyze and run the following command.

cd ${Objective-C Project Directory}
difflint-objc --last --project Project.xcodeproj --target Target --config Debug

You can get analytics results in ./difflint_report.json.

Fix legacy Objective-C notation

This feature is currently under development and should not be used by non-developers.

Move directory to your Objective-C project which you want to analyze and run the following command.

cd ${Objective-C Project Directory}
bracket-dot

Objective-C files will be converted as follows.

Before:

String *title = [[self sharedInstance] generateTitle];

After:

String *title = self.sharedInstance.generateTitle;

How to develop ?

Clone this repository to your local, and execute the following command.

cd ${Bracket Dot Directory}
pip install -e '.[dev]'

You can debug by using launch configuration for VSCode.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

bracketdot-1.0.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file bracketdot-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: bracketdot-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for bracketdot-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37c9549eb50394d565fe856d53a6c5374364a92ed5c7ab0f1d25cbb539cdf8e9
MD5 202bb95c92df2dd6d3baa232b275b559
BLAKE2b-256 af8f29eb7a8a38b45af25d9ff82733e19dd675cbc66860622123f158566c941c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page