Skip to content

Use File.pathSeparator to split entries in classpath#3084

Merged
schalkms merged 3 commits intodetekt:masterfrom
petertrr:bugfix/classpath-path-separator
Sep 18, 2020
Merged

Use File.pathSeparator to split entries in classpath#3084
schalkms merged 3 commits intodetekt:masterfrom
petertrr:bugfix/classpath-path-separator

Conversation

@petertrr
Copy link
Copy Markdown
Contributor

This is a tiny fix for passing classpath to detekt on windows. I have found pull request where this issue has already been addressed, but I faced another error when passing classpath in a form C:\Users\petertrr\.m2\repository\dependency1;C:\Users\petertrr\.m2\repository\dependency2. Classpath string has been split by : and that produced messages warning: classpath entry points to a non-existent location: C. Usage of File.pathSeparator when splitting classpath string solves the issue and I was able to run detekt on windows successfully.

@orchestr7
Copy link
Copy Markdown

Like it! This should correctly split entries.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 17, 2020

Codecov Report

Merging #3084 into master will increase coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3084      +/-   ##
============================================
+ Coverage     79.26%   79.28%   +0.02%     
- Complexity     2563     2567       +4     
============================================
  Files           432      434       +2     
  Lines          7726     7735       +9     
  Branches       1469     1469              
============================================
+ Hits           6124     6133       +9     
  Misses          816      816              
  Partials        786      786              
Impacted Files Coverage Δ Complexity Δ
...rturbosch/detekt/core/settings/EnvironmentAware.kt 63.15% <0.00%> (ø) 0.00 <0.00> (ø)
...detekt/formatting/wrappers/ArgumentListWrapping.kt 100.00% <0.00%> (ø) 2.00% <0.00%> (?%)
...ch/detekt/formatting/wrappers/AnnotationSpacing.kt 100.00% <0.00%> (ø) 2.00% <0.00%> (?%)
...ab/arturbosch/detekt/formatting/KtLintMultiRule.kt 92.30% <0.00%> (+0.24%) 8.00% <0.00%> (ø%)

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 3d80514...9d50240. Read the comment docs.

Copy link
Copy Markdown
Member

@schalkms schalkms left a comment

Choose a reason for hiding this comment

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

Thanks! That’s a nice addition! 👍

…ettings/EnvironmentAware.kt

Co-authored-by: Nicola Corti <corti.nico@gmail.com>
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.

5 participants