Giter Site home page Giter Site logo

Comments (5)

azu avatar azu commented on June 8, 2024 1

This will be fixed in https://github.com/textlint/textlint/releases/tag/v13.1.1

Please check it!

from textlint.

azu avatar azu commented on June 8, 2024

$ npx textlint --rule no-todo ./**/*.md

It should be

$ npx textlint --rule no-todo "./**/*.md"

This glob is expanded by your shell.

from textlint.

frozenbonito avatar frozenbonito commented on June 8, 2024

Sorry, I made a mistake.

However, running the following command does not work as expected.

$ npx textlint --rule no-todo --debug "./**/*.md"
  textlint:cli textlint --version: 13.1.0 +0ms
  textlint:cli Running on files, stdin-filename: undefined +1ms
  textlint:loader:TextlintrcLoader loadTextlintrc failed: { ok: false, error: { message: 'textlint config is not found', errors: [ Error: textlint config is not found  textlint require .textlintrc config file. The config file define the use of rules. at loadRawConfig (/home/frozenbonito/textlint-repro/node_modules/@textlint/config-loader/lib/src/config-loader.js:120:25) at loadConfig (/home/frozenbonito/textlint-repro/node_modules/@textlint/config-loader/lib/src/config-loader.js:71:55) at loadTextlintrc (/home/frozenbonito/textlint-repro/node_modules/textlint/lib/src/loader/TextlintrcLoader.js:36:57) at loadDescriptor (/home/frozenbonito/textlint-repro/node_modules/textlint/lib/src/cli.js:26:55) at async Object.executeWithOptions (/home/frozenbonito/textlint-repro/node_modules/textlint/lib/src/cli.js:106:28) ] } } +0ms
  textlint:find-util search patterns: [ '**/*.md' ] +0ms
  textlint:find-util search ignore patterns: [ '**/.git/**', '**/node_modules/**' ] +0ms
  textlint:createTextlint Process files [ '/home/frozenbonito/textlint-repro/file.md' ] +0ms
  textlint:createTextlint No Process files that are un-support extensions: [] +0ms
  textlint:kernel used plugin {"pluginId":"@textlint/textlint-plugin-markdown","availableExtensions":[".txt",".text",".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mkdown",".ron"]} +0ms
  textlint:kernel process file /home/frozenbonito/textlint-repro/file.md +9ms
  textlint:core-task no-todo report {"message":"Found TODO: '- [ ] Write usage instructions'","index":2} +0ms
  textlint:cli lint results: [{"messages":[{"type":"lint","ruleId":"no-todo","message":"Found TODO: '- [ ] Write usage instructions'","index":13,"line":3,"column":3,"range":[13,14],"loc":{"start":{"line":3,"column":3},"end":{"line":3,"column":4}},"severity":2}],"filePath":"/home/frozenbonito/textlint-repro/file.md"}] +30ms
  textlint:@textlint/linter-formatter formatterName: stylish +0ms

/home/frozenbonito/textlint-repro/file.md
  3:3  error  Found TODO: '- [ ] Write usage instructions'  no-todo

✖ 1 problem (1 error, 0 warnings)

from textlint.

azu avatar azu commented on June 8, 2024

Thanks for details.

  textlint:find-util search ignore patterns: [ '**/.git/**', '**/node_modules/**' ] +0ms

It looks like textlint does not reconized ignore file.
It may be regression on textlint v13.

const linter = createLinter({
cache: cliOptions.cache,
cacheLocation: cliOptions.cacheLocation,
quiet: cliOptions.quiet,
descriptor
});

ignorePath is missing.

from textlint.

frozenbonito avatar frozenbonito commented on June 8, 2024

Thank you for your fix!

from textlint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.