Closed plata closed 4 years ago
@madoar do you think this will work with #1192?
I don't know.
I think it is fine to contain both in the same PR. Do you want to add my changes from #1192 to this PR?
I'm wondering because of
npm ci --no-audit --prefer-offline
Let's keep the changes separated. Nevertheless, if you add the package.json here as well, we can see if it will work (and then merge this PR after the other one).
I never did any changes to a PR of someone else. Do you know how I can push to someone elses branch?
It's just a branch in this repo (not in my fork). Shouldn't be a problem to edit it.
Can we fix the error?
npm ERR! cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again.
It seems to work
But it doesn't show the annotations in #1169 like I would expect.
Is it using the correct eslint configuration file?
I don't know. It's detecting errors but it doesn't show them somehow.
Or it's an error in the node execution?
This is hard to tell. The issue is that I'm not sure where the given output:
##[error]Validation Failed
##[error]Node run failed with exit code 1
is coming from. It could be either eslint or the action. Additionally I don't know what arguments eslint is run with
I don't know. It's here: https://github.com/tinovyatkin/action-eslint/tree/master/src
My best bet is that either we use eslint
somehow unconventional or the developer of the action. I think the action fails at
but I'm not 100\% sure
@tinovyatkin any idea what's happening here?
@plata how should we continue here? Do we want to to continue with the Codacy comments or should we add another service?
Let's go for Codacy.
see https://github.com/marketplace/actions/eslint-runner-action
I hope that this will make it easier for unexperienced users to understand why Codacy fails and adhere to our coding rules