SwiftLint cannot exclude the nested files - swiftlint

I try to exclude all the unit test files. But it does not work. Does SwiftLint support nested exclude?
- Pods
- Carthage
- ".*Tests.swift"
# Errors
force_try: warning #All errors occur in Nimble pod, this can be ignored
force_cast:
severity: warning
excluded:
- "*Tests.swift"

You can include folder path in the excluded path section, For nested file workaround, try keeping it in a single folder to exclude the files or mention them in exclude file section.
For Example
excluded: # paths to ignore during linting. Takes precedence over `included`.
- pH7-DriverTests
- pH7-DriverUITests
- Pods
Example:- project's Test & UITest folder name is 'pH7-DriverTest' and 'pH7-DriverUITest' and it contains in source folder.

Related

Disable SwiftLint for XCode autogenerated Siri Intents swift files

How to disable SwiftLint for XCode autogenerated *.swift files?
For example for Siri Intents?
You can specify folders and files in the excluded section of the .swiftlint.yml file as discussed in the documentation.
E.g., you might have an excluded section like so:
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- Source/ExcludedFolder
- Source/ExcludedFile.swift
- Source/*/ExcludedFile.swift # Exclude files with a wildcard

Visual Studio, the folder is not being generated

I have defined a Win32 Application in Visual Studio and named my project as "Test". The structure that has been created and shown in Solution Explorer, is as follows:
- Test
- - References
- - External Dependencies
- - Header Files
- - - stdafx.h
- - - targetver.h
- - Resource Files
- - Source Files
- - - stdafx.cpp
- - - myMainMethodHere.cpp
- - ReadMe.txt
It also created a project in the file system at the following path:
C:{ path }\Visual Studio 2017\Projects\Test\Test
The thing is, in IDE, when I create a new folder or upload existing file (I do it from IDE by right clicking - Add - Existing Item for existing files and Add - New Filter for a folder), whether I create it under Test dir directly or under Source Files, the folder/files uploaded are not shown in Windows Explorer (in the file system). The only files that pop up in the file system are those created as new items, but if I am adding existing ones, they won't reveal in my project's dir. Due to this, when I upload existing files, I get 'no source found' error in the references (include), and even if I specify the directories included (by right clickcing a project - properties - VC++ directories - include directories), the error is still present as no files being physically added to my project's dir.
How to fix it?

Exclude file from search but not from the project list in WebStorm

I've succeeded to exclude bower components and node modules from my search results by choosing the folder -> mark directory as -> excluded, but I couldn't do the the same for my concat file (a file with all code of the js files of my project).
How can I exclude this file from my search results?
Edit | Find | Find in Path supports scopes. You can create a new scope (Settings | Appearance & Behavior | Scopes) with the generated file excluded and use this scope for searching. Or, place your generated file(s) into a separate folder and exclude it like you did for bower_components and node_modules
Edit: since 2017.2 you can exclude files by pattern - see https://www.jetbrains.com/help/webstorm/2017.2/directories.html, Exclude files
You can exclude files and folders by name pattern. Just follow the steps here https://www.jetbrains.com/help/phpstorm/excluding-files-from-project.html#exclude-by-pattern
Man, use Preferences => Directories and thats it!

gitignore to allow obj models but not compiled obj files

So I'm trying to figure out a suitable gitignore for an OpenGL project. I have the standard C++ gitignore.
Now it ignores .objs, for compiled object file, rightfully so.
However, it also ignores models that are of the .obj format and I do want tracked by version control.
How can I have setup the gitignore to ignore .objs, except from the Assets directory?
If the models are .obj, you should be able to just use
*.objs
in your gitignore to ignore compiled object files, while not ignoring .obj files because they will not match that.
If you want to not ignore .objs that are inside of the Assets folder, you can do
# Ignore compiled files
*.objs
# Don't want to ignore .objs files in Assets
!Assets/*.objs
From gitignore documentation:
An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again. It is not possible to re-include a file if a parent directory of that file is excluded. Git doesn’t list excluded directories for performance reasons, so any patterns on contained files have no effect, no matter where they are defined. Put a backslash ("\") in front of the first "!" for patterns that begin with a literal "!", for example, "!important!.txt".

Why doesn't Xcode6 see included header files

I'm trying to build opencv2 as a universal framework. I am systematically removing the files/folders that I do not need. But I am running into this issue where the include files are not found. See the image below:
The following image clearly shows that the file is indeed there.
One of the contractors working with us said he had put the include files into the same directory as the source files and rename them according to their file structure but using "." instead of "/" as shown below:
But that means that I must go through all of the files that include files and change the include statement to use "." instead of "/". REALLY?
Is this true? Or do we have a configuration set wrong?
You need to setup search paths for your target in Build Settings->Search Paths->Header search paths.