nhojpatrick/nhojpatrick-hamcrest

View on GitHub

Showing 20 of 49 total issues

Similar blocks of code found in 5 locations. Consider refactoring.
Confirmed

    private static <T> Matcher<T> doBetweenOffsetTime(final OffsetTime after,
                                                      final CompareType afterCompareType,
                                                      final RoundingType afterRoundingType,
                                                      final OffsetTime before,
                                                      final CompareType beforeCompareType,
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 137..168
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 170..201
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 203..234
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 99..130

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 95.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 5 locations. Consider refactoring.
Confirmed

    private static <T> Matcher<T> doBetweenLocalDateTime(final ChronoLocalDateTime after,
                                                         final CompareType afterCompareType,
                                                         final RoundingType afterRoundingType,
                                                         final ChronoLocalDateTime before,
                                                         final CompareType beforeCompareType,
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 170..201
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 203..234
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 99..130
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 132..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 95.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 5 locations. Consider refactoring.
Confirmed

    private static <T> Matcher<T> doBetweenOffsetDateTime(final OffsetDateTime after,
                                                          final CompareType afterCompareType,
                                                          final RoundingType afterRoundingType,
                                                          final OffsetDateTime before,
                                                          final CompareType beforeCompareType,
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 137..168
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 203..234
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 99..130
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 132..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 95.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 5 locations. Consider refactoring.
Confirmed

    private static <T> Matcher<T> doBetweenLocalTime(final LocalTime after,
                                                     final CompareType afterCompareType,
                                                     final RoundingType afterRoundingType,
                                                     final LocalTime before,
                                                     final CompareType beforeCompareType,
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 137..168
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 170..201
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 203..234
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 132..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 95.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 5 locations. Consider refactoring.
Confirmed

    private static <T> Matcher<T> doBetweenZonedDateTime(final ChronoZonedDateTime after,
                                                         final CompareType afterCompareType,
                                                         final RoundingType afterRoundingType,
                                                         final ChronoZonedDateTime before,
                                                         final CompareType beforeCompareType,
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 137..168
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 170..201
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 99..130
datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 132..163

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 95.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Method doBetweenZonedDateTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
Confirmed

    private static <T> Matcher<T> doBetweenZonedDateTime(final ChronoZonedDateTime after,
                                                         final CompareType afterCompareType,
                                                         final RoundingType afterRoundingType,
                                                         final ChronoZonedDateTime before,
                                                         final CompareType beforeCompareType,

    Method betweenLocalTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Confirmed

        public static <T> Matcher<T> betweenLocalTime(final LocalTime after,
                                                      final CompareType afterCompareType,
                                                      final RoundingType afterRoundingType,
                                                      final LocalTime before,
                                                      final CompareType beforeCompareType,

      Method betweenOffsetDateTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Confirmed

          public static <T> Matcher<T> betweenOffsetDateTime(final OffsetDateTime after,
                                                             final CompareType afterCompareType,
                                                             final RoundingType afterRoundingType,
                                                             final OffsetDateTime before,
                                                             final CompareType beforeCompareType,

        Method doBetweenLocalDateTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Confirmed

            private static <T> Matcher<T> doBetweenLocalDateTime(final ChronoLocalDateTime after,
                                                                 final CompareType afterCompareType,
                                                                 final RoundingType afterRoundingType,
                                                                 final ChronoLocalDateTime before,
                                                                 final CompareType beforeCompareType,

          Method betweenLocalDateTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Confirmed

              public static <T> Matcher<T> betweenLocalDateTime(final ChronoLocalDateTime after,
                                                                final CompareType afterCompareType,
                                                                final RoundingType afterRoundingType,
                                                                final ChronoLocalDateTime before,
                                                                final CompareType beforeCompareType,

            Method doBetweenOffsetDateTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Confirmed

                private static <T> Matcher<T> doBetweenOffsetDateTime(final OffsetDateTime after,
                                                                      final CompareType afterCompareType,
                                                                      final RoundingType afterRoundingType,
                                                                      final OffsetDateTime before,
                                                                      final CompareType beforeCompareType,

              Method doBetweenOffsetTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Confirmed

                  private static <T> Matcher<T> doBetweenOffsetTime(final OffsetTime after,
                                                                    final CompareType afterCompareType,
                                                                    final RoundingType afterRoundingType,
                                                                    final OffsetTime before,
                                                                    final CompareType beforeCompareType,

                Method betweenZonedDateTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Confirmed

                    public static <T> Matcher<T> betweenZonedDateTime(final ChronoZonedDateTime after,
                                                                      final CompareType afterCompareType,
                                                                      final RoundingType afterRoundingType,
                                                                      final ChronoZonedDateTime before,
                                                                      final CompareType beforeCompareType,

                  Method betweenOffsetTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Confirmed

                      public static <T> Matcher<T> betweenOffsetTime(final OffsetTime after,
                                                                     final CompareType afterCompareType,
                                                                     final RoundingType afterRoundingType,
                                                                     final OffsetTime before,
                                                                     final CompareType beforeCompareType,

                    Method doBetweenLocalTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Confirmed

                        private static <T> Matcher<T> doBetweenLocalTime(final LocalTime after,
                                                                         final CompareType afterCompareType,
                                                                         final RoundingType afterRoundingType,
                                                                         final LocalTime before,
                                                                         final CompareType beforeCompareType,

                      Similar blocks of code found in 5 locations. Consider refactoring.
                      Confirmed

                          public static <T> Matcher<T> betweenOffsetTime(final OffsetTime after,
                                                                         final CompareType afterCompareType,
                                                                         final RoundingType afterRoundingType,
                                                                         final OffsetTime before,
                                                                         final CompareType beforeCompareType,
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 44..54
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 80..90
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 116..126
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 41..51

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 45.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 5 locations. Consider refactoring.
                      Confirmed

                          public static <T> Matcher<T> betweenZonedDateTime(final ChronoZonedDateTime after,
                                                                            final CompareType afterCompareType,
                                                                            final RoundingType afterRoundingType,
                                                                            final ChronoZonedDateTime before,
                                                                            final CompareType beforeCompareType,
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 44..54
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 80..90
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 41..51
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 78..88

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 45.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 5 locations. Consider refactoring.
                      Confirmed

                          public static <T> Matcher<T> betweenLocalDateTime(final ChronoLocalDateTime after,
                                                                            final CompareType afterCompareType,
                                                                            final RoundingType afterRoundingType,
                                                                            final ChronoLocalDateTime before,
                                                                            final CompareType beforeCompareType,
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 80..90
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 116..126
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 41..51
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 78..88

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 45.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 5 locations. Consider refactoring.
                      Confirmed

                          public static <T> Matcher<T> betweenLocalTime(final LocalTime after,
                                                                        final CompareType afterCompareType,
                                                                        final RoundingType afterRoundingType,
                                                                        final LocalTime before,
                                                                        final CompareType beforeCompareType,
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 44..54
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 80..90
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 116..126
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 78..88

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 45.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 5 locations. Consider refactoring.
                      Confirmed

                          public static <T> Matcher<T> betweenOffsetDateTime(final OffsetDateTime after,
                                                                             final CompareType afterCompareType,
                                                                             final RoundingType afterRoundingType,
                                                                             final OffsetDateTime before,
                                                                             final CompareType beforeCompareType,
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 44..54
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenDateTime.java on lines 116..126
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 41..51
                      datetime/src/main/java/com/github/nhojpatrick/hamcrest/datetime/IsBetweenTime.java on lines 78..88

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 45.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Severity
                      Category
                      Status
                      Source
                      Language