warn on mismatched package/module case #97

Merged
merged 2 commits into from Mar 16, 2014

Conversation

Projects
None yet
3 participants
@rjbs
Collaborator

rjbs commented Mar 15, 2014

When you upload lib/Foo/Bar.pm but the package statement package Foo::bar, you probably made a mistake. This code adds a warning for the situation — and adds a generic mechanism for warnings like it.

(This doesn't catch every case, but probably most. At least many.)

@karenetheridge

This comment has been minimized.

Show comment
Hide comment
@karenetheridge

karenetheridge Mar 16, 2014

Contributor

lib/PAUSE/package.pm looks like something that could be merged into Module::Metadata. The filename vs. package name discrepancy can be caught by MMD's provides functionality (once it's fixed).

Contributor

karenetheridge commented Mar 16, 2014

lib/PAUSE/package.pm looks like something that could be merged into Module::Metadata. The filename vs. package name discrepancy can be caught by MMD's provides functionality (once it's fixed).

@andk andk merged commit cda08e5 into andk:master Mar 16, 2014

@rjbs rjbs deleted the rjbs:case-mismatch-warn branch Mar 16, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment