-
Notifications
You must be signed in to change notification settings - Fork 50
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
[FIX] Config: check stylesheets scope #5836
base: saas-18.2
Are you sure you want to change the base?
Conversation
71c2087
to
22063a1
Compare
then | ||
exit 0; #THE USER WANTS TO CONTINUE | ||
else | ||
if [ $? -ne 0 ]; 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.
-ne <-> not equal
22063a1
to
e92ace9
Compare
.husky/pre-commit
Outdated
scssregexp='.*\.scss' | ||
ignoreFileInstruction='\/\* husky-ignore \*\/' | ||
filelist=() | ||
for file in $(git diff --cached --name-only | grep -E $scssregexp); do |
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.
I know, we discussed this limitation yesterday. it's more about having a generic check so the dev stays alert rather than having a full parser just for the fun.. or else I need to make a js script because standard grep is not smart enough to get it done but it seemed not necessary. @LucasLefevre
edit: punctuation re-edit: typos
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.
Grep can probably still do the job in this case I think. We could maybe have a regex (startOfLine)(somethingThatIsn't.o-spreadshhet)
Will only work is the CSS is correctly prettified but w/e.
This should work ?
^(\.(?!o-spreadsheet)|[a-zA-Z]+).*\{
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.
you need to handle multi line grep which does not work on macos for instance, so no it does not work.
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'll try to do a correct js script whenever I have the time
ecf51c2
to
d707d0a
Compare
The style that we define in our component can sometimes interfere within Odoo. This revision adds a step to force the style to be scoped to 'o-spreadsheet'. Task: 4629441
d707d0a
to
7352ddc
Compare
The style that we define in our component can sometimes interfere within Odoo. This revision adds a step to force the style to be scoped to 'o-spreadsheet'.
Task: 4629441
Description:
description of this task, what is implemented and why it is implemented that way.
Task: TASK_ID
review checklist