Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Csc linter #2586

Merged
merged 19 commits into from
Jul 2, 2019
Merged

Csc linter #2586

merged 19 commits into from
Jul 2, 2019

Conversation

hernot
Copy link
Contributor

@hernot hernot commented Jun 13, 2019

Where are the tests? Have you added tests? Have you updated the tests? Read the
comment above and the documentation referenced in it first. Write tests!

Seriously, read :help ale-dev and write tests.

Hi has been some time since adding mcsc linter meanwhile plenty has change on mono side. The mcs compiler which is utilized by mcs and mcsc linters is not further developed in favour for the csc. The latter differs in the following three points output to stdout options prefixed by / instead of - and no /syntax so no csc based counter part to the ale-cs-mcs linterr.

I start the pull request now to have Travis check if my assumption that exempt from the above everything already existent for mcsc can be reused for csc. I will need some iterations and thus let you know when ready for final review.

Besides mcsc and csc got additional pattrn to capture messages not specific to source file, which were not captured before,

hernot added 5 commits June 13, 2019 22:00
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
@hernot
Copy link
Contributor Author

hernot commented Jun 14, 2019

I'm not sure what is wrong and from Travis logs I do fail to deduce what to change to make Travis checks running.

  1. How to run tests locally without docker?
  2. Would need your support to figure what is wrong

I have first updated my forks master to upstream master and than created from fork master a new branch to not get in conflict with the previous one. Hopefully nothing went wrong there. Stuck need help of somebody to pull me back on road.

Should i do a rebase the head of my fork and thus the active feature branch, as upstream head has changed at the same time while i was introducing the changes on my feature branch?

From the raw logs it seems as if something with the latest build image it tries to download seems something wrong. Not sure if i could do there something. Could it be that it fetches a work in progress image erroneously?

hernot added 3 commits June 14, 2019 15:37
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
Copy link
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the test code in sign.vim. That's probably what's causing Travis to break. Add tests for the changes to the other linter.

As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
@hernot
Copy link
Contributor Author

hernot commented Jun 17, 2019

Remove the test code in sign.vim. That's probably what's causing Travis to break. Add tests for the changes to the other linter.

Aaaaaaaggggrrrrrrrr fucing echos. Can we have there a custom check report in the --linters-only test checking for unexpected echo calls outside expected locations.

Thanks again i have now the test output and can continue fixing what is really improper.

hernot added 8 commits June 17, 2019 21:18
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
As mono project does not continue development on mcs but puts all
efforts in the csc compiler the csc linter is added in general it
is a one to one copy and thus replacement for the mcsc linter.

A small fix in the sign.vim is added which prevents error when
vim is started in verbose modes especially -V15. This is caused by
the fact that captured buffer not just contains SignLine format string
but also filename line number and all controll flags. This is prevented
by defining a separate function just capturing SignLine format which
than is called with verbosity explicitly turned off.
@hernot
Copy link
Contributor Author

hernot commented Jun 17, 2019

Ok than you very much again.
Tests added
Checks passed
Please let me know if i should change any further before squasching my branch and doing the final commit and push to finish pullrequest.

Copy link
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I revert all of the changes to sign.vim, which aren't related.

@w0rp w0rp merged commit 46ab7c5 into dense-analysis:master Jul 2, 2019
@w0rp
Copy link
Member

w0rp commented Jul 2, 2019

Cheers! 🍻

timlag1305 pushed a commit to timlag1305/ale that referenced this pull request Nov 5, 2019
* Added a new csc linter for C# code.
* More output is now handled for mcsc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants