Commit Graph

7 Commits

Author SHA1 Message Date
ericLemanissier
3d7ae4bb5d (#14911) yamllinter: raise if a version has patches but no sources
* yamllinter: raise if a version has patches but no sources

* Update conandata_yaml_linter.py

* we dont want to make noise se from errors just yet

---------

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
2023-02-10 10:06:03 +01:00
Chris Mc
29f210ef1a (#14895) linter: reduce spam for notification from actions + lower error level
* linter: reduce spam for notification from actions + lower error level

* linter: there should not be an error code

* linter: add missing return statements
2022-12-28 12:46:09 +01:00
Chris Mc
47279a81a1 (#14015) linter: improve conandata.yml linter output
* improve linter output

https://github.com/conan-io/conan-center-index/issues/13778

* Drop code fence

* more percent encoding

* Update conandata_yaml_linter.py

* Update conandata_yaml_linter.py

* Update conandata_yaml_linter.py

* Update conandata_yaml_linter.py

* Update conandata_yaml_linter.py

* remove test

* run the schema validation on each patch to report multiple errors

* fix copy paste + fix spelling

* fix libzip errors not being reported + add a message about v2 migration suggestion

* clean up markdown linter

* loop regardless of errors

* error messages are a lin off 😕
2022-12-20 14:06:27 +01:00
Chris Mc
bbfd4033ba (#14370) linter: dont allow backport as patch type (to match docs) 2022-11-26 15:46:05 +01:00
Chris Mc
0a9a6f0e1b (#14096) docs: rename patch field "backport" to "bugfix" to avoid confusion
* docs: rename patch field "backport" to "bugfix" to avoid confusion

The description of this field does not match the normative convention of who it could be used to mean "this came from the project" and not the "this changes source code" which is the written definition here.

This should hopefully reduce the incorrect usage and encourage contributors to pick more descriptive options and fill in the `patch_source` that we offer

* linter: match new docs
2022-11-10 10:28:48 +01:00
ericLemanissier
ce63b0edc7 (#13779) Fix conandata_yaml_linter
* Fix conandata_yaml_linter

* Update conandata_yaml_linter.py
2022-10-27 08:31:34 +02:00
Chris Mc
70d9c6b69e (#13274) linters: Add annotations for YAML lint + add schema verification for config.yml and conandata.yml
* first attempt at a yaml linter wit github actions output

* This is less strict but has more information

* fixup message

* run config linter in Action

* better ux feedback

* try to use newlines

https://github.com/actions/toolkit/issues/193#issuecomment-605394935

* clean up

* fixup file name

* trying custom class for quoted str

* underlying yaml parser does not keep quotes

* trying to catch ints as problems

* remove test code

* and to "linter testing"

* install deps

* run new linter unconditionally

* revert testing changes

* new script for conandata (this one is much harder to spec)

* debugging

* lets see all the errors

* yamale -s ../linter/config_yaml_schema.yml aaf/config.yml

from linters folder as a test

* adjust script to match meeting discussion

* make sure the docs and linters match

* fix link

* Update conandata.yml

* exit 1 is not needed with annotations

* add annotation matchers for yaml since those do do much

* fix search for type

* fix whitespace

* tryout a yamllint file with a better looking matcher

* copy syntax from readme

* test if it's running in the wrong dir 🤔

* try with debug output

* bump since i dont have permissions

* bump - dont glob star

* bump

* less star globs

* also add action to conandata way

* bump

* drop action for cli + matcher

* more docs around linters

* fix file and name

* cleanup
2022-10-25 14:25:05 +02:00