twig_dart_preprocessor 3.0.1 copy "twig_dart_preprocessor: ^3.0.1" to clipboard
twig_dart_preprocessor: ^3.0.1 copied to clipboard

A pre-processor for resolving blocks and includes within Twig templates.

125/ 160
pub points
23
downloads

We analyzed this package 12 days ago, and awarded it 125 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
25 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` does not contain reference to the current version ("3.0.1").

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

6 out of 17 API elements (35.3 %) have documentation comments.

Some symbols that are missing documentation: twig_dart_preprocessor, twig_dart_preprocessor.DocumentHierarchy, twig_dart_preprocessor.DocumentHierarchy.DocumentHierarchy.new, twig_dart_preprocessor.DocumentHierarchy.extendsTemplates, twig_dart_preprocessor.DocumentHierarchy.root.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Android

Because:

  • package:twig_dart_preprocessor/twig_dart_preprocessor.dart that imports:
  • package:twig_dart/twig_dart.dart that imports:
  • package:twig_dart/src/renderer.dart that imports:
  • package:twig_dart/src/text/scanner.dart that imports:
  • package:twig_dart/src/ast/ast.dart that imports:
  • package:twig_dart/src/ast/new.dart that imports:
  • package:twig_dart/src/ast/member.dart that imports:
  • dart:mirrors
Package not compatible with platform iOS

Because:

  • package:twig_dart_preprocessor/twig_dart_preprocessor.dart that imports:
  • package:twig_dart/twig_dart.dart that imports:
  • package:twig_dart/src/renderer.dart that imports:
  • package:twig_dart/src/text/scanner.dart that imports:
  • package:twig_dart/src/ast/ast.dart that imports:
  • package:twig_dart/src/ast/new.dart that imports:
  • package:twig_dart/src/ast/member.dart that imports:
  • dart:mirrors
Package not compatible with platform Web

Because:

  • package:twig_dart_preprocessor/twig_dart_preprocessor.dart that imports:
  • package:twig_dart/twig_dart.dart that imports:
  • package:twig_dart/src/renderer.dart that imports:
  • package:twig_dart/src/text/scanner.dart that imports:
  • package:twig_dart/src/ast/ast.dart that imports:
  • package:twig_dart/src/ast/new.dart that imports:
  • package:twig_dart/src/ast/member.dart that imports:
  • dart:mirrors
Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

Found 7 issues. Showing the first 2:

WARNING: The operand can't be 'null', so the condition is always 'false'.

lib/twig_dart_preprocessor.dart:92:28

   ╷
92 │       if (definedOverrides == null) break;
   │                            ^^^^^^^
   ╵

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

WARNING: The operand can't be 'null', so the condition is always 'true'.

lib/twig_dart_preprocessor.dart:98:26

   ╷
98 │     if (definedOverrides != null) out = setOut(out, definedOverrides, false);
   │                          ^^^^^^^
   ╵

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

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
collection ^1.15.0 1.19.1 1.19.1
essential_symbol_table ^2.0.1 2.0.1 2.0.1
file ^6.1.0 6.1.4 7.0.1
twig_dart ^3.0.0 3.0.0 3.0.0
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
boolean_selector - 2.1.2 2.1.2
charcode - 1.4.0 1.4.0
essential_code_buffer - 2.0.1 2.0.1
matcher - 0.12.18 0.12.18
meta - 1.17.0 1.17.0
path - 1.9.1 1.9.1
source_span - 1.10.1 1.10.1
stack_trace - 1.12.1 1.12.1
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
test_api - 0.7.8 0.7.8

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

The constraint `^6.1.0` on file does not support the stable version `7.0.0`.

Try running dart pub upgrade --major-versions file to update the constraint.

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.3, Dart 3.10.4.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
125
points
23
downloads

Publisher

verified publishergalileodart.com

Weekly Downloads

A pre-processor for resolving blocks and includes within Twig templates.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, essential_symbol_table, file, twig_dart

More

Packages that depend on twig_dart_preprocessor