jumanjihouse / pre-commit-hooks

git pre-commit hooks that work with http://pre-commit.com/
MIT License
114 stars 52 forks source link

.mdlrc file appears to be ignored #70

Open drjasonharrison opened 4 years ago

drjasonharrison commented 4 years ago

I am trying to tune the settings for markdownlint but can't get the .mdlrc file to be used. This is on Ubuntu 18.04

I have put into the top of my git repository the file .mdlrc with contents:

verbose true
exclude_rule 'MD004'
exclude_rule 'MD005'
exclude_rule 'MD007'
exclude_rule 'MD012'
exclude_rule 'MD013'
exclude_rule 'MD019'
exclude_rule 'MD033'
exclude_rule 'MD034'
exclude_rule 'MD046'

the verbose setting definitely has an effect on the output of mdl but I cannot get the exclude_rule to work.

Also it appears that I had to execute

sudo gem install mdl

to get mdl install on the command line. I understand that pre-commit would have installed mdl under ~/.cache/pre-commit.

Could it be that the .mdlrc included with your pre-commit-hook is over ridding my repository's .mdlrc?