Giter Club home page Giter Club logo

luacov-multiple's People

Contributors

1337joe avatar blueyed avatar mkielar avatar oocytanb avatar slact avatar to-kr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

luacov-multiple's Issues

The unauthenticated git protocol on port 9418 is no longer supported.

What happened

Github just rolled out a change to their protocol security today: https://github.blog/2021-09-01-improving-git-protocol-security-github/, effectively disabling unauthenticated access using git:// protocol.

Steps to reproduce

sudo luarocks install luacov-multiple

Output:

Installing https://luarocks.org/luacov-multiple-0.4-1.rockspec
Missing dependencies for luacov-multiple 0.4-1:
   lustache (not installed)

luacov-multiple 0.4-1 depends on lustache (not installed)
Installing https://luarocks.org/lustache-1.3.1-0.rockspec

lustache 1.3.1-0 is now installed in /usr (license: MIT <http://opensource.org/licenses/MIT>)

Cloning into 'luacov-multiple'...
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Error: Failed cloning git repository.

Multiple empty lines in sequence are not displayed properly in the html output

If the code contains multiple empty lines in sequence the HTML output will display them as only one empty line.
This causes that the "hits" and "line number" columns are longer than the "code" column and show the hits in the wrong lines.

I could fix this by modifying the HtmlReporter as follows:

function HtmlReporter:on_empty_line(filename, lineno, line) -- luacheck: no unused args
	local line = tools.rtrim(line)
	if (line == "") then
	  line = "\n"
	end
	table.insert(self.current_class.lines, { number = lineno, hits='-', hitsText=' ', line = line })
end

With this fix the empty lines are displayed properly in Firefox and Chromium.

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.