Skip to content
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

Add Scala 2.13 support #353

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

cddude229
Copy link
Contributor

+ test passes for all versions. Each commit could be merged by itself (i.e. + test passes for all previous versions.)

Chris Dessonville added 9 commits December 30, 2019 09:20
This is the latest version of 3.0.X to support 2.13.

Source: https://mvnrepository.com/artifact/org.scalatest/scalatest

NOTE: I did not go to 3.1.0 because it required further changes to dependencies.  This minimizes risk.
Scalatest 3.0.8 deprecated this package.
JavaConversions was removed in 2.13.
This is removed in 2.13 and doesn't appear used in any other builds
Apparently in 2.13 ListBuffer are no longer Seq.  Given that they rewrote the collections library, this doesn't surprise me.
Example error:
[error] /Users/chris/git/github/scalastyle/scalastyle/src/main/scala/org/scalastyle/scalariform/ProcedureDeclarationChecker.scala:24: `Unit` companion object is not allowed in source; instead, use `()` for the unit value
[error]   protected def matchParameters() = Unit
[error]
Removed in 2.13.  JavaConverters works well though
@codecov-io
Copy link

codecov-io commented Dec 30, 2019

Codecov Report

Merging #353 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #353   +/-   ##
=====================================
  Coverage       0%     0%           
=====================================
  Files          62     62           
  Lines        1495   1497    +2     
  Branches      146    152    +6     
=====================================
- Misses       1495   1497    +2
Impacted Files Coverage Δ
...alastyle/scalariform/SpaceAroundTokenChecker.scala 0% <ø> (ø) ⬆️
...g/scalastyle/file/WhitespaceEndOfLineChecker.scala 0% <ø> (ø) ⬆️
...la/org/scalastyle/file/FileLineLengthChecker.scala 0% <ø> (ø) ⬆️
...ain/scala/org/scalastyle/file/FileTabChecker.scala 0% <ø> (ø) ⬆️
...la/org/scalastyle/scalariform/ImportsChecker.scala 0% <0%> (ø) ⬆️
src/main/scala/org/scalastyle/Output.scala 0% <0%> (ø) ⬆️
...tyle/scalariform/ProcedureDeclarationChecker.scala 0% <0%> (ø) ⬆️
src/main/scala/org/scalastyle/Directory.scala 0% <0%> (ø) ⬆️
src/main/scala/org/scalastyle/Checker.scala 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec14399...52917e6. Read the comment docs.

@mwz
Copy link

mwz commented Dec 31, 2019

Thanks for making it work for 2.13!

I'm afraid though it's quite unlikely you will get these changes merged and released since this project hasn't been maintained for a long time now - see #327.

You're probably more likely to get this released by opening this PR against @BardurArantsson's fork here, although I'm not sure if he's willing to maintain it or his fork was just a one off to make a more recent release for himself (there hasn't been any other activity in that fork since Sept).

@cddude229
Copy link
Contributor Author

@mwz Unfortunately aware (many of the open PRs and issues are my coworkers.) This was mostly a hopeful PR. 🤞 Likely what we'll do is fork this and maintain it ourselves publicly (I'll post a link if/when that happens), or we'll switch to another tool for the same. The good news is this isn't a time-pressing issue for us right now.

@mwz mwz mentioned this pull request Jan 5, 2020
@mwz
Copy link

mwz commented Jan 5, 2020

Hey @cddude229, I've pulled your changes into my fork and made a release.
See the following thread for more details #327 (comment).

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.

None yet

3 participants