commit | 238f9f35fc1eff96c71641c29ab231e0d69f62fc | [log] [tgz] |
---|---|---|
author | Chiang Fong Lee <myself@cflee.net> | Sun May 12 17:14:34 2024 +0800 |
committer | GitHub <noreply@github.com> | Sun May 12 11:14:34 2024 +0200 |
tree | 85f8aa82f345e823f09a68ead36bcdc849b3d272 | |
parent | 605b5e7e390e2ceeb6bf544a65288268dcf96d9e [diff] |
Fix check for spacing around operator for binary operators inside unary expression (#2653) For example an expression wrapped in `!(<some-binary-expression>)` should check/fix spacing around the operator in the inner binary expression. Fixes #2652
.editorconfig
supportplain
, json
, html
and checkstyle
Follow steps below for a quick start with latest ktlint release.
Step 1: Install with brew
brew install ktlint
See download and verification from GitHub or other package managers for alternative ways of installing ktlint. Or, use one of the integrations like maven and gradle plugins.
Step 2: Lint and format your code
All files with extension .kt
and .kts
in the current directory and below will be scanned. Problems will be fixed automatically when possible.
ktlint --format # or ktlint -F
See cli usage for a more extensive description on using ktlint.
User guide
This project is not affiliated with nor endorsed by JetBrains.
All code, unless specified otherwise, is licensed under the MIT license.
Copyright (c) 2019 Pinterest, Inc.
Copyright (c) 2016-2019 Stanley Shyiko.