palinter v0.32.0
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
7 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago