question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parsing project and description tags

See original GitHub issue

Hi,

I have just recently start using your plugin. I like it a lot, but there are two things that keep me from using it automatically. First, it also parses the project tag. Second, it parses the description tag. I feel both makes the pom file harder to read.

I know that it is possible to add ignore-sections, but I feel this clutters up the pom file.

Thanks for looking in to this. Alex

P.S. As an example: Project tag Given

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                             http://maven.apache.org/xsd/maven-4.0.0.xsd">

When the parser is run Then it should not turn the snippet into

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0                             http://maven.apache.org/xsd/maven-4.0.0.xsd">

Tags with long lines. Given:

<description>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
    vehicula magna in lorem vestibulum lacinia. Nullam quis lobortis purus.
    Etiam ut finibus velit. Donec tempor egestas nisl volutpat pharetra.
</description>

When the parser is run Then it should not turn the snippet into

<description>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
    vehicula magna in lorem vestibulum lacinia. Nullam quis lobortis purus.
    Etiam ut finibus velit. Donec tempor egestas nisl volutpat pharetra.</description>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Ekrydcommented, Jun 3, 2017

Second problem: line breaks for project tag

I had a look into the XML parser and unfortunately the methods that print the attributes for an element are private, so I cannot add any custom behaviour to that tag. All output from the Sortpom plugin is built by the XML parser.

It’s a pity since I also get annoyed by the long first line.

0reactions
Ekrydcommented, Jun 4, 2017

The plugin does not modify the original file. The whole original file is input to the XML parser that creates a new file, so there is nothing left of the original data.

Read more comments on GitHub >

github_iconTop Results From Across the Web

meta-tags-parser - PyPI
Fast and modern meta tags parser (og, twitter, title, description, etc) with snippet support.
Read more >
POS-Tagging and Syntactic Parsing with R
This tutorial introduces part-of-speech tagging and syntactic parsing using R. This tutorial is aimed at beginners and intermediate users of ...
Read more >
tag-parsing · GitHub Topics
Add a description, image, and links to the tag-parsing topic page so that developers can more easily learn about it. Curate this topic....
Read more >
From summarizing projects to setting tags, uses of parsing R ...
I'll walk through a few potential uses of parsing out the functions and packages in projects.Creating a reference table: With so many ...
Read more >
Part-of-Speech(POS) Tag | Dependency Parsing
In Dependency parsing, various tags represent the relationship between two words in a sentence. These tags are the dependency tags. For example, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found