0.48.1 • Published 7 months ago

palinter v0.48.1

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.48.0

7 months ago

0.48.1

7 months ago

0.47.0

11 months ago

0.43.0

1 year ago

0.41.0

1 year ago

0.38.0

1 year ago

0.36.0

1 year ago

0.34.0

1 year ago

0.46.4

1 year ago

0.46.5

1 year ago

0.46.2

1 year ago

0.46.3

1 year ago

0.46.0

1 year ago

0.46.1

1 year ago

0.42.2

1 year ago

0.42.0

1 year ago

0.42.1

1 year ago

0.40.0

1 year ago

0.39.0

1 year ago

0.37.0

1 year ago

0.35.0

1 year ago

0.33.0

1 year ago

0.45.0

1 year ago

0.32.0

2 years ago

0.30.4

2 years ago

0.30.3

2 years ago

0.30.2

2 years ago

0.31.0

2 years ago

0.30.1

2 years ago

0.30.0

2 years ago

0.29.0

2 years ago

0.27.2

2 years ago

0.28.0

2 years ago

0.27.1

2 years ago

0.27.0

2 years ago

0.26.0

2 years ago

0.25.0

2 years ago

0.24.0

2 years ago

0.23.0

2 years ago

0.21.0

2 years ago

0.20.0

2 years ago

0.19.0

2 years ago

0.11.0

3 years ago

0.12.0

2 years ago

0.11.1

3 years ago

0.13.0

2 years ago

0.11.2

3 years ago

0.14.0

2 years ago

0.13.1

2 years ago

0.11.3

3 years ago

0.15.0

2 years ago

0.14.1

2 years ago

0.11.4

3 years ago

0.16.0

2 years ago

0.17.0

2 years ago

0.16.1

2 years ago

0.18.0

2 years ago

0.10.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.22.0

2 years ago

0.21.1

2 years ago

0.9.0

3 years ago

0.9.2

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.6.0

3 years ago

0.1.0

3 years ago