Skip to content

Added tasks 357, 363 #112

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

Merged
merged 7 commits into from
Dec 14, 2021
Merged

Added tasks 357, 363 #112

merged 7 commits into from
Dec 14, 2021

Conversation

ThanhNIT
Copy link
Contributor

No description provided.

import java.util.Arrays;

public class Solution {
private int[] M;
Copy link
Owner

Choose a reason for hiding this comment

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

It may be not capital letter

import org.junit.jupiter.api.Test;

class SolutionTest {

Copy link
Owner

Choose a reason for hiding this comment

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

Please remove empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the empty line appear when I run 'gradlew.bat clean spotlessJavaApply test ' command

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
I think we need to add the empty line to pass the check

Copy link
Owner

Choose a reason for hiding this comment

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

Please remove empty line only before @test then format sources

Copy link
Owner

@javadev javadev Dec 14, 2021

Choose a reason for hiding this comment

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

the empty line appear when I run 'gradlew.bat clean spotlessJavaApply test ' command

I see other tests without empty line.

class SolutionTest {

@Test
void testCountNumbersWithUniqueDigits() {
Copy link
Owner

Choose a reason for hiding this comment

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

Please rename method without test

class SolutionTest {

@Test
void testMaxSumSubMatrix() {
Copy link
Owner

Choose a reason for hiding this comment

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

Please rename method without test

@javadev
Copy link
Owner

javadev commented Dec 14, 2021

Please format sources before commit.

@javadev
Copy link
Owner

javadev commented Dec 14, 2021

Screenshot_20211214-032451

@javadev
Copy link
Owner

javadev commented Dec 14, 2021

Screenshot_20211214-032554

@javadev
Copy link
Owner

javadev commented Dec 14, 2021

I see @test without empty line.
Screenshot_20211214-033104

@javadev
Copy link
Owner

javadev commented Dec 14, 2021

Please remove empty line market yellow color.
Screenshot_20211214-033336

@ThanhNIT
Copy link
Contributor Author

Please remove empty line market yellow color. Screenshot_20211214-033336

It appear when I run command "gradlew.bat clean spotlessJavaApply test --info". if remove we will not pass the checks

@@ -93,28 +94,28 @@ private int maxSumSubArray(int[] a, int k) {
}

public int maxSumSubMatrix(int[][] matrix, int k) {
int m = matrix.length;
int n = m == 0 ? 0 : matrix[0].length;
int x = matrix.length;
Copy link
Owner

Choose a reason for hiding this comment

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

Better name variables localM and localN

@javadev
Copy link
Owner

javadev commented Dec 14, 2021

Please remove this line.
Screenshot_20211214-033953

@javadev
Copy link
Owner

javadev commented Dec 14, 2021

Ok, let's leave it.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

78.3% 78.3% Coverage
0.0% 0.0% Duplication

@javadev
Copy link
Owner

javadev commented Dec 14, 2021

LGTM

@javadev javadev merged commit dad4db8 into javadev:main Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants