Skip to content

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

Open
lyutvs wants to merge 12 commits intomainfrom
63-restaurant-map
Open

๐Ÿ”€ :: (#63) ๊ฐ€๊ฒŒ ์ง€๋„ ๋ชฉ๋ก ๋ณด๊ธฐ API #79
lyutvs wants to merge 12 commits intomainfrom
63-restaurant-map

Conversation

@lyutvs
Copy link
Copy Markdown
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
Copy Markdown
Member Author

lyutvs commented Sep 20, 2022

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

Copy link
Copy Markdown

@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"

Copy link
Copy Markdown

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) +
Copy link
Copy Markdown

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) +
Copy link
Copy Markdown

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))
Copy link
Copy Markdown

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))
Copy link
Copy Markdown

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,
Copy link
Copy Markdown

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 "
Copy link
Copy Markdown

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 "
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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
Copy Markdown
Member Author

lyutvs commented Sep 20, 2022

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

@sonarqubecloud
Copy link
Copy Markdown

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