From 8f0c97401238678176c59292366636cf6d10c8c3 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Tue, 8 Dec 2020 13:30:39 -0700 Subject: [PATCH] ENH: Enable markdownlint on CodeClimate --- .codeclimate.yml | 5 +++++ .mdl_style.rb | 6 ++++++ .mdlrc | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 .mdl_style.rb create mode 100644 .mdlrc diff --git a/.codeclimate.yml b/.codeclimate.yml index 1a1137c364f..0cb746cd605 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -33,6 +33,11 @@ plugins: E501: enabled: false + markdownlint: + enabled: true + issue_override: + severity: minor + exclude_patterns: - "src/metpy/io/_nexrad_msgs/msg*.py" - "src/metpy/io/metar_parse.peg" diff --git a/.mdl_style.rb b/.mdl_style.rb new file mode 100644 index 00000000000..593cc70a7b3 --- /dev/null +++ b/.mdl_style.rb @@ -0,0 +1,6 @@ +all +rule 'MD013', :line_length => 95 +rule 'MD026', :punctuation => ".,;:!" +exclude_rule 'MD002' +exclude_rule 'MD034' +exclude_rule 'MD041' \ No newline at end of file diff --git a/.mdlrc b/.mdlrc new file mode 100644 index 00000000000..708aff69b5a --- /dev/null +++ b/.mdlrc @@ -0,0 +1,2 @@ +style '.mdl_style.rb' +ignore_front_matter true \ No newline at end of file