Skip to content

Update intro.mdx to use setFrom() on detekt config#6010

Merged
3flex merged 2 commits into
detekt:mainfrom
mjovanc:main
Apr 18, 2023
Merged

Update intro.mdx to use setFrom() on detekt config#6010
3flex merged 2 commits into
detekt:mainfrom
mjovanc:main

Conversation

@mjovanc

@mjovanc mjovanc commented Apr 18, 2023

Copy link
Copy Markdown
Contributor

Setting the value of files() directly on config is deprecated.

Setting the value of files() directly on config is deprecated.

@3flex 3flex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this - please update to working syntax and we can merge.

Comment thread website/docs/intro.mdx Outdated
detekt {
toolVersion = "[detekt_version]"
config = files("config/detekt/detekt.yml")
config = setFrom(files("config/detekt/detekt.yml"))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
config = setFrom(files("config/detekt/detekt.yml"))
config.setFrom(file("config/detekt/detekt.yml"))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

@codecov

codecov Bot commented Apr 18, 2023

Copy link
Copy Markdown

Codecov Report

Merging #6010 (da0ebe6) into main (bd44c2d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #6010   +/-   ##
=========================================
  Coverage     84.66%   84.66%           
  Complexity     3840     3840           
=========================================
  Files           549      549           
  Lines         13071    13071           
  Branches       2305     2305           
=========================================
  Hits          11066    11066           
  Misses          868      868           
  Partials       1137     1137           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@3flex 3flex merged commit dbf0f4f into detekt:main Apr 18, 2023
@3flex 3flex added this to the 1.23.0 milestone Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants