Giter Club home page Giter Club logo

milv's People

Contributors

aerfio avatar dbadura avatar hudymi avatar m00g3n avatar magicmatatjahu avatar pprecel avatar ressetkk avatar

Watchers

 avatar  avatar

milv's Issues

Milv doesn't detect headers links

Description
Milv has problem with detecting headers in markdown links.

Expected result
Milv validates all headers

Actual result

Steps to reproduce
create markdown and run milv against it:

[dasd](#dasd)

and run milv:

 ./milv --base-path ./bug -v 
----- ./bug/1.md - status: true

NO ISSUES :-)

Troubleshooting

Use mocks in unit test to check external links

Description
Currently we call external URL in uni tests.

Reasons
We shouldn't do call to external service in unit tests.
We can introduce governance job which uses milv from PR as intergration test

Plan

  • remove external calls using mocks
  • create governance job for milv repository which will use milv image from PR

Add missing features from v0.7.0

Description
Historical log:
Add 2 missing features to 0.7, which are not available in 0.6:

  • black-list-internal and black-list-external flags for not checking relative and external links in provided path.
  • basePath feature- checking relative links with additional prefix and/or suffix. It's not going to be implemented, because it wasn't used.

We use black-list-internal, which means: ignore all internal links in those files.

Reasons
in https://github.com/kyma-project/kyma/tree/master/docs we have a lot of links which are correctly rendered on webiste.

Attachments

Rename all black and white parameters names

Description
We should remove all white/black names, because those parameters are hard to understand.
We propose following renaming:

Old Name New Name
white-list-internal internal-links-to-ignore
white-list-external external-links-to-ignore
black-list files-to-ignore
black-list-internal files-to-ignore-internal-links-in

Reasons
Those names are hard to understand.

[Internal Anchors] The specified header doesn't exist in file

Description

While writing a document and creating a TOC for a markown file I discovered that milv has issues with linting internal anchors.

Expected result

Linting this document with milv succeeds.

Actual result
Milv fails with the following error:

+--------------------------------------------------+------------------------+--------------------------------+
|                       FILE                       |          LINK          |          DESCRIPTION           |
+--------------------------------------------------+------------------------+--------------------------------+
| ./community/concepts/eventing-code-guidelines.md | #dockerfile-guidelines | The specified header doesn't   |
|                                                  |                        | exist in file                  |
+                                                  +------------------------+                                +
|                                                  | #coding-guidelines     |                                |
|                                                  |                        |                                |
+                                                  +------------------------+                                +
|                                                  | #testing-guidelines    |                                |
|                                                  |                        |                                |
+--------------------------------------------------+------------------------+--------------------------------+

Steps to reproduce

Troubleshooting

@m00g3n suggested to try out the following but it also does not work for me:

[Dockerfile Guidelines](.eventing-code-guidelines.md#dockerfile-guidelines)
[Dockerfile Guidelines](./eventing-code-guidelines.md#dockerfile-guidelines)

Improve README.md

Description

  1. Describe milv's logic so that everyone knows how it works and how to contribute to it.
  2. Describe in detail the format of internal/external allow/deny links that can be added to a sample milv.config.yaml file in a repo. (folders vs. address)

See the example of the milv file from the kyma repo.

  1. Remove any outdated info.
  2. Link to the docs in the community repo that describe how to create correct links between docs (that milv later validates).
  3. Proofread the doc.

Milv search for md files in current working directory instead of using base-path

Description
README.md says that base-path is the root directory of repository, but unfortunately the milv looks for md files in current working directory. Because of this behavior we have not intuitive settings like this:

files:
  - path: "./milv/README.md"

In my opinion, the setting file should looks like:

files:
  - path: "./README.md"

Expected result
base-path should also configure milv to look for md files in base-path directory.

Steps to reproduce
The bugs is in this line of code: https://github.com/kyma-incubator/milv/blob/main/cli/cli.go#L54
find command is not correctly executed.

Troubleshooting
Clone community and kyma repository and run milv with base-path:community.
Milv will also validate kyma.

Milv cannot detect invalid link in the same line

Description
Milv can't detect invalid link, when in the same line we have 2 links: valid and invalid link. The first one is checked, but the other one is not.
Expected result
All links should be validated
Actual result
Only the first links is validated
Steps to reproduce

Create 2 markdowns:
1.md
2.md

in the 1.md create two links:

[Valid](./2md), [Invalid](./whatever)

and run milv against it.

Milv blocks http://azure.com

Description

kyma-governance-nightly started to return 403 Forbidden for http://azure.com 4 days in a row. The Azure link is fully accessible so there is a chance there is sth wrong in the milv configuration.

As a temporary workaround, I added the link to the allowlist in the milv config file in PR 11167.

Expected result

Milv should allow this link.

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.