-
Notifications
You must be signed in to change notification settings - Fork 984
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
feat: lint direct require quo component outside src/quo #17828
Conversation
Jenkins BuildsClick to see older builds (19)
|
5a06921
to
6b40c8e
Compare
@@ -21,7 +21,7 @@ let | |||
buildInputs = with pkgs; [ | |||
clojure flock maven openjdk | |||
# lint specific utilities | |||
clj-kondo zprint clojure-lsp | |||
clj-kondo zprint clojure-lsp ripgrep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jakubgs, is it ok to put this here? Or into the default shell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's correct.
6b40c8e
to
f5151b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good stuff @yqrashawn! 💪
# quo components namespace ends with style|utils|types|reaction-resource | ||
# are not the component view, they are usually utils fns or styles | ||
|
||
if rg --pcre2 --glob '!src/quo/**/*' 'quo\.components(\.[\w-]+)*\.[\w-]*(?<!style|utils|types|reaction-resource)(\s|\]|\n)' src; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure of these other file types, but if someone uses a quo
component's style.cljs
file outside of the quo namespace that should be a big code smell imo. I don't think it's something we need to lint for however 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are usages I filterd out
First 3 are used in old profile screen to pass new look into old components. I added these 3.
I guess we will remove these when new profile screen added.
2 of them are used in quo_preview. I'm not sure, maybe it's not required when using outside of preview
one is in comment
these 2 are indeed a bit weird
src/status_im2/contexts/emoji_picker/style.cljs
src/status_im2/contexts/chat/messages/drawers/view.cljs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh let's lint this so, we really shouldn't have these uses imo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or at least create a follow up issue to address this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏄🏼 🏄🏼♂️
f5151b2
to
f1fa87e
Compare
Signed-off-by: yqrashawn <namy.19@gmail.com>
f1fa87e
to
544bdc5
Compare
Summary
make lint
to lint against require quo component outsidesrc/quo
/app
folder for prettiererror looks like
Testing notes
dev exp only PR
status: ready