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

Reproduce jsdoc lint error #787

Closed
wants to merge 5 commits into from

Conversation

RonnyTite
Copy link

Related to #719,

to have a better view of the changes i exaplained in the comment i made in #719 (comment)_

@blacelle
Copy link

Reproduction scenartio under macos:

perl -pi -e 's/\r\n|\n|\r/\r\n/g' src/errorToReport/AppToReport.vue

vim -b +'set list' src/errorToReport/AppToReport.vue

<template>^M$
  <div>HELLO WORLD</div>^M$
</template>^M$
^M$
<script>^M$
^M$
export default {^M$
  computed: {^M$
    /**^M$
     * @description TESTSTETSTST^M$
     * @param {string} arg - lorem^M$
     * @return {string} - someDescription^M$
     */^M$
    isForTestingLint (arg) {^M$
      return arg;^M$
    },^M$
  },^M$
};^M$
</script>^M$

npm run lintReport

vim -b +'set list' src/errorToReport/AppToReport.vue

<template>^M$
  <div>HELLO WORLD</div>^M$
</template>^M$
^M$
<script>^M$
^M$
export default {^M$
  computed: {^M$
    /**$
     *^M     * @description TESTSTETSTST^M     * @param {string} arg - lorem^M     * @return {string} - someDescription$
     *$
     * @param arg$
     */^M$
    isForTestingLint (arg) {^M$
      return arg;^M$
    },^M$
  },^M$
};^M$
</script>^M$

-> The javadoc is corrupted.

@blacelle
Copy link

blacelle commented Oct 28, 2021

Magic commands to reproduce the issue (even under MacOs):

git reset --hard
perl -pi -e 's/\r\n|\n|\r/\r\n/g' src/errorToReport/AppToReport.vue
npm run lintReport | less

and custom code in /node_modules/XXX leads to helpful logs.

@brettz9
Copy link
Collaborator

brettz9 commented Feb 20, 2022

Closing as per #719 (comment) . Thanks for the report and helpful info toward identifying the problem!

@brettz9 brettz9 closed this Feb 20, 2022
@blacelle blacelle deleted the reproduce_jsdoc_lint_error branch February 20, 2022 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants