Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some UX Improvements, Colored formatting debugging #475

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

bosd
Copy link
Collaborator

@bosd bosd commented Feb 14, 2023

These small improvements might make it easier to debug your templates.

  • Colors on the matching / regex lines
    image

  • Improved error messages

  • Fix indentation for lines (Making them easier to read)

  • Table plugin, see which ruleset is tested
    image

  • Formatted json style output while debugging, so it is easier to recognize the different lines.
    image

You can see it in action in the github actions check of this pr.

@bosd bosd force-pushed the format-debug branch 4 times, most recently from 279fd94 to 20e8fe4 Compare February 19, 2023 21:03
@bosd
Copy link
Collaborator Author

bosd commented Feb 20, 2023

Some rationale about moving back to %s string format:

Usage of f strings in the logger are 8% slower slower then %s format.

@bosd bosd changed the title Some UX Improvements Some UX Improvements, Colored formatting debugging Mar 11, 2023
@bosd bosd force-pushed the format-debug branch 2 times, most recently from b990a82 to 5d72b9a Compare March 31, 2023 16:20
@bosd bosd merged commit 97573eb into invoice-x:master Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant