add an info pass for md linting (#205)

adding an info pass that's not breaking the build
the breaking checks are on another run in the same job
two artifacts are now produced
line length check is now only in the info pass

Signed-off-by: Nicolas MASSART <nicolas.massart@consensys.net>
pull/212/head
Nicolas MASSART 5 years ago committed by GitHub
parent 1fd032868a
commit 32f599556b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .circleci/config.yml
  2. 1
      CI/markdownlint/info_style.rb
  3. 2
      CI/markdownlint/style.rb

@ -111,6 +111,11 @@ jobs:
name: Install dependencies
command: |
gem install mdl
- run:
shell: /bin/bash #this is a non breaking command so it will always return success
name: Run Markdownlint info checks
command: |
mdl --ignore-front-matter --style ./CI/markdownlint/info_style.rb . | tee ./markdownlint_info.out
- run:
name: Run Markdownlint
command: |
@ -118,6 +123,9 @@ jobs:
- store_artifacts:
path: ./markdownlint.out
destination: ./markdownlint.out
- store_artifacts:
path: ./markdownlint_info.out
destination: ./markdownlint_info.out
workflows:
version: 2

@ -0,0 +1 @@
rule 'line-length', :line_length=>100, :code_blocks=>false, :tables=> false

@ -1,8 +1,8 @@
all
rule "no-duplicate-header", :allow_different_nesting => true
rule 'line-length', :line_length=>100, :code_blocks=>false, :tables=> false
rule 'no-trailing-punctuation', :punctuation=>'.,;:!'
exclude_rule 'no-bare-urls'
exclude_rule 'code-block-style'
exclude_rule 'line-length'

Loading…
Cancel
Save