Coder Social home page Coder Social logo

aim42 / htmlsanitycheck Goto Github PK

View Code? Open in Web Editor NEW
67.0 67.0 42.0 12.32 MB

Standalone (batch- and command-line) and Gradle-plugin html sanity checker - detects missing images, dead links and cross-references, duplicate link targets (anchors) and the like.

License: Apache License 2.0

Groovy 53.83% Java 8.19% CSS 0.46% HTML 34.70% Shell 2.12% PowerShell 0.69%
arc42 gradle gradle-plugin groovy hacktoberfest hacktoberfest2021 html test

htmlsanitycheck's Introduction

aim42 Architecture Improvement Method

Software Evolution, Maintenance and Improvement - Done Right!

aim42 is collection of practices and patterns to support software evolution, maintenance, evolution and improvement of software systems.

aim42 divides change activities in three distinct phases:

  • analyze issues, risks, problems, symptoms and technical debt within software (and their organisations).
  • evaluate those issues, identify root-causes and remedies, prioritize.
  • improve by applying appropriate remedies, strategies and tactics.

aim42 has been founded by Gernot Starke, is supported by innoQ Deutschland GmbH and is licenced under the liberal Creative Commons Sharealike 4.0 licence.

Learn more

  • our project homepage gives an overview
  • the online method reference provides all (currently available) details (this is our main artifact - currently under intensive development). The method reference is automatically updated with every commit pushed to the central repository by Travis-CI.

Contribute

  • found mistakes or ommissions: create an issue
  • have ideas: fork the repository and create a pull request. You need a basic understanding of Git for this.
  • follow us on twitter

We write the content in AsciiDoc and build with Gradle.

As of September 2017, we removed the AsciiDoc help from the aim42 guide, you can find it here, under the arc42 organization.

Current Status

Build Status issues Bugs

Repository Organization

Top-Level

(Original drawn with draw.io, source located in /graphics/meta/aim42-repo-structure.xml)

Graphics

Both diagrams created with (desktop-version of) draw.io, source located in /graphics/meta/aim42-repo-structure.xml)

htmlsanitycheck's People

Contributors

ascheman avatar double16 avatar erdi avatar gernotstarke avatar hankem avatar joschi avatar mauk81 avatar mernst avatar oliva123456 avatar rdmueller avatar rosi2143 avatar sciencewhiz avatar thc202 avatar uniqueck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

htmlsanitycheck's Issues

aggregate multiple-occurences of broken internal links

in the current version, multiple occurences of broken internal links are reported multiple times, e.g.:

link target "Stakeholder-Interviews" missing
link target "Stakeholder-Interviews" missing
link target "Stakeholder-Interviews" missing

It would be nice to have an aggregated format, like

link target "Stakeholder-Interviews" missing (3 occurences)

"Missing Local Resources Checker" needs reference counter

the same missing resource is reported multiple times, e.g.:

local resource "api/griffon/core/env/Metadata.html" missing
local resource "api/griffon/core/env/Metadata.html" missing
local resource "api/griffon/core/env/Feature.html" missing
local resource "api/griffon/core/env/Feature.html" missing
local resource "api/griffon/core/env/Metadata.html" missing
local resource "api/griffon/core/env/Metadata.html" missing

Should better be:
local resource "api/griffon/core/env/Metadata.html" missing (reference count: 4)
local resource "api/griffon/core/env/Feature.html" missing (reference count: 2)

"False Positives" in "local resources checker" (error in checker)

for example, checking the "Griffon Guide" reports the following false-positives

Missing Local Resources Check
157 anchor tag href attribute checked, 157 missing local resources found.

    local resource "api/griffon/core/mvc/MVCGroupManager.html" missing
    local resource "api/griffon/core/injection/Module.html" missing 

create the GradlePlugin

although the main functionality is (more or less) working, the integration work to
make it a gradle plugin is still unfinished...

handle links to local html files in MissingLocalResourcesChecker

links to local html files, like

 <a href="apidoc/SpecialClass.html">SpecialClass</a>

shall NOT be treated as broken internal links, but the existance of the appropriate file
shall be checked... (by another checker?)

The current (0.2.0-SNAPSHOT) behavior is buggy, as it marks those links as "broken internal link".

Checker for unused image files

files present in image directory, but NOT referenced in image tags
(difficult, if several html-files refer to the same image directory)

0.8.0 dependency issue: jsoup-jar not referenced properly

The required jsoup dependencies are not configured properly...
gradlel dependencies
yields:

:dependencies


Root project

archives - Configuration for archive artifacts.
No dependencies

asciidoctor
--- org.asciidoctor:asciidoctorj:1.5.0
+--- org.slf4j:slf4j-api:1.7.5
+--- org.jruby:jruby-complete:1.7.9
--- com.beust:jcommander:1.32

default - Configuration for default artifacts.
No dependencies

BUILD SUCCESSFUL

imageChecker needs "String" as parameter for imageDir

currently it's implemented so that it creates filenames by concatenating img-src attributes
with the imageDir path (string)...

(could be refactored to use File instead... then it would need to convert the File
to an absolutePath... both ways would be perfect...)

beautify output of multiple-definitions checker

currently it looks ugly:

Results for Duplicate Definition of id Check
378 id checked,
1 duplicate id found.

"Impact-Analysis" has multiple definitions:<h3 id="Impact-Analysis"><a class="anchor" ref="#Impact-    
Analysis"></a>5.10. <span class="pattern">Impact Analysis</span></h3>,<a id="Impact-Analysis"></a>

Maybe we count the occurences and report only the id's...:

"Impact-Analysis" is defined 2 times.

Add ImageMap Checker

What to check in imageMaps:

1.) is every map referenced by at least one image?
2.) is every map-name referenced in an image present in the page?
3.) is every map-name unique?
4.) is at least one area-tag defined for every map?
5.) has every area-tag one non-empty href attribute?
6.) has every href a valid target (broken-links check)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.