Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final solution #2107

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions qodana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"

#Specify inspection profile for code analysis
profile:
name: qodana.starter

#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>

#Disable inspections
#exclude:
# - name: <SomeDisabledInspectionId>
# paths:
# - <path/where/not/run/inspection>

projectJDK: 22 #(Applied in CI/CD pipeline)

#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
#bootstrap: sh ./prepare-qodana.sh

#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)

#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-jvm-community:latest
16 changes: 16 additions & 0 deletions src/main/java/core/basesyntax/Bulldozer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package core.basesyntax;

public class Bulldozer extends Machine {

@Override
public void doWork() {
System.out.println("The bulldozer has started working");
}

@Override
public void stopWork() {
System.out.println("Bulldozer has stopped working!");

}

}
14 changes: 14 additions & 0 deletions src/main/java/core/basesyntax/Excavator.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package core.basesyntax;

public class Excavator extends Machine {

@Override
public void doWork() {
System.out.println("Excavator has started working!");
}

@Override
public void stopWork() {
System.out.println("Excavator has finished digging!");
}
}
8 changes: 8 additions & 0 deletions src/main/java/core/basesyntax/Machine.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package core.basesyntax;

public abstract class Machine {

public abstract void doWork();

public abstract void stopWork();
}
12 changes: 12 additions & 0 deletions src/main/java/core/basesyntax/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@

public class MainApp {

public static void main(String[] args) {
Machine truck;
truck = new Truck();
Machine bulldozer = new Bulldozer();
Machine excavator = new Excavator();
Machine[] carPark = {truck, bulldozer, excavator };
for (int i = 0; i < carPark.length; i++) {
carPark[i].doWork();
carPark[i].stopWork();
}
}
}

16 changes: 16 additions & 0 deletions src/main/java/core/basesyntax/Truck.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package core.basesyntax;

public class Truck extends Machine {

@Override
public void doWork() {
System.out.println("Truck has started working!");

}

@Override
public void stopWork() {
System.out.println("Truck has stopped working!");

}
}
143 changes: 143 additions & 0 deletions tatus
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
commit 0c81ce0b461e8c939bd8a60137239a4e107d0b03 (HEAD -> Develop, origin/master, origin/HEAD, origin/Develop, master)
Author: Bohdan Chupika <boroda4436@users.noreply.github.com>
Date: Mon Nov 13 13:02:43 2023 +0200

remove encoding config from checkstyle plugin

commit 57f404cf9e15b11c12c81a0766317a7e4b5c4449
Author: Bohdan Chupika <boroda4436@users.noreply.github.com>
Date: Thu Oct 12 14:39:07 2023 +0300

update checklist.md reference (#1715)

commit 60029bc4a0bd746e76da47cad2b7942614078d70
Author: Bohdan Chupika <boroda4436@users.noreply.github.com>
Date: Mon Sep 25 18:20:05 2023 +0300

change version to JDK 17 in pom.xml (#1675)

commit ea616afcf6501b73aafc673ab4d28eeb844f9579
Author: Mykyta Oleksin <32339836+nacenik@users.noreply.github.com>
Date: Fri May 12 10:15:08 2023 +0300

Update ci.yml to java 17

commit 0dbf4f5600d918d6ab74af75a52982e13283fd37
Author: Liliia Ponomarenko <96740815+liliia-ponomarenko@users.noreply.github.com>
Date: Thu Apr 27 13:12:37 2023 +0300

Create checklist.md

commit 68b23a82742c97bf6f5e18135807f4a8ad155382
Merge: 94f3d3c 2ee36c5
Author: Dasha <maliuk.dasha@gmail.com>
Date: Tue Dec 27 11:15:17 2022 +0200

Merge pull request #1176 from mate-academy/change_class_name_in_readme

commit 2ee36c5ad526f374b70410ed77babc1a5b3c66b6
Author: Dasha <maliuk.dasha@gmail.com>
Date: Tue Dec 27 11:13:49 2022 +0200

changed class name in readme

commit 94f3d3c715cd63c89ae671303b998a480436c7c4
Author: Sofia Diakonova <36365171+Sofasmile@users.noreply.github.com>
Date: Tue Mar 29 08:19:20 2022 +0200

changed task description (#650)

* changed task description

* corrected style

commit 17bec63f99675b384f8e34ca267723f32695db4d
Author: resci <vlad.evdockimov.062@gmail.com>
Date: Tue Nov 23 08:36:08 2021 +0200

Update CI config

commit 95eeb7c950750c9f0be14e3c8fd8bd9271827e4f
Author: resci <vlad.evdockimov.062@gmail.com>
Date: Mon Nov 22 19:36:59 2021 +0200

Migrate from Travis to Github Actions

commit e3a95855cfd1b18a054273423a3a95a3fe772d8f
Author: Bohdan Chupika <boroda4436@users.noreply.github.com>
Date: Wed Jun 16 07:34:24 2021 +0300

Update .travis.yml

commit 93cce817c5474ceadd882e30885b11073ee53a55
Merge: e803478 c8e194e
Author: KseniiaMakarova <59459757+KseniiaMakarova@users.noreply.github.com>
Date: Mon Apr 5 09:51:30 2021 +0300

Merge pull request #257 from mate-academy/fix-spelling-mistake

commit c8e194e146284510b48bc912537a1cb266e09d96
Author: kseniia_makarova <kseniia.makarova.kyiv@gmail.com>
Date: Mon Apr 5 09:31:39 2021 +0300

fixed spelling mistake

commit e803478aa06a87cdb4007740ed0aaf9e2b9807cd
Author: Sofia Diakonova <36365171+Sofasmile@users.noreply.github.com>
Date: Fri Nov 27 14:19:31 2020 +0200

update travis (#141)

* update travis

* removed redundant version

commit 0eb658145075ee2052233459d6813aa9a953a4d7
Author: RomanDubovskyi <58385506+RomanDubovskyi@users.noreply.github.com>
Date: Wed Nov 11 10:45:46 2020 +0200

translated description to end, added link to checklist (#140)

commit 1bd489b5653f690334a482786472f6c6df7d3ad4
Author: RomanDubovskyi <58385506+RomanDubovskyi@users.noreply.github.com>
Date: Mon Aug 3 14:14:25 2020 +0300

Task description refactoring (#138)

* Fixed mistype

commit a185cec108fd820c90a6e7fd89823b75a3414c90
Author: Bohdan Chupika <boroda4436@users.noreply.github.com>
Date: Tue Jul 28 17:03:59 2020 +0300

Update README.md

commit e08f50247c6f3897f7f7e1750e85af8890cc0e23
Author: Bohdan Chupika <boroda4436@users.noreply.github.com>
Date: Tue Jul 28 17:03:26 2020 +0300

Update README.md

commit a98e3e858037a8308c5bcd412036d30150509d46
Author: Sofia Diakonova <36365171+Sofasmile@users.noreply.github.com>
Date: Thu Mar 26 11:59:08 2020 +0200

Update pom.xml

commit 514027b37552bc0dda1e74feae91fa62e3dee0dc
Author: Bohdan Chupika <boroda4436@users.noreply.github.com>
Date: Mon Oct 28 16:46:33 2019 +0200

Update pom.xml

commit 0970691b6cf93d2b40aea908eb772a97465b3bd0
Author: Bohdan Chupika <chupika.bohdan@ukr.net>
Date: Mon Oct 28 16:38:48 2019 +0200

added hw instructions

commit c6c4d4450d0ba499b1ba4c881cf6181499df8ce7
Author: Bohdan Chupika <boroda4436@users.noreply.github.com>
Date: Mon Oct 28 16:33:37 2019 +0200

Initial commit
Loading