From 6d8320ec3468b55a7aa31bad3689abc6aba43443 Mon Sep 17 00:00:00 2001 From: Namig Gadirov Date: Wed, 30 Jul 2025 16:18:13 +0400 Subject: [PATCH] car added --- .../java/com/coderabbit/app/calculator/Car.kt | 11 ++ .../com/coderabbit/app/calculator/CarTest.kt | 13 ++ .../coderabbit/app/calculator/CustomTest.kt | 3 + coderabbit.yaml | 169 ------------------ 4 files changed, 27 insertions(+), 169 deletions(-) create mode 100644 app/src/main/java/com/coderabbit/app/calculator/Car.kt create mode 100644 app/src/test/java/com/coderabbit/app/calculator/CarTest.kt create mode 100644 app/src/test/java/com/coderabbit/app/calculator/CustomTest.kt delete mode 100644 coderabbit.yaml diff --git a/app/src/main/java/com/coderabbit/app/calculator/Car.kt b/app/src/main/java/com/coderabbit/app/calculator/Car.kt new file mode 100644 index 0000000..c40533d --- /dev/null +++ b/app/src/main/java/com/coderabbit/app/calculator/Car.kt @@ -0,0 +1,11 @@ +package com.coderabbit.app.calculator + +class Car { + fun start(isElectric: Boolean): Boolean { + return if (isElectric) { + return true + } else { + throw Exception() + } + } +} \ No newline at end of file diff --git a/app/src/test/java/com/coderabbit/app/calculator/CarTest.kt b/app/src/test/java/com/coderabbit/app/calculator/CarTest.kt new file mode 100644 index 0000000..e63a0b0 --- /dev/null +++ b/app/src/test/java/com/coderabbit/app/calculator/CarTest.kt @@ -0,0 +1,13 @@ +package com.coderabbit.app.calculator + +import junit.framework.TestCase.assertTrue +import org.junit.Test + +class CarTest { + + @Test + fun testCar() { + val car = Car() + assertTrue(car.start(true)) + } +} \ No newline at end of file diff --git a/app/src/test/java/com/coderabbit/app/calculator/CustomTest.kt b/app/src/test/java/com/coderabbit/app/calculator/CustomTest.kt new file mode 100644 index 0000000..bc967f8 --- /dev/null +++ b/app/src/test/java/com/coderabbit/app/calculator/CustomTest.kt @@ -0,0 +1,3 @@ +package com.coderabbit.app.calculator + +annotation class CustomTest() diff --git a/coderabbit.yaml b/coderabbit.yaml deleted file mode 100644 index ecd6942..0000000 --- a/coderabbit.yaml +++ /dev/null @@ -1,169 +0,0 @@ -language: en-US -tone_instructions: "" -early_access: false -enable_free_tier: true -reviews: - profile: chill - request_changes_workflow: false - high_level_summary: true - high_level_summary_placeholder: "@coderabbitai summary" - high_level_summary_in_walkthrough: false - auto_title_placeholder: "@coderabbitai" - auto_title_instructions: "" - review_status: true - commit_status: true - fail_commit_status: false - collapse_walkthrough: false - changed_files_summary: true - sequence_diagrams: true - assess_linked_issues: true - related_issues: true - related_prs: true - suggested_labels: true - auto_apply_labels: false - suggested_reviewers: true - auto_assign_reviewers: false - poem: false - path_instructions: - - path: "**/test/**" - instructions: | - - function names should follow naming rules like given (optional) data when (required) condition then(required) result - - - labeling_instructions: - - label: "" - instructions: "" - abort_on_close: true - disable_cache: false - auto_review: - enabled: true - auto_incremental_review: true - ignore_title_keywords: [] - labels: [] - drafts: false - base_branches: [] - finishing_touches: - docstrings: - enabled: true - unit_tests: - enabled: true - tools: - ast-grep: - rule_dirs: [] - util_dirs: [] - essential_rules: true - packages: [] - shellcheck: - enabled: true - ruff: - enabled: true - markdownlint: - enabled: true - github-checks: - enabled: true - timeout_ms: 90000 - languagetool: - enabled: true - enabled_rules: [] - disabled_rules: [] - enabled_categories: [] - disabled_categories: [] - enabled_only: false - level: default - biome: - enabled: true - hadolint: - enabled: true - swiftlint: - enabled: true - config_file: "" - phpstan: - enabled: true - level: default - golangci-lint: - enabled: true - config_file: "" - yamllint: - enabled: true - gitleaks: - enabled: true - checkov: - enabled: true - detekt: - enabled: true - config_file: "" - eslint: - enabled: true - flake8: - enabled: true - rubocop: - enabled: true - buf: - enabled: true - regal: - enabled: true - actionlint: - enabled: true - pmd: - enabled: true - config_file: "" - phpmd: - enabled: true - phpcs: - enabled: true - cppcheck: - enabled: true - semgrep: - enabled: true - config_file: "" - circleci: - enabled: true - clippy: - enabled: true - sqlfluff: - enabled: true - prismaLint: - enabled: true - pylint: - enabled: true - oxc: - enabled: true - shopifyThemeCheck: - enabled: true - luacheck: - enabled: true - brakeman: - enabled: true - dotenvLint: - enabled: true - htmlhint: - enabled: true - checkmake: - enabled: true -chat: - auto_reply: true - integrations: - jira: - usage: auto - linear: - usage: auto -knowledge_base: - opt_out: false - web_search: - enabled: true - code_guidelines: - enabled: true - filePatterns: - - .github/copilot-instructions.md - learnings: - scope: auto - issues: - scope: auto - jira: - usage: auto - project_keys: [] - linear: - usage: auto - team_keys: [] - pull_requests: - scope: auto \ No newline at end of file