0.32.0 • Published 7 months ago

palinter v0.32.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Palinter

A powerfull linter for projects architecture written in rust.

Lint strategy

Config

Palinter config is defined as a palinter.config.yaml file in the root of the project, and sets all rules of a project.

The rules are defined in:

  • global_rules that have rules that are applied to all files.
  • blocks that have blocks of reusable rules.
  • And in the folders section, that is the basepoint for the linting.

Only folders that are defined in the folders section will be linted. If a folder is not in the folders, palinter will return an error, unless it is added to the ignore_folders section.

Setting folders

TODO: write setting folders

TODO: write about ignoring folders

TODO: what if i want to set the rules for a folder and a subfolder?

Setting rules

All files in the configured folders will be checked against the rules. If a file not matches any rule, an error will be reported.

A rule structure is:

folders:
  /icons:
    - expect: # file assertions
      if: # optional, rule conditionals
      error_message: # optional, custom error message
      is_warning: # optional, set rule to warning instead of error

Expect

See docs/expect-rules module for more information.

If - rule conditions

See docs/rule-conditions module for more information.

Rule logic groups

TODO: write

Folder loop groups

TODO: write

Folder rules

TODO: write

Context variables

TODO: write

Global rules

TODO: write

Rule blocks

TODO: write

0.32.0

7 months ago

0.30.4

9 months ago

0.30.3

9 months ago

0.30.2

9 months ago

0.31.0

9 months ago

0.30.1

9 months ago

0.30.0

9 months ago

0.29.0

9 months ago

0.27.2

9 months ago

0.28.0

9 months ago

0.27.1

9 months ago

0.27.0

9 months ago

0.26.0

9 months ago

0.25.0

9 months ago

0.24.0

9 months ago

0.23.0

1 year ago

0.21.0

1 year ago

0.20.0

1 year ago

0.19.0

1 year ago

0.11.0

1 year ago

0.12.0

1 year ago

0.11.1

1 year ago

0.13.0

1 year ago

0.11.2

1 year ago

0.14.0

1 year ago

0.13.1

1 year ago

0.11.3

1 year ago

0.15.0

1 year ago

0.14.1

1 year ago

0.11.4

1 year ago

0.16.0

1 year ago

0.17.0

1 year ago

0.16.1

1 year ago

0.18.0

1 year ago

0.10.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.22.0

1 year ago

0.21.1

1 year ago

0.9.0

1 year ago

0.9.2

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.6.0

1 year ago

0.1.0

2 years ago