Spectral Lint whole project (all YAML/JSON files) in IntelliJ - json

I am working on spectral linting tool to linting the API (YAML/JSON). I want to lint all the files (YAML/JSON) which are available in the project using IntelliJ. Please share the details to setup and process if anyone worked on Spectral Linting toll.
Can anyone please share the setup details and process it?

Related

Unable to use `--lsi` flag with jekyll in a github action

I've been using github actions to automate my build and upload process for a while now. Recently however the builds started failing. The error messaged claimed classifier-reborn was not installed. The image below shows that it definietly is. Could someone provide some assistance please.

The target "ResolveTagHelperRazorGenerateInputs" does not exist in the project

I am getting the following error when i try to build an AspNetCore Web Application targeting netcoreapp2.2.
Error MSB4057 The target "ResolveTagHelperRazorGenerateInputs" does not exist in the project. C:\Program Files\dotnet\sdk\2.2.103\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets
I have tried the following:
clear cache on vs according to this post
update vs2017 to 15.9.5
reinstall net core sdks
reinstall vs
Nothing helped. I first got the error during an upgrade from core 2.1 to core 2.2 on a different project, and it's possible that by mistake edited the
Sdk.Razor.CurrentVersion.targets file. From that moment on, i keep getting this error on any project that targets core 2.2 (even new ones).
Does anyone encountered this problem or have any clues about solving it?
Thanks
After long battles it figured out to be a problem with VS NuGet Package Manager.
All I had to do was:
VS > Tools > Options > NuGet Package Manager > Clear All NuGet Cache(s).
The Following Link was my solution. I also struggled to get this fixed.
Just copy the files from the NetStandard2.0 folder from GitHub then replace it with you Directory from the same location.
Hopefully this helps someone.!
Here is the Answered Link:
https://social.msdn.microsoft.com/Forums/en-US/cafc9823-eb61-46f7-8489-007242ef2ad2/target-quotresolvetaghelperrazorgenerateinputsquot-does-not-exist-in-the-project?forum=msbuild
Here is the GitHub Link
https://github.com/aspnet/Razor/tree/master/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0
I encountered the same issue during the Azure build pipeline process, and clearing the NuGet package cache resolved the issue.
Solution:
I used a dotnet tasks with "custom" to issue the following command before NuGet package restore task:
command:
dotnet nuget locals global-packages -c
Screenshot shows the build pipeline task
For me the solution was as follows:
In Visual Studio
Right click on each project and click "Unload Project"
Right click on each project and click "Reload Project"

How would I run integration tests from vivet/googleApi?

I am trying to work out how I would integrate this shared library from GitHub into my code, since it is a shared class library, for starters I just want to run the integration tests, but I cannot work out how go get the test runner to run them.
I created a console application in my main project and a reference to the GoogleMapsApiTest in the console but I am not sure how to call the tests from there to run them.
GoogleAPIClassLibrary
I had to download the gui test runner and build it from GitHub. Link to project
now I can at least run the tests, I am still not sure how to use the library but that should help at least see how it is supposed to work.
I was able to run the unit tests by downloading the NUnit source code at the link in my post and then browsing to the output dll of the class project, to load the tests apparently the gui-test runner is no longer available for download, so hopefully that will help someone else out if they run into a need for running tests in NUnit.

Semantic-UI/NPM does not create any files upon "gulp build"

new user of Semantic-UI here, and would love to start learning it. I have avoided things like NPM and gulp for all of my short web development career and figured with this new project it would be a good time to learn it.
The issue that I am currently having is that setting up Semantic-UI, 1-to-1 with the video tutorial, I'm receiving no output files. My flow currently, for setting up my new project, is as follows:
Create new, empty ASP.NET website in Visual Studio 2015
Navigate to the project folder in Node.js cmd prompt
run npm install semantic-ui --save
From here, I follow the video tutorial at Semantic's site
In the video, nearing the end of it, you'll see "[gulp] created: <css/js file>" several times. I have been looking for the dist/ folder and it doesn't even create that. Does anyone know why this is happening? It takes no longer than 150ms for the "package"/"build" tasks to complete on my end, but it shows several seconds in the tutorial video. I just can't understand what I am doing wrong if I am following it verbatim...
Run npm install in project's root. For some reason this step is missing in documentation.

Html publisher plugin for Jenkins not triggering Doxygen to create documents

I am able to run Doxygen via the Doxygen GUI frontend and generate the documentation as expected. When I configure this to run in Jenkins, the console output from my build suggests that doxygen is running:
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level
C:\Doxygen\html to
C:\Jenkins\jobs\GIT_MASTER\htmlreports\GIT_MASTER_Doxygen_Documentation
Finished: SUCCESS
However when I check the OUTPUT_DIRECTORY it is empty.
My version of Jenkins is 1.542,
the html publisher plugin is 1.3 and
Doxygen is 1.8.6
I'm wondering if I have missed something in Jenkins configuration but I can't find anything else. As always any help is appreciated.
BTW, the Jenkins Doxygen plugin works as expected to generate html reports.
Thanks