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

ability to ignore the next form #6

Closed
oakmac opened this issue Jun 17, 2023 · 5 comments
Closed

ability to ignore the next form #6

oakmac opened this issue Jun 17, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request v1 blocker Required for a v1.0.0 release

Comments

@oakmac
Copy link
Owner

oakmac commented Jun 17, 2023

Users should have a simple way to tell the formatter "ignore the next form".

Current idea: comments that contain the string clojurefmt:ignore will cause the next form to be ignored.

I want to avoid using metadata for this purpose because I do not want to create the impression that this can be adjusted at runtime programmatically.

@oakmac oakmac self-assigned this Jun 17, 2023
@NoahTheDuke
Copy link

Prior art:

@oakmac oakmac added enhancement New feature or request v1 blocker Required for a v1.0.0 release labels Aug 29, 2024
@oakmac
Copy link
Owner Author

oakmac commented Oct 15, 2024

I am leaning toward something very similar to how clj-kondo works:

Ignore the next form

  • #_:standard-clj/ignore - ignores the next form
  • #_{:standard-clj/ignore true} - same as above
  • Should we only support this for "top-level" forms?

Ignore the whole file

  • #_:standard-clj/ignore-file - ignores the whole file, must be placed at the top of the file
  • #_{:standard-clj/ignore-file true} - same as above

@oakmac
Copy link
Owner Author

oakmac commented Oct 16, 2024

PR-120 adds support for #_:standard-clj/ignore and #_{:standard-clj/ignore true}

Next up is adding support for #_ :standard-clj/ignore-file

@oakmac
Copy link
Owner Author

oakmac commented Oct 16, 2024

PR-122 adds support for #_ :standard-clj/ignore-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v1 blocker Required for a v1.0.0 release
Projects
None yet
Development

No branches or pull requests

2 participants