Skip to content
Closed
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
46 changes: 46 additions & 0 deletions src/Main.java
Copy link
Contributor

@iamwatchdogs iamwatchdogs Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Leszek186, I went thought your files and I found that you're placing your project/source-code file right on the root directory/folder i.e., src/Main.java.

You have to place all of your project-files/source-code within a directory/folder that describes your work such as Task-management-application/src/Main.java.

Please place all your project-files/source-code as mentioned in the CONTRIBUTING.md.

Translation/Tłumaczenie

Cześć @Leszek186, przejrzałem Twoje pliki i odkryłem, że umieszczasz plik projektu/kodu źródłowego bezpośrednio w katalogu/folderze głównym, tj. src/Main.java.

Musisz umieścić wszystkie pliki projektu/kod-źródłowy w katalogu/folderze opisującym twoją pracę, np. Task-management-application/src/Main.java.

Umieść wszystkie pliki projektu/kod źródłowy zgodnie z opisem w CONTRIBUTING.md.

Treść jest tłumaczona przez tłumacz Google

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* @(#)<main.Java.java <project-version> <2024/10/30>
*
* <Task management application>
*
* Built using <IntelliJ> IDE Version: <2023.2.5>
* OpenJDK Runtime Environment <OpenJDK>-<17.0.9>
*
*/
Comment on lines +1 to +9
Copy link
Contributor

@iamwatchdogs iamwatchdogs Oct 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there's been an misunderstanding of the comments specified in the CONTRIBUTING.md. But you did a great job in write as recommended way. Here's are the few suggested changes that you need to make to make this alright.

Translation/Tłumaczenie

Uważam, że doszło do nieporozumienia w komentarzach podanych w pliku CONTRIBUTING.md. Ale wykonałeś świetną robotę, pisząc zgodnie z zaleceniami. Oto kilka sugerowanych zmian, które musisz wprowadzić, aby wszystko było w porządku.

Przetłumaczone przez Tłumacz Google

Suggested change
/*
* @(#)<main.Java.java <project-version> <2024/10/30>
*
* <Task management application>
*
* Built using <IntelliJ> IDE Version: <2023.2.5>
* OpenJDK Runtime Environment <OpenJDK>-<17.0.9>
*
*/
/*
* @(#)Main.java 1.0.0 2024/10/30
*
* Task management application
*
* Built using IntelliJ IDE Version: 2023.2.5
* OpenJDK Runtime Environment OpenJDK-17.0.9
*
*/


// Remaining code
import java.util.Scanner;

public class Main {

Check warning on line 14 in src/Main.java

View workflow job for this annotation

GitHub Actions / java-linter

[reviewdog] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./src/Main.java:14:1: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck)
// Definiowanie klasy
public static class Pracownik {

Check warning on line 16 in src/Main.java

View workflow job for this annotation

GitHub Actions / java-linter

[reviewdog] reported by reviewdog 🐶 'class def modifier' has incorrect indentation level 4, expected level should be 2. Raw Output: /github/workspace/./src/Main.java:16:5: warning: 'class def modifier' has incorrect indentation level 4, expected level should be 2. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)

Check warning on line 16 in src/Main.java

View workflow job for this annotation

GitHub Actions / java-linter

[reviewdog] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./src/Main.java:16:5: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck)
// Atrybuty
String imie;

Check warning on line 18 in src/Main.java

View workflow job for this annotation

GitHub Actions / java-linter

[reviewdog] reported by reviewdog 🐶 'member def type' has incorrect indentation level 8, expected level should be 4. Raw Output: /github/workspace/./src/Main.java:18:9: warning: 'member def type' has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
String nazwisko;

Check warning on line 19 in src/Main.java

View workflow job for this annotation

GitHub Actions / java-linter

[reviewdog] reported by reviewdog 🐶 'member def type' has incorrect indentation level 8, expected level should be 4. Raw Output: /github/workspace/./src/Main.java:19:9: warning: 'member def type' has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
String stanowisko;

Check warning on line 20 in src/Main.java

View workflow job for this annotation

GitHub Actions / java-linter

[reviewdog] reported by reviewdog 🐶 'member def type' has incorrect indentation level 8, expected level should be 4. Raw Output: /github/workspace/./src/Main.java:20:9: warning: 'member def type' has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)

// Metoda
void pracuj() {

Check warning on line 23 in src/Main.java

View workflow job for this annotation

GitHub Actions / java-linter

[reviewdog] reported by reviewdog 🐶 'method def modifier' has incorrect indentation level 8, expected level should be 4. Raw Output: /github/workspace/./src/Main.java:23:9: warning: 'method def modifier' has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
System.out.println(imie + " " + nazwisko + " pracuje na stanowisku " + stanowisko + ".");

Check warning on line 24 in src/Main.java

View workflow job for this annotation

GitHub Actions / java-linter

[reviewdog] reported by reviewdog 🐶 Line is longer than 100 characters (found 101). Raw Output: /github/workspace/./src/Main.java:24:0: warning: Line is longer than 100 characters (found 101). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)

Check warning on line 24 in src/Main.java

View workflow job for this annotation

GitHub Actions / java-linter

[reviewdog] reported by reviewdog 🐶 'method def' child has incorrect indentation level 12, expected level should be 6. Raw Output: /github/workspace/./src/Main.java:24:13: warning: 'method def' child has incorrect indentation level 12, expected level should be 6. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
}

Check warning on line 25 in src/Main.java

View workflow job for this annotation

GitHub Actions / java-linter

[reviewdog] reported by reviewdog 🐶 'method def rcurly' has incorrect indentation level 8, expected level should be 4. Raw Output: /github/workspace/./src/Main.java:25:9: warning: 'method def rcurly' has incorrect indentation level 8, expected level should be 4. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
}

// Użycie klasy
public static void main(String[] args) {
// Tworzenie obiektów (instancji) klasy Pracownik
Pracownik pracus1 = new Pracownik();
pracus1.imie = "Jan";
pracus1.nazwisko = "Kowalski";
pracus1.stanowisko = "Programista";

Pracownik pracus2 = new Pracownik();
pracus2.imie = "Anna";
pracus2.nazwisko = "Nowak";
pracus2.stanowisko = "Tester";

// Wywoływanie metody
pracus1.pracuj(); // "Jan Kowalski pracuje na stanowisku Programista."
pracus2.pracuj(); // "Anna Nowak pracuje na stanowisku Tester."
}
}

Loading