From fb824e2a9cea1bb24ca68356c41dde2abb0c6b99 Mon Sep 17 00:00:00 2001 From: Peter200204 Date: Fri, 26 Apr 2024 10:53:51 +0200 Subject: [PATCH] commit1 --- .github/workflows/build.yml | 37 ++++++++++++++++++ pom.xml | 2 + .../hu/bme/mit/spaceship/FiringMode.class | Bin 999 -> 1027 bytes .../hu/bme/mit/spaceship/GT4500$1.class | Bin 718 -> 0 bytes .../classes/hu/bme/mit/spaceship/GT4500.class | Bin 1540 -> 1758 bytes .../hu/bme/mit/spaceship/SpaceShip.class | Bin 201 -> 201 bytes .../hu/bme/mit/spaceship/TorpedoStore.class | Bin 1460 -> 1454 bytes .../hu/bme/mit/spaceship/GT4500Test.class | Bin 1209 -> 1209 bytes 8 files changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml delete mode 100644 target/classes/hu/bme/mit/spaceship/GT4500$1.class diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..fa994b3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: SonarCloud +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] +jobs: + build: + name: Build and analyze + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: 'zulu' # Alternative distribution options are available. + - name: Cache SonarCloud packages + uses: actions/cache@v3 + with: + path: ~/.sonar/cache + key: ${{ runner.os }}-sonar + restore-keys: ${{ runner.os }}-sonar + - name: Cache Maven packages + uses: actions/cache@v3 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Build and analyze + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=Peter200204_ivt-lab \ No newline at end of file diff --git a/pom.xml b/pom.xml index 4fb1d6e..0202409 100644 --- a/pom.xml +++ b/pom.xml @@ -7,6 +7,8 @@ UTF-8 + peter200204 + https://sonarcloud.io diff --git a/target/classes/hu/bme/mit/spaceship/FiringMode.class b/target/classes/hu/bme/mit/spaceship/FiringMode.class index e3cd2bc6e6eaf14300dffc3ff0d2521f68de0595..1fd50b1d22b32b6c130853169eb0495cdbb7681d 100644 GIT binary patch literal 1027 zcma)4?{Csj6g`gug{}@n#~ho^O;qS6WHIUo$g*W&W?5m0btJ@3rB>)t3h9p}{8!38 zY|*&**+0s7Ux%YHG1w1%@4kD_dFQ-)fByP<4d4wbB4P~d{h-<%nAL&hSG|#Lm|ou+ zRSzxKa(d0-M^i+cVew2q*Q>Vf^r{Uf7%(KYqt;us!LXsu!PgjseN|;xXtYk7#rD2> z+Rzv_Kl}$URX1$QvHV@)D3#j`@dHwnLP7#VMn)EQNlJZMk}s(8_qEao#Yz2d^>Au&yw#krFhlXyqb=Tr?cqln<6$CvJr`6&o>7$o}kE()?HU08^h67JQ}UptC;`*TF* z7{pM>$tQ+aQP|XfdG0H7TO}D!QT~hJz}7vl7Pz@_ZV2q8z;=L+1d?d?#n1e#f4Z-w^}pp{w(WDC53l!?943-k#DJ4vh(>n19mb42je<4H+EA*FW1u+)rmO^;SGc;{e z{vA@o^@z&W+9g(Jz$6vWaR`#9`!z08+t$ooKLHkYbgI8lvc5RzM zD>ZlRcMXSOgxd`H|0o`qO$IgW2+A$v zh<3oks838vSq9Q|*B@VgHbvbCqHg_4tJ_p;-RVVr*V`8|_w1w(RhhbhW!d5t15Z$8 zC|=P!19?~mZez{BB9;tfvBa=6DWbH+kaYcCKx)^^=9J~5)`{naF@wKFC&mbcRTSblRfAAcaSIB4fL7UDyFlu59G;e& zT-R_%TF2cOQ$!l~P#hb1O^L`+{SNgwrzsampCc1*bT!^AB!5sy8Pa<>R)<({&cUSG WC^?<%fEWwV=x?O3PUVov-2Vf);MR%& diff --git a/target/classes/hu/bme/mit/spaceship/GT4500$1.class b/target/classes/hu/bme/mit/spaceship/GT4500$1.class deleted file mode 100644 index 9a81401224c84908ff4ea49c53e499a8730374e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 718 zcma))&u-H|5XQevoH%h^VoIT*rL?7PNjTslfjEGWP?eMjCq1}o4?S(1RlTX>jr^xP z5@$d{2%$az4~3XD6>va+P%N)sm9P4aGQTs5(#;f{%Q z6B`T<+~AGO!)VCoZdADAnQ&(^ce6PUMHb1q+n1?K&W36t7%Ha&hQ{+SmWj+?FjPC; zV+Lct47Plkh*2>ci}Z+(V@hB0RmkIGo=VMEn~Oot!*eQk#a5t-G!%WQPb?f9J$|yc z_i)NDI76$Kgt5wWd67qIVq%lZk3^QgQdw?d%f>xy+i1eF;bOeF7#lQVCm zf+CFiQpA&9nyS=B2RjVwQQ=Xi9(C&d?9}^F+kM1f50XTr`!UZlkuf;G1P{kk5#|hQ ze^FrA_+#|?Y7k^YRK9t=hYeve`6Kax$APGrL4@`C8bsxN)t*`#;S zpm)KXwjP-Fh!KN*>Vp1a|qw`hd!N{Z&80Fb?0scwJ(huvX$bR7htTE2yE3 zZ5n-z6t0m%z0~QVMSg{rL(7J7Vp7IX|6t&H8C${)vIeODH_M%6+$C#~f=L!m<2&;z BqbmRa diff --git a/target/classes/hu/bme/mit/spaceship/GT4500.class b/target/classes/hu/bme/mit/spaceship/GT4500.class index 3a9204eafbf76a08d7d5f4b3ceb1bb1c46e38021..07c0902a0f3ccab7470a9964e4a81da4cb3a31e2 100644 GIT binary patch literal 1758 zcmah}-%}e^6#i~@$wFA#lmM0#+G0~nf)J=ct^6oIOb8`V$3!qN+F6p7Yz;|flT`bn zGrl=K=#1lx<r)Ca6B?Np~vjx+k;v(x{?8Gn6u7Xnpgc*wo?+;hI~p7Wiv`StI| zPXJuOq6Uw^nS3p}zG+4`t!lJVHnL_VZEV&VK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J#srf5BrahJHz}=S1{O6Bx&8qb@Exw< z39V0Y9Y5l0>>!1okj8KL279=L*SL+}iTV?p_#1b_-cPZsTUg`<^)T}eqnsh9v5v#~ zJPvE~P>33)RbfTo7DeB{6hpCC>@E6*IN7Eyh=0Nhd`ha|GmP+*Yu3Rv0U{wsrnBu| D^FT`J diff --git a/target/classes/hu/bme/mit/spaceship/SpaceShip.class b/target/classes/hu/bme/mit/spaceship/SpaceShip.class index 01e9082fe720cceb628380b45f1ce1c806a04433..78fe60f6b9ad316771c8b8d120ad078e7b9ae4b0 100644 GIT binary patch delta 86 zcmX@fc#@I#)W2Q(7#JAL8MxRPm?q{cim@}WFfs^aC6*=X=OpH(>-#5Vr6!k56o^-2 gV`N}tULziTHMCGDPyz+gtkf`I0osOjZMsDYMQXZ8<7INw+tiTQkz*tH zC3~3mFbRnlUXXwy(Dul~_Mc$qI)=1@X|i&!@4eqW-#OoRoWI|{`3pc9H3JEO!d_@? zccs;J0;}J%Te83B^sFt<@5vpn5qQ2dpbLC;-+pLY9oubNcen4$Rv=)muhi;4ZB~ET zT-mA$h&668Ufo;uLYEPuCNQ$(xK2tR=RV&` z<0MWSICThd%?r0X(!>nT2xNM;-l|Witas*1eY9Y1+P{*72qu>^XgbbM^mi$|7mIQLekYakF?ay=yz2(3e$J zhy3T7S#5Wh$qNULzQ~yH*+yWu9^A2e5jO)1hYB^QE8Ds2_yknVy=UMXfwRL})H)s6 zwmU0+JM2n#SdLL#Oydf!D+7G{ABAlixbZPz7&skk({^{fZkoQ$s$tQ@5|*jhm5+jt zEuxiZLZctHXk(T`+!IK(r7L}##{5)~19;RacwjjFYPT0Wj@-ygIeICsYHVdf)6D6H z7y2!^?x+rq#}Uy-vY=$6K=*3=xDtG5=ID)9=B)E1g*3+uSAQ}}=WLbsVV1^TB3II0 zV!SlXA%EmGChyF@!$fKRHMo;|iqu9F^qkjE;XH~=q~RO^N`wT)36>>%4r9pU2qyVO z9A)GbV~=AFC$PZPY!n}*<^Bb(NB|c}Pek!WMke@667_51&+~i&i4RPt84$w2C2%Mt z8E@foEae~ORzfS&`X9(lmtJ7}2{LbSC4Y4v*RSr9g(B>j%0{!AOP y9Epy~QFe0>7H3yg(;(FUSQYCWRlhCH3M;9w6iOoM-T-Cs07^1O5%?jB`te`&8zRU6 literal 1460 zcmah}-*3}a6#j1P)QRJyP|8LL9W6goQ)<}QI%o?mZ8{=_BDJLxdqHk`o0=tdf_ag^{Rka zqA3c(j@$|sgV>K~stF9tdcGIk7SJoTi49JR!Il<b4v(iQAhpTz5BHv<%gQhTGb3 zLr?8fqvmh(XuST!ed;$Ll!jy}Z_#pCtI0pG1DJo!aSWZo6J94rSGUs&eTET#G`_Z_=r_7P*a|@4KBO zHv>x3wihx#CG95xqZ>CEk7Rt0j;7a z2AeWUb4qJSJF94}1##Gr%bu##@f4A$nNpcr7{(n7$8g-j5Kai>Y8&fGUkuD!SioHa zix!qp6*$|Mc4RFD&h-(sR!cVB)B@u}&5Buhb@+_^%>4ZCuGck(DE z-s&Um%*yoTvuNL$eOkge-_al+SB5_}BU!N@oOKA6>?Fr8xcdhhEr4V1LD;2N$k^H| zXm**ykp2eQ`;-4-*q(fY0iNw5zmkAn(0vpaQGr2%FG(=P2MGq!QAD1hORD`0Gr};V zI7Muk=n+idG_lG8*hEhtOY3Q}FbQJLa8|2PdW*#SE1ac>F{yPd~`z5qLP<)HrqoMpB%pbM6wbMYMeSRFr&*{RXEzXj!AyKu3{F~aGM`2rRfIsF#ds( z`2!`F>3xw(#;NBL{Wbna$fRmEMxP?|V*WiY2m=L;kCLUaQ(1R83k6YveuJU!Lf85^ y4kU-uNqnmZOyeuwEHZ_8<$s0g_PXwHR(x5-r+6|+4|_Z_hj_9nkDyA0n)(QQ#3H-^ diff --git a/target/test-classes/hu/bme/mit/spaceship/GT4500Test.class b/target/test-classes/hu/bme/mit/spaceship/GT4500Test.class index 47054913965fd0005a6d223f84c7814d3401e24c..190cae26d2ae8eaf31b480a9b92c3b860c8226fc 100644 GIT binary patch literal 1209 zcma)5YflqV5IxhDu5DKk&>}B+$fK>wqJkJpOo{R zCjJ0_lyPpUwua}2y|2tUXXec8uixK)0$9OI12MuxJ+i6|X*E=61x-e7zLs@a`62(@|DU4#=z}RKY*ib&xy<_K0Jir8-T7J8= zX|G@EM+Z>UX-=7##zR7;D?`Fe?qV~$!1>)YW-)JIj?mv3fi=%_q;O5-kS7?&!inVe z0U?{)&D-a~IE6=eV&E}h@?zUdK_LBBYfLP_BABA}vi>m=4x2Zh>ta2dzvB59Jzhy) z29d+vr(JGLSGjv7$NAe0ZTFIiW$k3VWZQ&v*^B&|+)#S{`Z}|}po_s2H#yFK3?ZgF z&8GyPd3t$G@y+6$c<(8kApMCCF_^q2TaPK+=CgSgfL`?RjsGVG$I#!78sJ?Myk&nJ!&Vi;!M2evP} zq9Hv=Iu+Y?eC|ufCYgfixF^PGK!LROq%T~9_oT5S+Kwx#ywxF{xwdpg-En*3*g2|6 z`@|AQwV*}6MG7fbc!5P2cE~V4LM}eg%&<_!vIZ(z%?aF=*p=abPxLDlCas_HGp=JC z6AZa)s;WcBO%)GyJi@vT0~;zH>v)2vDmHa&;h9c7U1!K&BN74`CPSoQar?wLXr77| zxvoyyl`hrdUDUi(?d|@aSsmGzK`hlXGgJnK<>J+?97-usX{QFq+Ho99aGOCr<5nOJ z+6>v^VadD{L9E5A`&;om;l_7B=aEtU7;uXkx>g(#>Q`XPz7W19AQKLEFIn=FPql$?l?Um_WO)5|}Q z_;8NoS11FGa1=qY8Hyd~=&?>Vrp!c|cmHbEC@ajHDSv_T8DrmQ9+eBIIeIQ|V<10H wa0(;&Ib@NG5ZQiejL6W@XXz`|KZfNZ*!(D1`X8_Y!B$9Y^*>+>giPSxANGL-(EtDd