woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.24k stars 368 forks source link

Add linter for editorconfig #973

Closed 6543 closed 2 years ago

anbraten commented 2 years ago

We actually have a linter / tests for the editorconfig already or do you mean adding it to the linter which checks a config before the pipeline executes it?

6543 commented 2 years ago

well i found a wrong intendation:

https://github.com/woodpecker-ci/woodpecker/blob/fe006d9656309cab84c6059f7648ba2c6ee1ca30/.woodpecker/docs.yml#L56-L57

6543 commented 2 years ago
  editor-config:
    image: mstruebing/editorconfig-checker

adding this step should do it

6543 commented 2 years ago

to exclude stuff create file .ecrc

{
  "Exclude": ["LICENSE", ".git*"]
}