Skip to content

Conditional use of unified_mode true needs to warn #936

@lamont-granquist

Description

@lamont-granquist
unified_mode true if respond_to?(:unified_mode)

That isn't a coherent thing to ever want to do, since you get unified_mode true behavior on newer chef-client and unified_mode false behavior on older chef-client and will require careful testing on all versions, and crazy questions to me on how to write code so that it works the same both ways.

In general people need to pick one way or the other, and have backwards compatibility via unified_mode false (and suffer the deprecation warning forever reminding you that support for Chef 12 has been dropped ages ago) or else set unified_mode true and properly drop support for old Chef 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    New Cop ProposalA proposal for a new Cookstyle copStatus: UntriagedAn issue that has yet to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions