New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong "pub publish" warning - This package doesn't depend on... #31563

Closed
MikeMitterer opened this Issue Dec 6, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@MikeMitterer

MikeMitterer commented Dec 6, 2017

If I "publish" my l10n lib it gives me the following warning:

Example: https://github.com/MikeMitterer/dart-l10n-gettext/tree/master/example/cmdline
Package: https://github.com/MikeMitterer/dart-l10n-gettext

* The name of "lib/l10n/L10NImpl.dart", "L10NImpl", should be lower-case. Maybe use "l10nimpl"?
* The name of "lib/l10n/L10NTranslate.dart", "L10NTranslate", should be lower-case. Maybe use "l10ntranslate"?
* The name of "lib/parser/Lexer.dart", "Lexer", should be lower-case. Maybe use "lexer"?
* The name of "lib/parser/Parser.dart", "Parser", should be lower-case. Maybe use "parser"?
* The name of "lib/parser/Statement.dart", "Statement", should be lower-case. Maybe use "statement"?
* The name of "lib/parser/Token.dart", "Token", should be lower-case. Maybe use "token"?
* line 6, column 1 of example/cmdline/bin/cmdline.dart: This package doesn't depend on l10n_sample_cmdline.
  import 'package:l10n_sample_cmdline/cmdline.dart';
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* line 7, column 1 of example/cmdline/bin/cmdline.dart: This package doesn't depend on l10n_sample_cmdline.
  import 'package:l10n_sample_cmdline/locale/messages.dart';
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* line 28, column 1 of example/cmdline/lib/cmdline.dart: This package doesn't depend on logging_handlers.
  import 'package:logging_handlers/logging_handlers_shared.dart';
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* line 38, column 1 of example/cmdline/lib/cmdline.dart: This package doesn't depend on l10n_sample_cmdline.
  import 'package:l10n_sample_cmdline/locale/messages.dart';
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

OK - I ignore those uppercase/lowercase warnings because I hate it if Dart wants to tell me how I should name my files... (plural / singular - the same ...)

But what's really annoying is the warning with "line 6" "line 7" and so on.
Thats the reason why all my examples are in samples-folder instead of example
It must be possible to have a standalone example!!! - an example with it's own pubspec.yaml

Please change this behavior

@floitschG

This comment has been minimized.

Show comment
Hide comment
@floitschG

floitschG Dec 22, 2017

Contributor

This issue was moved to dart-lang/pub#1767

Contributor

floitschG commented Dec 22, 2017

This issue was moved to dart-lang/pub#1767

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