From 9496382b63a9d8045ecaaa692ac6a7a55016f3fb Mon Sep 17 00:00:00 2001 From: Alan Zhao Date: Fri, 9 Dec 2022 11:21:54 -0800 Subject: [PATCH] Add rule for the ninja build tool --- README.md | 1 + tests/rules/test_ninja.py | 14 ++++++++++++++ thefuck/rules/ninja.py | 8 ++++++++ 3 files changed, 23 insertions(+) create mode 100644 tests/rules/test_ninja.py create mode 100644 thefuck/rules/ninja.py diff --git a/README.md b/README.md index 3ea406f..0cbfdba 100644 --- a/README.md +++ b/README.md @@ -301,6 +301,7 @@ following rules are enabled by default: * `mkdir_p` – adds `-p` when you try to create a directory without a parent; * `mvn_no_command` – adds `clean package` to `mvn`; * `mvn_unknown_lifecycle_phase` – fixes misspelled life cycle phases with `mvn`; +* `ninja` – fixes wrong targest passed to the `ninja` build tool; * `npm_missing_script` – fixes `npm` custom script name in `npm run-script