diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml index 5b8f985..23110ff 100644 --- a/.github/workflows/scripts.yml +++ b/.github/workflows/scripts.yml @@ -31,7 +31,6 @@ jobs: "${GITHUB_WORKSPACE}/scripts/25-eleicoes.sh" "${GITHUB_WORKSPACE}/scripts/26-snirh.sh" "${GITHUB_WORKSPACE}/scripts/29-inpi.sh" - "${GITHUB_WORKSPACE}/scripts/32-dgt.sh" "${GITHUB_WORKSPACE}/scripts/35-turismo.sh" "${GITHUB_WORKSPACE}/scripts/36-norte2020.sh" "${GITHUB_WORKSPACE}/scripts/40-sef.sh" diff --git a/README.md b/README.md index 15204e4..fba55b4 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,6 @@ Esta tabela mostra casos de incumprimento do regulamento: | https://www.eleicoes.mai.gov.pt/ | acessibilidade, CSS inválido | [exemplo de página com erros WCAG](https://www.eleicoes.mai.gov.pt/europeias2019/estrangeiro.html), [análise de um CSS](https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fwww.eleicoes.mai.gov.pt%2Fautarquicas2017%2F&profile=css3svg&usermedium=all&warning=1&vextwarning=&lang=en) | 2023/02/17 | | | https://apambiente.pt/ | XHTML inválido, CSS inválido, HTTPS inválido, Conteúdo Flash, OOXML | [análise do XHTML](https://validator.w3.org/check?uri=https%3A%2F%2Fsnirh.apambiente.pt&charset=%28detect+automatically%29&doctype=Inline&group=0), [análise do CSS](https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fsnirh.apambiente.pt&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en), [documentos OOXML](https://apambiente.pt/residuos/fluxos-especificos-de-residuos) | 2023/02/17 | 2020/05/16 | | https://inpi.justica.gov.pt | Serviços necessitam JAVA | [documento com instruções](https://servicosonline.inpi.pt/registos/guia_certificado.pdf) | 2023/02/17 | | -| http://www.dgterritorio.pt | folha de cálculo em XLS | [exportação para XLS no final da página](http://tcp.dgterritorio.gov.pt/procurar) | 2023/02/15 | | | http://www.turismodeportugal.pt/ | Informação apenas em XLSX | [página com vários links para informação apenas em XLSX](http://business.turismodeportugal.pt/pt/Planear_Iniciar/Licenciamento_Registo_da_Atividade/Empreendimentos_Turisticos/Paginas/classificacao-et.aspx) | 2023/02/17 | 2022/02/22 | | https://www.norte2020.pt/ | Informação apenas em XLSX | [página com documento apenas em XLSX](https://www.norte2020.pt/investimento-municipal) | 2023/02/17 | 2019/10/29 | | https://www.sef.pt/ | Documentos em .doc | [Documentos em .doc no final da página (anunciados como .pdf)](https://www.sef.pt/pt/pages/conteudo-detalhe.aspx?nID=73) | 2022/09/08 | | diff --git a/scripts/32-dgt.sh b/scripts/32-dgt.sh deleted file mode 100755 index 3d1533e..0000000 --- a/scripts/32-dgt.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -fail=0; - -if [ "$(curl https://tcp.dgterritorio.gov.pt/procurar -o /dev/null --silent; echo $?)" -eq "60" ]; then - echo "dgt: erro no certificado HTTPS"; - fail=1; -else - links="$(wget https://tcp.dgterritorio.gov.pt/procurar -o /dev/null -O -|hxnormalize -x -l 10000|hxselect .feed-icon|hxselect a -s '\n')"; - - # How many links are there? if there is less than 1, something has changed, - # validate manually. If there are more than 1, maybe there's a XLS but also - # other (open) format. Let's validate manually and adjust the script if the - # violation stands. - nlinks="$(echo "$links"|wc -l)"; - xls="$(echo "$links"|grep -c -i xls)"; - - # TODO: complementar validações com o incumprimento do XLS - - if [ "$nlinks" -eq "1" ] && [ "$xls" -eq "1" ]; then - echo "dgt: continua o incumprimento com o uso de XLS"; - fail=2; - fi -fi - -if [ "$fail" = 0 ]; then - echo "dgt: algo mudou (nlinks $nlinks, xls $xls), incumprimento potencialmente resolvido (verificar manualmente!)"; -else - echo "dgt: Incumprimento mantém-se, a actualizar o README (faça um git diff, valide, e commit!)"; - while IFS='' read -r line || [[ -n "$line" ]]; do - test "$(echo "$line"|grep -v -c "dgterritorio")" -eq "1" \ - && echo "$line" \ - || (h=$(echo "$line"|cut -d\| -f1-4); t=$(echo "$line"|cut -d\| -f6-); echo "$h| $(date +%Y/%m/%d) |$t"); - done < README.md > new - mv new README.md -fi