Skip to content

[conan-center-index] Checks for semantic errors #182

@prince-chrismc

Description

@prince-chrismc

It would be nice if there was the addition of two new checks, thought I am not sure where they would go in the hooks.

  1. usage of self.requires.add which should not have the last add portion
  2. usage of tools.check_min_cppstd should always have a preceding if self.settings.get_safe("compiler.cppstd"):

I am sure there are other "bad practices" which could be added but these two are very common looking at older recipes, next time they get update it will be more complete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions