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

Dotnet Upgrade project files #1679

Merged
merged 2 commits into from
Jul 31, 2022
Merged

Dotnet Upgrade project files #1679

merged 2 commits into from
Jul 31, 2022

Conversation

lextatic
Copy link
Contributor

@lextatic lextatic commented Jul 31, 2022

Project files for the updated dotnet-format.
Also changed the bad.cs files that were binary for some reason. If this was really intended I could revert those changes.

Proposed Changes

  1. Added .csproj file to .automation/test/csharp
  2. Added .vbproj file to .automation/test/vbdotnet
  3. Changed content csharp_bad_01.cs and csharp_bad_02.cs to match bad code.

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request

Reviewing Maintainer

  • Label as breaking if this is a large fundamental change
  • Label as either automation, bug, documentation, enhancement, infrastructure, or performance

@lextatic lextatic requested a review from nvuillam as a code owner July 31, 2022 12:28
@lextatic lextatic changed the title Features/dotnet upgrade proposed changes Dotnet Upgrade project files Jul 31, 2022
@nvuillam nvuillam merged commit be35811 into oxsecurity:features/dotnet-upgrade Jul 31, 2022
@nvuillam
Copy link
Member

@lextatic thanks a lot :)

nvuillam added a commit that referenced this pull request Jan 6, 2023
* Upgrade dotnet to v6 + list_of_files for dotnet-format

* Fixes

* Fixes

* Adding dotnet project files

* Better .cs examples of bad code

* Dotnet Upgrade project files (#1679)

* Adding dotnet project files

* Better .cs examples of bad code

Co-authored-by: Alexandre Melotti <[email protected]>

* Update doc

* Adding .csproj files to sample_project_fixes

* Added .sln info on linter_text property

* Updated linter URL and added {{WORKSPACE}} CLI arg

* Unifying vb and csharp projects into one single solution

* Upgrade dotnet version on linter dockers

* Really upgrade dotnet everywhere

* Revert "Upgrade dotnet version on linter dockers"

This reverts commit 995e9df.

* Testing some Dockerfile configs

* dotnet info

* Trying to figure out dotnet version running on each test case

* Checking root's workspace

* Checking for tool versions

* Removing dotnet-format install from Docker images

* Updating linter versions and helps for dotnet-format

* Reverting pre_coomands and configuring new dotnet format params

* Forgot the "format" argument

* Updating test reports

* Fixed ERROR paths

* Undowngrade DevSkim version

* changelog

* Remove version from DevSkim install line

* Update TSQLLint version

* fix dotnet format call

* Using relative paths for worksapces

* Detailed logging for debug

* Revert "Using relative paths for worksapces"

This reverts commit 92f57bc.

* Disabling list_of_files mode.

* Reverting back to list_of_files

* Echoing linting command

* Checking workspace path

* Fixing descriptor parsing

* Fix parse

* Trying to figure out why --include is failing

* Testing the exact computed command manually

* Testing relative paths

* Checking file contnt before testing linter

* Checking editorconfig contents

* Adding editorconfigs to validate whitespaces.

Also reverting all changes to descriptors.

* Re-enabling detailed logging

* Adding style error to csharp_bad_02.cs.

* Testing whitespace formatting for vb only

* I don't know anymore

* Fixed VB descriptor

* A few mroe tests with editorconfigs

* Fixed pre-command syntax

* Testing lint without --include parameter

* Trying several path styles

* Testing some different paths

* Testing echo

* More tests

* Checking versions

* Adding dotnet --info

* Upgrade to dotnet 7 and removed list_of_files

* Revert some changes for --list-of-files

* More experiments

* Ops

* Fixing malformed file

* Whoa, python sux

* Change dotnet command

* Updating reports for tests

* Success linters also format bad files

* Separating good and bad test projects

* Revert back to dotnet6

* Updated success report files

* Removing unused import from DotnetFormatLinter.py

* Upgrade to dotnet 7

* Removing csharpier version specification from install cli

* Revert "Upgrade to dotnet 7"

This reverts commit 7630633.

* Updating changelog, removed 'list_of_files' for now

Co-authored-by: nvuillam <[email protected]>
Co-authored-by: Alexandre Melotti <[email protected]>
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