-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-23769][Core]Remove comments that unnecessarily disable Scalastyle check #20880
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
Conversation
|
Minor change does't need a JIRA though. Mind checking if there are similar instances while we are here? |
|
Also, I believe more correct way is |
|
@HyukjinKwon I just ran As I mentioned in the JIRA issue, we looked at all the instances of But we found another instance where it would be very easy to fix (even for beginners like us), so I'll create a PR for that as well. Since you said a minor change doesn't need a JIRA, I'll create the pull request only. |
|
That's fine. Let's invlove another insrance here. |
|
ok to teat |
|
@HyukjinKwon I had actually already created a separate branch for the other fix and was already creating a separate PR for it. So the other fix is in #20882. I also think that the typo in your previous comment may have caused Jenkins to miss the keyword(s) to correctly detect it. |
|
ok to test |
|
let's include that change here. |
OK, I'll push the change in a few minutes. Should I close the other PR then? |
|
yea please |
|
Just pushed another fix for Scalastyle code checking. It just replaces a URL with a shortened version so we don't violate the max line length. Also tested with @HyukjinKwon Thanks for your help with this. I really appreciate it. |
|
Test build #88526 has finished for PR 20880 at commit
|
|
Test build #88525 has finished for PR 20880 at commit
|
jiangxb1987
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…tyle check ## What changes were proposed in this pull request? We re-enabled the Scalastyle checker on a line of code. It was previously disabled, but it does not violate any of the rules. So there's no reason to disable the Scalastyle checker here. ## How was this patch tested? We tested this by running `build/mvn scalastyle:check` after removing the comments that disable the checker. This check passed with no errors or warnings for Spark Core ``` [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Spark Project Core 2.4.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- scalastyle-maven-plugin:1.0.0:check (default-cli) spark-core_2.11 --- Saving to outputFile=<path to local dir>/spark/core/target/scalastyle-output.xml Processed 485 file(s) Found 0 errors Found 0 warnings Found 0 infos ``` We did not run all tests (with `dev/run-tests`) since this Scalastyle check seemed sufficient. ## Co-contributors: chialun-yeh Hrayo712 vpourquie Author: arucard21 <[email protected]> Closes #20880 from arucard21/scalastyle_util. (cherry picked from commit 6ac4fba) Signed-off-by: hyukjinkwon <[email protected]>
|
Merged to master and branch-2.3. |
…tyle check ## What changes were proposed in this pull request? We re-enabled the Scalastyle checker on a line of code. It was previously disabled, but it does not violate any of the rules. So there's no reason to disable the Scalastyle checker here. ## How was this patch tested? We tested this by running `build/mvn scalastyle:check` after removing the comments that disable the checker. This check passed with no errors or warnings for Spark Core ``` [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Spark Project Core 2.4.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- scalastyle-maven-plugin:1.0.0:check (default-cli) spark-core_2.11 --- Saving to outputFile=<path to local dir>/spark/core/target/scalastyle-output.xml Processed 485 file(s) Found 0 errors Found 0 warnings Found 0 infos ``` We did not run all tests (with `dev/run-tests`) since this Scalastyle check seemed sufficient. ## Co-contributors: chialun-yeh Hrayo712 vpourquie Author: arucard21 <[email protected]> Closes apache#20880 from arucard21/scalastyle_util. (cherry picked from commit 6ac4fba) Signed-off-by: hyukjinkwon <[email protected]>
What changes were proposed in this pull request?
We re-enabled the Scalastyle checker on a line of code. It was previously disabled, but it does not violate any of the rules. So there's no reason to disable the Scalastyle checker here.
How was this patch tested?
We tested this by running
build/mvn scalastyle:checkafter removing the comments that disable the checker. This check passed with no errors or warnings for Spark CoreWe did not run all tests (with
dev/run-tests) since this Scalastyle check seemed sufficient.Co-contributors:
@chialun-yeh
@Hrayo712
@vpourquie