PowerShell / PowerShell/PSScriptAnalyzer
Download compatibility profiles lazily from a remote feed rather than shipping them
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- C#
- Estrelas
- 2.2k
- Forks
- 415
- Merge médio
- 13h 1min
- PRs com merge (30d)
- 2
Descrição
Currently compatibility profiles for the UseCompatibleTypes and UseCompatibleCommands rules ship with PSSA and effectively double its size.
This represents large overhead for users who don't use these rules or who don't want all the profiles we ship by default.
Ideally the rules should have a way of identifying filesystem and remote assets, and when rules are run, download/install any remote assets not already on the machine. This will also require cataloguing remote assets in a systematic and dependable way.
Proposed implementation
One solution is to have rules as NuGet assets (taking care of both hosting and caching), and specifying profiles as URIs, so that file:// and https:// (for example) profiles can be easily distinguished.
This may create an unnecessary dependency on NuGet however.
Whatever the implementation it will need to:
- Enable runtime retrieval of profiles so they do not need to be shipped with the PSSA module
- Allow side-by-side specification of remote and local profiles in the configuration in a way where local assets cannot have colliding names
- Memoise profile downloads, so that once they are downloaded once, they remain available locally by specifying the remote instance (this may require versioning or cache invalidation in case remote profiles change)
- Allow profiles to be downloaded in batches rather than one-at-a-time, for maximum efficiency (in the vein of the Remote Façade pattern.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Revise as regras UseCompatibleTypes e UseCompatibleCommands e como seus perfis são atualmente empacotados e configurados. Mapeie os requisitos de origem dos assets, caching e versionamento, colisão de nomes locais e download em lote em um design. O trabalho estará concluído quando os comportamentos listados de recuperação e coexistência em runtime estiverem especificados e validados.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- csharp, powershell
- Domínio
- tooling
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 25/100