Skip to content

Commit

Permalink
chore: Creating other file validation and organizing code and refacto…
Browse files Browse the repository at this point in the history
…ring best practices
  • Loading branch information
gabriel-logan committed Jul 12, 2024
1 parent 97227b7 commit 2db50d4
Show file tree
Hide file tree
Showing 25 changed files with 565 additions and 128 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/java-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build with Maven
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/sonarlint/issuestore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
Empty file.
6 changes: 0 additions & 6 deletions .idea/sonarlint/securityhotspotstore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 47 additions & 44 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ private CreditCardValidator() {
throw new IllegalStateException("Utility class");
}

// ##############################################################################################################
// ##############################################################################################################
// ##############################################################################################################
// isCreditCardValid

/**
* Validates a credit card number.
*
Expand Down Expand Up @@ -48,6 +53,11 @@ public static boolean isCreditCardValid(String creditCard) {
return sum % 10 == 0;
}

// ##############################################################################################################
// ##############################################################################################################
// ##############################################################################################################
// identifyFlagCard

/**
* Identifies the flag of a credit card based on its number.
*
Expand Down
Loading

0 comments on commit 2db50d4

Please sign in to comment.