diff_match_patch 0.4.1 copy "diff_match_patch: ^0.4.1" to clipboard
diff_match_patch: ^0.4.1 copied to clipboard

The Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text.

22
likes
110/ 140
pub points
94%
popularity

We analyzed this package 5 days ago, and awarded it 110 pub points (of a possible 140):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

Homepage URL is insecure.

Update the homepage field and use a secure (https) URL.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: Apache-2.0.

failed
Provide documentation
10 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

31 out of 38 API elements (81.6 %) have documentation comments.

Some symbols that are missing documentation: diff_match_patch.DIFF_EQUAL, diff_match_patch.DIFF_INSERT, diff_match_patch.Patch.diffs, diff_match_patch.Patch.length1, diff_match_patch.Patch.length2.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 77 issues. Showing the first 2:

INFO: The variable name 'diff_levenshtein' isn't a lowerCamelCase identifier.

lib/src/api.dart:90:7

   ╷
90 │   int diff_levenshtein(List<d.Diff> diffs) {
   │       ^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/api.dart

INFO: The variable name 'opt_b' isn't a lowerCamelCase identifier.

lib/src/api.dart:123:42

    ╷
123 │   List<p.Patch> patch(Object a, [Object? opt_b, Object? opt_c]) {
    │                                          ^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/api.dart

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

No dependencies.

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Dart 3.3.3.

Check the analysis log for details.

22
likes
110
pub points
94%
popularity

Publisher

unverified uploader

The Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text.

Repository
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

More

Packages that depend on diff_match_patch