This is the pub Plugin of jQAssistant.
It provides a scanner for pubspec.yaml
files.
For more information on jQAssistant see https://jqassistant.org.
See also: Plugin Documentation
Add the plugin to the plugins section of the jqassistant.yml
configuration file:
jqassistant:
plugins:
# Includes the jQAssistant pub plugin
- group-id: org.jqassistant.plugin
artifact-id: jqassistant-pub-plugin
version: 1.0.0-SNAPSHOT
scan:
include:
files:
- ${project.basedir}/pubspec.yaml
The plugin provides a scanner which accepts files with the name pubspec.yaml
and creates the structure as described in this section, using the items defined in the Dart Docs and having nodes labeled with :Pub:Package:Yaml:File
as entry point.
The scanner creates nodes with the following labels:
-
:Pub:Package:Yaml:File
-
:Pub:Environment
-
:Pub:Dependency
-
:Pub:Dependency:Hosted
-
:Pub:Dependency:SDK
-
:Pub:Dependency:Git
-
:Pub:Dependency:Path
-
-
:Pub:Executable
-
:Pub:Platform
-
:Pub:Funding
-
:Pub:FalseSecret
-
:Pub:Screenshot
-
:Pub:Topic
-
:Pub:IgnoredAdvisory
-
Represents a pubspec.yaml
file.
Name | Description |
---|---|
fileName |
The file name, relative to the scanned directory. |
name |
The name of the package. |
version |
The version of the package. |
description |
The description of the package. |
homepage |
URL pointing to the website of the package |
repository |
URL pointing to the package’s source code repository |
issueTracker |
URL pointing to the package’s issue tracker site |
documentation |
URL pointing to the documentation site of the package if it is different from homepage |
publishTo |
"none" for no publishing or specifying an alternative pub server |
Name | Target label(s) | Cardinality | Description |
---|---|---|---|
HAS_ENVIRONMENT |
:Pub:Environment |
0..* |
versions of Dart (and Flutter) to be used by the package |
HAS_DEPENDENCY |
:Pub:Dependency |
0..* |
immediate dependencies used by the package |
HAS_DEV_DEPENDENCY |
:Pub:Dependency |
0..* |
dev-dependencies used by the package |
HAS_DEPENDENCY_OVERRIDE |
:Pub:Dependency |
0..* |
overrides for dependencies of the package |
HAS_EXECUTABLE |
:Pub:Executable |
0..* |
scripts of the package to be run on the command line |
SUPPORTS_PLATFORM |
:Pub:Platform |
0..* |
platforms that are supported by the package |
FUNDED_THROUGH |
:Pub:Funding |
0..* |
URLs to provide information about how to help fund the package |
HAS_FALSE_SECRET |
:Pub:FalseSecret |
0..* |
ignored file paths when checking for potential security leaks before publishing |
HAS_SCREENSHOT |
:Pub:Screenshot |
0..* |
screenshots to be shown on the publishing site |
HAS_TOPIC |
:Pub:Topic |
0..* |
topic names to categorize the package |
HAS_IGNORED_ADVISORY |
:Pub:IgnoredAdvisory |
0..* |
suppressed security advisories from dependency resolution |
Defines versions of Dart (and Flutter) to be used by the package.
Name | Description |
---|---|
name |
name of the environment (either |
version |
version of the environment |
Represents a dependency used by the package.
Name | Description |
---|---|
name |
name of the package the project is depending on. |
Has 4 Sub-Types:
Represents a hosted dependency used by the package.
Name | Description |
---|---|
version |
version of the package the project is depending on. |
host |
hosting server of the package the project is depending on (defaults to |
Represents an SDK dependency used by the package.
Name | Description |
---|---|
sdk |
name of the SDK of the package the project is depending on. |
Represents a Git dependency used by the package.
Name | Description |
---|---|
url |
URL of the Git repository of the package the project is depending on. |
ref |
branch or tag name |
path |
path of the dependency package inside the repository |
Represents an executable package script.
Name | Description |
---|---|
name |
alias name of the script. |
path |
path of the executable script file |
Represents a platform supported by the package.
Name | Description |
---|---|
name |
name of the supported platform |
Represents a URL for funding a package.
Name | Description |
---|---|
url |
URL of the funding site |
Represents a pattern for ignoring certain files when checking for potential security leaks before publishing.
Name | Description |
---|---|
path |
path pattern for the file(s) to ignore |
Represents a screenshot to be shown on the publishing site of the package.
Name | Description |
---|---|
description |
textual description of the screenshot |
path |
path of the screenshot file |
Represents a topic name to categorize the package.
Name | Description |
---|---|
name |
topic name |