Commit Graph

15 Commits

Author SHA1 Message Date
Daniel
c3f7f5af0a (#12959) [linter] Convert import ConanFile from conans into an error 2022-09-15 14:04:21 +02:00
Javier G. Sogo
04b9350f94 (#12765) [linter] Add rule about importing tools from conan module
* [linter] Add rule about importing tools from conan module

* allow from conan.tools import xxx
2022-09-01 16:45:31 +02:00
Javier G. Sogo
6009a8ef4e (#12330) linter - fix regex matching messages
* linter - testing messages

* second part in brackets is optional

* Override message for E0611

* use cleaner approach for linter

* import both errors

* Error if errors imported

* revert changes in any-lite
2022-08-18 12:04:52 +02:00
Javier G. Sogo
1318e02b96 (#12254) linter v2 - Request migration of conans.errors to conan.errors
* linter v2 - errors should be imported from module conan

* Add docs

* revert - test linter

* fix typo

* touch
2022-08-17 15:04:57 +02:00
Javier G. Sogo
9a84f4a5e4 (#12163) Up Conan version + recover linter for Version
* Up Conan version + recover linter for Version

* recover line about version (docs)
2022-08-16 17:04:16 +02:00
Javier G. Sogo
5365999b7d (#12170) YML linter - Add more rules
* YML linter - Add more rules

* most files don't use start/end, let's go for uniformity
2022-08-16 10:44:53 +02:00
Javier G. Sogo
0e97dc5b59 (#12136) [linter] Do not promote migration of Version class (yet)
* [linter] Remove Version rule

* change docs
2022-08-11 08:42:41 +02:00
Javier G. Sogo
9f53e62526 (#12052) [linter] Fix enabled/disabled items for test_package 2022-08-04 16:43:05 +02:00
Javier G. Sogo
27d78eb31f (#12023) [linter] Add first rule for test_package files
* [linter] Add first rule for test_package files

* add failing test

* revert failing recipe

* typo
2022-08-03 16:05:25 +02:00
Daniel
f03c78ff14 (#11948) [linter] Add more checks to migrate import for tools
* [linter] Add more checks to migrate import for tools

* add link
2022-08-01 12:03:40 +02:00
Javier G. Sogo
202e85f077 (#11627) linter - check ConanFile import and cross_building
* linter - check ConanFile import and cross_building

* remove unused code

* Add docs

* improve docs

* example - abseil

* md syntax

* revert uneeded changes

* Update docs/v2_linter.md

Co-authored-by: Daniel <danimanzaneque@gmail.com>

Co-authored-by: Daniel <danimanzaneque@gmail.com>
2022-07-13 18:30:09 +02:00
Javier G. Sogo
4e30a179db (#11606) linter - Add linter for test_*/conanfile.py files
* linter - Add linter for test_*/conanfile.py files

* rename pylintrc file

* disable conan checks related to name
2022-07-11 10:43:01 +02:00
Javier G. Sogo
93190d30e1 (#11162) [linter] Transform ConanFile class to match actual one
* [linter] Add member validation

* linter - transform ConanFile to match actual class

* install matching conan version

* add more dynamics

* no settings

* these are failing

* mock settings

* user_info_build

* add fatals to matcher (#11)

* increase threshold

* touch

Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
2022-06-17 11:44:47 +02:00
Javier G. Sogo
e437f8c3d2 (#11149) [linter] Basic YAML linting
* [linter] Basic YAML linting

* rename file

* remove endline

* add newline
2022-06-13 16:44:44 +02:00
Javier G. Sogo
3365a3ae12 (#11147) [linter] Linter for v2 migration
* [linter] propose linter for v2 migration

* touch

* remove requirements file

* share requirements as string/env variable

* add new line

* cache off

* version range

* exact requirement

* pylint already contains astroid

* Add comment about test_package

* better naming

* remove and rename files
2022-06-13 13:44:37 +02:00