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.

2
likes
110/ 140
pub points
0%
popularity

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

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: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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, twig_dart_preprocessor.DocumentHierarchy.extendsTemplates, twig_dart_preprocessor.DocumentHierarchy.root.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

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
Pass static analysis
30 / 50trigger folding of the section

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
Support up-to-date dependencies
10 / 20trigger folding of the section

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

Package Constraint Compatible Latest
collection ^1.15.0 1.18.0 1.18.0
essential_symbol_table ^2.0.1 2.0.1 2.0.1
file ^6.1.0 6.1.4 7.0.0
twig_dart ^3.0.0 3.0.0 3.0.0
Transitive dependencies
Package Constraint Compatible Latest
args - 2.5.0 2.5.0
async - 2.11.0 2.11.0
boolean_selector - 2.1.1 2.1.1
charcode - 1.3.1 1.3.1
essential_code_buffer - 2.0.1 2.0.1
matcher - 0.12.16+1 0.12.16+1
meta - 1.14.0 1.14.0
path - 1.9.0 1.9.0
source_span - 1.10.0 1.10.0
stack_trace - 1.11.1 1.11.1
stream_channel - 2.1.2 2.1.2
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
test_api - 0.7.1 0.7.1

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.

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

Analyzed with Pana 0.22.3, Dart 3.3.4.

Check the analysis log for details.

2
likes
110
pub points
0%
popularity

Publisher

verified publishergalileodart.com

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