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

๐Ÿ”€ :: (#63) ๊ฐ€๊ฒŒ ์ง€๋„ ๋ชฉ๋ก ๋ณด๊ธฐ API #79

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

lyutvs
Copy link
Member

@lyutvs lyutvs commented Sep 20, 2022

close #63

  • ์ผ๋‹จ์€ ๋‹ค ใ…ใ…‡ใ„ด์งœ๋„ ์˜ฌ๋ ธ์–ด ํ• ์ˆ˜ ์žˆ์„๋•Œ ๊นŒ์ง€ ํ•ด๋ณด๋ ‰

@lyutvs lyutvs added the ๊ธฐ๋Šฅ ์ถ”๊ฐ€ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ์š”์ฒญ์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. label Sep 20, 2022
@lyutvs lyutvs self-assigned this Sep 20, 2022
@lyutvs
Copy link
Member Author

lyutvs commented Sep 20, 2022

์ง€๊ธˆ ์งœ๋†“์€ ์ฝ”๋“œ๋Š” ์ง€๊ธˆ ํ˜„์žฌ ์œ„์น˜์—์„œ ์ผ์ • ๊ฑฐ๋ฆฌ๋ฅผ ๊ตฌํ•˜๋Š” ๊ฑฐ์•ผ ๋” ์ˆ˜์ • ํ•ด์•ผํ•  ์ฝ”๋“œ๋“ค์ด ๋„ˆ๋ฌด ๋งŽ์•„

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


// hibernate
const val HIBERNATE_SPATIAL = "org.hibernate:hibernate-spatial:6.1.3.Final"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿšซ [ktlint] reported by reviewdog ๐Ÿถ
Unexpected blank line(s) before "}"

val radianAngle: Double = toRadian(bearing)
val distanceRadius: Double = distance / 6371.01

val latitude: Double = Math.asin(sin(radianLatitude) * cos(distanceRadius) +

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿšซ [ktlint] reported by reviewdog ๐Ÿถ
Argument should be on a separate line (unless all arguments can fit a single line)

val radianAngle: Double = toRadian(bearing)
val distanceRadius: Double = distance / 6371.01

val latitude: Double = Math.asin(sin(radianLatitude) * cos(distanceRadius) +

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿšซ [ktlint] reported by reviewdog ๐Ÿถ
Missing newline after "("

val distanceRadius: Double = distance / 6371.01

val latitude: Double = Math.asin(sin(radianLatitude) * cos(distanceRadius) +
cos(radianLatitude) * sin(distanceRadius) * cos(radianAngle))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿšซ [ktlint] reported by reviewdog ๐Ÿถ
Unexpected indentation (16) (should be 12)

val distanceRadius: Double = distance / 6371.01

val latitude: Double = Math.asin(sin(radianLatitude) * cos(distanceRadius) +
cos(radianLatitude) * sin(distanceRadius) * cos(radianAngle))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿšซ [ktlint] reported by reviewdog ๐Ÿถ
Missing newline before ")"

bearing = Direction.NORTHEAST.bearing
)

val southWest: Location = restaurantFacade.getCoordinatesCalculate(x, y, distance = 12324.1,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿšซ [ktlint] reported by reviewdog ๐Ÿถ
Argument should be on a separate line (unless all arguments can fit a single line)

val pointFormat = String.format("'LINESTRING(%f %f, %f %f)')", x1, y1, x2, y2)
val query = em.createNativeQuery(
"SELECT r.id, r.address, r.cordinates, r.mainImageUrl, r.imageUrl, r.isVerify"
+ "FROM restaurant AS r "

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿšซ [ktlint] reported by reviewdog ๐Ÿถ
Unexpected indentation (20) (should be 16)

val pointFormat = String.format("'LINESTRING(%f %f, %f %f)')", x1, y1, x2, y2)
val query = em.createNativeQuery(
"SELECT r.id, r.address, r.cordinates, r.mainImageUrl, r.imageUrl, r.isVerify"
+ "FROM restaurant AS r "

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿšซ [ktlint] reported by reviewdog ๐Ÿถ
Line must not begin with "+"

val query = em.createNativeQuery(
"SELECT r.id, r.address, r.cordinates, r.mainImageUrl, r.imageUrl, r.isVerify"
+ "FROM restaurant AS r "
+ "WHERE MBRContains(ST_LINESTRINGFROMTEXT(" + pointFormat + ", r.point)", Restaurant::class.java

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿšซ [ktlint] reported by reviewdog ๐Ÿถ
Unexpected indentation (20) (should be 16)

val query = em.createNativeQuery(
"SELECT r.id, r.address, r.cordinates, r.mainImageUrl, r.imageUrl, r.isVerify"
+ "FROM restaurant AS r "
+ "WHERE MBRContains(ST_LINESTRINGFROMTEXT(" + pointFormat + ", r.point)", Restaurant::class.java

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿšซ [ktlint] reported by reviewdog ๐Ÿถ
Line must not begin with "+"

@lyutvs
Copy link
Member Author

lyutvs commented Sep 20, 2022

์˜ค๋ฅ˜ ๋œจ๋Š” ๋ถ€ใ…œใ„ด๋„ ๋งŽ๊ณ 

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!ย  ย  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๊ธฐ๋Šฅ ์ถ”๊ฐ€ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ์š”์ฒญ์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

๊ฐ€๊ฒŒ ์ง€๋„ ๋ชฉ๋ก ๋ณด๊ธฐ API
1 participant