palinter v0.48.1
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_rulesthat have rules that are applied to all files.blocksthat have blocks of reusable rules.- And in the
folderssection, 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 errorExpect
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
8 months ago
8 months ago
12 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
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago