Skip to content

Commit

Permalink
fix: formatting and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Jul 9, 2024
1 parent f85c943 commit 375e4ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ ij_html_text_wrap = normal
[{*.http,*.rest}]
indent_size = 0
ij_continuation_indent_size = 4
ij_http request_call_parameters_wrap = normal
ij_http_request_call_parameters_wrap = normal

[{*.jsf,*.jsp,*.jspf,*.tag,*.tagf,*.xjsp}]
ij_jsp_jsp_prefer_comma_separated_import_list = false
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {

plugins {
id "com.diffplug.spotless" version "5.15.2"
id "org.ec4j.editorconfig" version "0.0.3"
}

repositories {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.jvmargs=-Xms512m -Xmx4g
4 changes: 2 additions & 2 deletions utils/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ else
exit 1
fi

(cd ../ && ./gradlew spotlessCheck < /dev/null)
(cd ../ && ./gradlew editorconfigCheck < /dev/null)
if [[ $? -ne 0 ]]
then
printf "${RED}Linting FAILED, please run './gradlew spotlessApply' in supertokens-root or the 'Lint' run configuration in IntelliJ IDEA${NC}\n"
printf "${RED}Linting FAILED, please run './gradlew editorconfigFormat' in supertokens-root or the 'Lint' run configuration in IntelliJ IDEA${NC}\n"
exit 1
fi

Expand Down

0 comments on commit 375e4ed

Please sign in to comment.