nus-cs2103-AY2425S1 / forum

12 stars 0 forks source link

A-CheckStyles Error #218

Closed tyxiangs closed 1 month ago

tyxiangs commented 2 months ago

Hi, I have followed steps given but I get URL is not registered error. Screenshot 2024-09-06 110933 Screenshot 2024-09-06 111048

Andrew22Teoh commented 2 months ago

Hi, I also have this error on my IntelliJ but the checkstyle runs just fine!

image image image

Could you try running ./gradlew checkstyleMain checkstyleTest and see if it works, or if you get an error message?

Andrew22Teoh commented 2 months ago

Btw, just a side note: if you right click the red text in IntelliJ and click Show Context Actions, you can click on Fetch External Resource and that removes the error!

tyxiangs commented 2 months ago

I get this error after I fetch external resources ![Uploading Screenshot 2024-09-06 113410.png…]()

psh12320 commented 2 months ago

Here are the steps I took to resolve this error:

  1. Copy-paste the links on the internet.

  2. Once done, the files configuration_1_3.dtd and suppressions_1_2.dtd will be downloaded.

  3. You can paste those files within the same config/checkstyle folder as checkstyle.xml and suppressions.xml.

  4. After doing the above, you can write the following code instead:

<!DOCTYPE module PUBLIC
        "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
        "configuration_1_3.dtd">

The same can be done for suppressions.xml.

There will be no longer be any URI not registered error.

nus-se-bot commented 1 month ago

@tyxiangs A gentle reminder to close this issue if the problem has been resolved. If not resolved yet, please post a comment explaining which part of the problem/question remains unresolved.

nus-se-bot commented 1 month ago

@tyxiangs I'm closing this issue due to inactivity. Feel free to reopen if the issue is still unresolved.