![]() ![]() The PVS-Studio warning: V3095 The 'query' object was used before it was verified against null. Happens if the user has only typed the action key so far ![]() Throw new ArgumentNullException(paramName: nameof(query)) C# part Late checks public List Query(Query query)īool isGlobalQuery = string.IsNullOrEmpty(query.ActionKeyword) Here you can find the commit which I've checked in this article. The PowerToys source code is available at the link. Feel free to read about another language as well - I've tried to describe the error in a way that everyone can understand. ![]() ![]() This way, all readers can easily find their programming language. With a simple mouse click, we can analyze the project and review the report:įor your convenience, I've divided the errors into two blocks: one for C# and one for C++. I've used the PVS-Studio plugin for Visual Studio 2022 to analyze the source code. So, we're doing a cross-language code analysis here. Arm ourselves with the PVS-Studio static analyzer and see what interesting things we can find. We expect the PowerToys developers to write high-quality code. What's this got to do with C++? Currently, the project code base is divided as follows: the C# part of code is 60%, the C++ part of code is almost 40%. At the moment of writing this article, the project has 95,000 stars on GitHub, making it a rightful king among C# projects. The project is open source and was created by a dev community together with Microsoft. It's convenient to immediately terminate the process that interacts with a file when you need to delete or rename that file. For me, the most useful is the 'What's using this file?' utility. Microsoft PowerToys is a set of utilities to tune and streamline Windows experience for greater productivity. I'll make a brief reminder for those who are not familiar with this wonderful tool. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |