Closed Kristinita closed 2 years ago
I created a basic example here: https://github.com/sagiegurari/misc-test/tree/grunt-markdown-example
test it out as it works fine and compare it with your implementation.
Type: Reply 💬
My issue isn’t a “question”. (Interesting, why developers often add the “question” label for issues that aren’t questions?)
test it out as it works fine
I run grunt markdownlint --verbose --stack
for your configuration:
D:\SashaForks\misc-test>grunt markdownlint --verbose --stack
Initializing
Command-line options: --verbose, --stack, --gruntfile=D:\SashaForks\misc-test\Gruntfile.js
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "grunt-markdownlint" local Npm module tasks.
Reading D:\SashaForks\misc-test\node_modules\grunt-markdownlint\package.json...OK
Parsing D:\SashaForks\misc-test\node_modules\grunt-markdownlint\package.json...OK
Loading "grunt-markdownlint.js" tasks...OK
+ markdownlint
Loading "linter.js" tasks...OK
+ >> No tasks were registered or unregistered.
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
+ default
Running tasks: markdownlint
Running "markdownlint" task
Running "markdownlint:example1" (markdownlint) task
Verifying property markdownlint.example1 exists in config...OK
Files: README.md
Options: config={"default":true,"line-length":false,"blanks-around-headers":false,"no-duplicate-header":false,"no-inline-html":false}
>> 1 file lint free.
Done.
>> No tasks were registered or unregistered.
still exists in console output.
@sagiegurari, I clearly described what the problem is? Possibly, you misunderstood what the problem is. Should I add something to my issue?
I’ll add that perhaps the problem is that the linter.js
file of grunt-markdownlint is in the tasks
directory, and Grunt defines it as a task. It looks like this file shouldn’t be in the tasks
directory.
Thanks.
that printout is only on verbose. it's not on normal output and not defined as warn/error. ya, i could move it to some sub dir or whatever, but, unless you run with verbose, is there an issue?
@Kristinita bump
1. Summary
Possible grunt-markdownlint bug.
On the stage “Registering Gruntfile tasks” after
I get in console:
I’m not getting it for any of my 50 Grunt plugins.
2. MCVE
This configuration on GitHub, Travis CI build for it.
Gruntfile.coffee
:package.json
:KiraGoddess.md
:The part of the
.travis.yml
:3. Behavior
Travis CI link:
As you can see in this console output, Grunt generate unexpected message solely after grunt-markdownlint
linter.js
loading. After registering and loading other Grunt plugins, Grunt doesn’t generate this message.4. Environment
Operating system:
Node.js v18.9.0
grunt-cli v1.3.2, grunt v1.5.3
grunt-markdownlint 3.1.5
Thanks.