codeclimate-duplication icon indicating copy to clipboard operation
codeclimate-duplication copied to clipboard

Javascript Code in vuejs Components

Open kpilard opened this issue 6 years ago • 7 comments

Hello,

Is it possible to use the duplication engine on JS-Code in *.vue files? https://vuejs.org/v2/guide/single-file-components.html

kpilard avatar May 30 '18 08:05 kpilard

@kpilard Thank you for writing. Currently, we don't support duplication on *.vue files but I'll make sure this feedback is added to our board for consideration (@davehenton can you help me with this? thanks!) . In the meantime, you could use ESLint plugin by adding a .codeclimate.yml and including the *.vue extension

eslint:
  enabled: true
  config:
    extensions:
    - .vue

Thank you again and if you have any other question feel free to reach out our support team.

ale7714 avatar Jun 03 '18 15:06 ale7714

What is current state of this? Vue is getting pretty popular :) @ale7714 @davehenton

knagode avatar Sep 19 '18 06:09 knagode

Some news ? Is it officially in the roadmap ?

gagagast avatar Sep 22 '20 14:09 gagagast

Any updates on this one?

saharhage avatar Jul 07 '22 07:07 saharhage

Hi @saharhage - thanks for checking in on this! I don't see it on the roadmap, but I'm asking the team to take another look at this.

efueger avatar Jul 07 '22 14:07 efueger

Hello @efueger. Thanks for your reply! I'm facing some issues with connecting my Nuxtjs project to codeclimate. Do you have any idea how can we make a workaround to have a code climate coverage on the .vue files (the script with language ts)? Is there any workaround to do that or it's not implemented at all? Thanks!

saharhage avatar Jul 07 '22 14:07 saharhage

Hi @saharhage - generally, Code Climate checks (and plugins) aren't limited to specific frameworks, but instead consider the languages used in your project.

If you've added your repo to Code Climate and see errors or unexpected issues, send an email to [email protected] with:

  • your repo info (URL)
  • and links to the errors/issues you're seeing

Happy to take a closer look. 👍🏼

efueger avatar Jul 07 '22 14:07 efueger