unifmt 0.2.12

unifmt #

Pub Package

The universal code formatter for the MolView project. This program automatically formats all code in the current directory to match the style conventions. You can find out which conventions are used by looking at the source code of this tool. It will automatically alert you if you have to install a formatter on your system.

Getting started #

Install #

To install unifmt on your system, run:

pub global activate unifmt

Command line arguments #

-h, --[no-]help

Displays usage information.

-v, --[no-]verbose

Output non-critical formatting messages.

-f, --[no-]force

Ignore errors in run-once mode (i.e. --no-watch).

-w, --[no-]watch

Watch current directory for changes and reformat them.

-e, --exclude

Exclude the given file globs.

Set copyright holder for license headers.

-l, --license

Set SPDX license ID for license headers.

Notes #

Gitignore #

unifmt parses the .gitignore file in the directory where it is executed and does not format files that are excluded in the .gitignore file. However, .gitignore files that are located in subdirectories are not parsed!

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate unifmt

2. Use it

The package has the following executables:

$ unifmt
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.8.4
  • pana: 0.13.9+1

Health suggestions

Fix bin/src/formatter.dart. (-9.99 points)

Analysis of bin/src/formatter.dart reported 21 hints, including:

line 100 col 31: Use = to separate a named parameter from its default value.

line 101 col 35: Use = to separate a named parameter from its default value.

line 102 col 29: Use = to separate a named parameter from its default value.

line 103 col 29: Use = to separate a named parameter from its default value.

line 104 col 27: Use = to separate a named parameter from its default value.

Fix bin/src/formatters.dart. (-7.24 points)

Analysis of bin/src/formatters.dart reported 15 hints, including:

line 19 col 22: Unnecessary new keyword.

line 22 col 18: Unnecessary new keyword.

line 28 col 11: Unnecessary new keyword.

line 34 col 18: Unnecessary new keyword.

line 40 col 11: Unnecessary new keyword.

Fix bin/src/gitignore.dart. (-5.36 points)

Analysis of bin/src/gitignore.dart reported 11 hints, including:

line 13 col 31: Unnecessary new keyword.

line 16 col 31: Unnecessary new keyword.

line 20 col 36: Unnecessary new keyword.

line 25 col 18: Unnecessary new keyword.

line 42 col 23: Unnecessary new keyword.

Fix additional 3 files with analysis or formatting issues. (-5.46 points)

Additional issues in the following files:

  • bin/unifmt.dart (5 hints)
  • bin/src/config/csscomb.dart (3 hints)
  • bin/src/config/tidy.dart (3 hints)

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: Documenting unifmt... Initialized dartdoc with 37 libraries in 32.1 seconds Validating docs... no issues found Documented 0 public libraries in 6.0 seconds stderr: Unhandled exception: dartdoc could not find any libraries to document #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:218:9)

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

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

Package is getting outdated. (-88.49 points)

The package was last published 98 weeks ago.

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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
args ^1.5.0 1.6.0
glob ^1.1.7 1.2.0
watcher ^0.9.7+10 0.9.7+15
Transitive dependencies
async 2.4.1
charcode 1.1.3
collection 1.14.13
js 0.6.2
meta 1.1.8 1.2.0
node_interop 1.1.1
node_io 1.1.1
path 1.7.0
pedantic 1.9.0 1.9.1
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0