Skip to content

Commit

Permalink
fix(#51): clean for qulice
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Apr 9, 2024
1 parent aa1dda7 commit e1c9598
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2024 Tracehub.git
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package git.tracehub.codereview.action;

import com.jcabi.github.Pull;
Expand All @@ -11,9 +34,12 @@
import org.cactoos.Proc;

/**
* Analysis routine.
*
* @since 0.0.0
*/
@RequiredArgsConstructor

Check warning on line 41 in src/main/java/git/tracehub/codereview/action/AnalysisRoutine.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/git/tracehub/codereview/action/AnalysisRoutine.java#L41

Added line #L41 was not covered by tests
@SuppressWarnings("OOP.LongClassNameCheck")
public final class AnalysisRoutine implements Proc<Pull> {

/**
Expand All @@ -29,6 +55,5 @@ public void exec(final Pull pull) throws Exception {
pull
).value();
Logger.info(Entry.class, "found reviews: %s", reviews);

}

Check warning on line 58 in src/main/java/git/tracehub/codereview/action/AnalysisRoutine.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/git/tracehub/codereview/action/AnalysisRoutine.java#L56-L58

Added lines #L56 - L58 were not covered by tests
}
6 changes: 3 additions & 3 deletions src/main/java/git/tracehub/codereview/action/MinLines.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public final class MinLines implements Scalar<Integer> {
public Integer value() throws Exception {
final int min;
final String input = System.getenv().get("INPUT_MIN_LINES");
if (input != null) {
min = Integer.parseInt(input);
} else {
if (input == null) {
min = MinLines.NOT_PROVIDED;
} else {
min = Integer.parseInt(input);

Check warning on line 47 in src/main/java/git/tracehub/codereview/action/MinLines.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/git/tracehub/codereview/action/MinLines.java#L47

Added line #L47 was not covered by tests
}
return min;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* @since 0.0.0
*/
@RequiredArgsConstructor
@SuppressWarnings("OOP.LongClassNameCheck")
public final class SkipIfTooSmall implements Proc<Pull> {

/**
Expand Down

0 comments on commit e1c9598

Please sign in to comment.