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

Warning: Unknown mode: [object Object] Use --force to continue. #12

Open
akinnee opened this issue Mar 4, 2015 · 7 comments
Open

Warning: Unknown mode: [object Object] Use --force to continue. #12

akinnee opened this issue Mar 4, 2015 · 7 comments

Comments

@akinnee
Copy link

akinnee commented Mar 4, 2015

Getting this:

Running "jscpd:javascript" (jscpd) task
warn: File .cpd.yaml not found in current directory, or it is broken
info: Files search time: duration=21275ms
info: Scaning 464 files for duplicates...
>> Error: Unknown mode: [object Object]
Warning: Unknown mode: [object Object] Use --force to continue.

Here is my config:

grunt.config.set('jscpd', {
        javascript: {
            path: './',
            files: 'app/**/*.js',
            exclude: [
                '**/node_modules/**',
                '**/compiled/**',
                '**/templates/**',
                '**/vendor/**',
                '**/*_compiled.js',
                '**/*Template.js'
            ],
            output: 'tests/_duplicates-report.xml'
        }
    });

And I'm running the command grunt jscpd.

@glispajon
Copy link

I've got the same problem. Seems to be a massive difference in the package npm downloads now compared to the one a week or two ago which is very confusing since there hasn't been any activity in github for a while

@guy-mograbi-at-gigaspaces

+1 me too. same issue

@vikash20186
Copy link

did you guys got any solution to the above problem? I am getting it too :(

@guy-mograbi-at-gigaspaces

nope. and no response. the plugin is simply not working.. I was sure someone would post something.

@guy-mograbi-at-gigaspaces

I found out that .html files might cause the problem.
if I run the plugin on app/scripts - which contains only .js files - everything works great.

update: adding '**/*.html', to exclude configuration resolved the issue for me. - this is no longer an issue for me. I vote to close.

@skyl
Copy link

skyl commented Sep 11, 2015

Agree that adding html causes the problem. But, I want to find duplicates in html, as well. However, I'm using straight jscpd with no grunt/gulp wrapper. So, this is a jscpd issue, not and issue with the grunt plugin here.

@Chris2011
Copy link

I had the same issue and with excluding */.html it worked.

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

No branches or pull requests

6 participants