Can I exclude a file pattern that includes its parent directories in atom? For example, I want to exclude folder1/folder2/*.py. Also I don't want to put this into .gitignore, because the git repository is shared with others and only I don't care about those files. Thanks!
There are several packages available that let you keep an .atomignore file for exactly that purpose, e.g. tree-ignore or atom-ignore packages.
Related
I would like to exclude a specific Folder from a Spotbug scan. I tried several solutions but none of them worked for me. Firstly I tried to write into .gitlab-ci.yml which Paths to exclude but I had no luck with that.
Secondly I created an XML File in which I specify the Folder to be excluded. And then added the XML to the SpotBug Configuration in pom.xml but that also didn't work.
Somebody got any alternate suggestions?
Over the past few weeks I have been getting into Ada, for various different reasons. But there is no doubt that information regarding my personal reasons as to why I'm using Ada is out of scope for this question.
As of the other day I started using the gprbuild command that comes with the Windows version of GNAT, in order to get the benefits of a system for managing my applications in a project-related manner. That is, being able to define certain attributes on a per-project basis, rather than manually setting up the compile-phase myself.
Currently when naming my files, their names are based off of what seems to be a standard for the grpbuild, although I could very much be wrong. For periods (in the package structure), a - is put in the name of the file, for underscores, an _ is put accordingly. As such, a package by the name App.Test.File_Utils would have a file name of app-test-file_utils: .ads and .adb accordingly.
In the .gpr project file I have specified:
for Source_Dirs use ("app/src/**");
so that I am allowed to use multiple directories for storing my files, rather than needing to have them all in the same directory.
The Problem
The problem that arises, however, is that file names tend to get very long. As I am already putting the files in a directory based on the package name contained by the file, I was wondering if there is a way to somehow make the compiler understand that the package name can be retrieved from the file's directory name.
That is, rather than having to name the App.Test.File_Utils' file name app-test-file_utils, I would like it to reside under the app/test directory by the name file_utils.
Is this doable, or will I be stuck with the horrors of eventually having to name my files along the lines of: app-test-some-then-one-has-more_files-another_package-knew-test-more-important_package.ads? Granted, I have not missed something about how an Ada application should actually be structured.
What I have tried
I tried looking for answers in the package Naming configuration of the gpr files in the documentation, but to no avail. Furthermore I have been browsing the web for information, but decided it might be better to get help through Stackoverflow, so that other people who might struggle with this problem in the future (granted it is a problem in the first place) might also get help.
Any pointers in the right direction would be very helpful!
In the top-secret GNAT documentation there is a description of how to use non-default file names. It's a great deal of effort. You will probably give up, use the default names, and put them all in a single directory.
You can also simplify much of the effort by using GPS and letting it build your project file as you add files to your source directories.
I would like to clone an existing file structure, without copying the files, during a grunt task. The new structure should be empty in the beginning and will be filled with processed data from the already existing file structure.
I've checked grunt-contrib-copy but there seems to be no filter for copying directories only.
This is true, place a .keep file in each (or lowest-level) directory and run grunt-contrib-copy and it will replicate your structure.
Updating this to cover the comments:
There is currently no option in grunt-contrib-copy or grunt-init to copy the structure only.
If however, you put aside the option of starting from 0, you could simply allow the pre-processed data to fill the structure, and pass a newer: to your copy task to only overwrite files that are older than those present.
If you absolutely need those folders to be empty, your best bet is to set up a boilerplate for yourself. I wish I could stumble on something better for this.
For the sake of clarity, and because SublimeText isn't bright enough to know the difference between lots of different flavors of ".html", I thought about using .handlebars as the extension to my handlebars-templated files. Meteor seems to only accept files with with .html extension, and I'm wondering if there's a way I can get it to accept .handlebars files too. Thanks
This may be more complicated than you'd like, but one way you can accomplish this is by making your own version of the templating package.
make a copy of the subtree,
rename the package,
edit plugin/compile-templates.js and at the bottom in the call to registerSourceHandler, replace "html" with "handlebars".
put your new package into your project's packages and add it using meteor add yourpackagename.
The comment left by Hubert OG was the simplest solution. Use .handlebars.html files. The SublimeText plugin for handlebars now recognizes that file extension too.
Is there any method to extract zip files and maintain the same folder structure in the output folder.I am able to extract the zip file and its inner files but not able to extract folder from a zip file and thus fail to maintain folder structure also.
Yes.
There is an AS3 component that allows you to read and write data from zip files, and the demo also shows that it is possible to see the folder structure.
http://www.nochump.com/blog/?p=15
I have not used this component myself, but if I am correct in assuming that you are making an AIR application then this component may automatically generate folders, otherwise you can use the file system api to create the correct folders yourself.
Good Luck!
You may also want to check out fzip:
http://codeazur.com.br/lab/fzip/