dli_dart_algorithms 0.1.0

Create Docker Compose File to bind files lol.

docker run -d \
  -it \
  --name devtest \
  --mount type=bind,source="$(pwd)"/target,target=/dart \
  google/dart
docker run -d -it --name devtest --mount type=bind,source="$(pwd)"/target,target=/dart google/dart

Use docker ps -a to find all the active docker images.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  dli_dart_algorithms: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:dli_dart_algorithms/main.dart';
import 'package:dli_dart_algorithms/strings/CheckIfStringContainsDigits/main.dart';
import 'package:dli_dart_algorithms/strings/CheckIfStringContainsDigits/strings.dart';
import 'package:dli_dart_algorithms/strings/CountDuplicateCharacters/main.dart';
import 'package:dli_dart_algorithms/strings/CountDuplicateCharacters/strings.dart';
import 'package:dli_dart_algorithms/strings/CountingVowelsAndCons/main.dart';
import 'package:dli_dart_algorithms/strings/CountingVowelsAndCons/strings.dart';
import 'package:dli_dart_algorithms/strings/FirstNonRepeatedCharacter/main.dart';
import 'package:dli_dart_algorithms/strings/FirstNonRepeatedCharacter/strings.dart';
import 'package:dli_dart_algorithms/strings/PrintPermutations/main.dart';
import 'package:dli_dart_algorithms/strings/PrintPermutations/strings.dart';
import 'package:dli_dart_algorithms/strings/strings.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
30
Overall:
Weighted score of the above. [more]
6
Learn more about scoring.

We analyzed this package on Apr 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Analysis issues and suggestions

Make sure dartfmt successfully runs on your package's source files.

Running dartfmt -n . failed with the following output:

Exception: dartfmt on lib/ failed with exit code 65
Could not format because the source could not be parsed:

line 1, column 8 of lib/main.dart: Expected to find ';'.
  ╷
1 │ export 'strings/strings.dart'
  │        ^^^^^^^^^^^^^^^^^^^^^^
  ╵

Health issues and suggestions

Fix lib/strings/PrintPermutations/strings.dart. (-92.53 points)

Analysis of lib/strings/PrintPermutations/strings.dart failed with 9 errors, 1 hint, including:

line 8 col 36: The method 'charAt' isn't defined for the class 'String'.

line 15 col 3: Undefined name 'permutations'.

line 19 col 5: Undefined name 'permutations'.

line 19 col 22: Undefined name 'prefix'.

line 22 col 7: Undefined name 'permutations'.

Fix lib/main.dart. (-25 points)

Analysis of lib/main.dart failed with 1 error:

line 1 col 8: Expected to find ';'.

Fix lib/strings/CheckIfStringContainsDigits/main.dart. (-25 points)

Analysis of lib/strings/CheckIfStringContainsDigits/main.dart failed with 1 error:

line 4 col 27: A value of type 'num' can't be assigned to a variable of type 'Map<String, int>'.

Document public APIs. (-1 points)

12 out of 12 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix additional 7 files with analysis or formatting issues. (-6.96 points)

Additional issues in the following files:

  • lib/strings/CountingVowelsAndCons/strings.dart (6 hints)
  • lib/strings/CountDuplicateCharacters/strings.dart (2 hints)
  • lib/strings/FirstNonRepeatedCharacter/strings.dart (2 hints)
  • lib/strings/CountDuplicateCharacters/main.dart (1 hint)
  • lib/strings/CountingVowelsAndCons/main.dart (1 hint)
  • lib/strings/FirstNonRepeatedCharacter/main.dart (1 hint)
  • lib/strings/PrintPermutations/main.dart (1 hint)

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and dli_dart_algorithms.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
Dev dependencies
test ^1.9.2